blackmagic-debug / blackmagic

In application debugger for ARM Cortex microcontrollers.
GNU General Public License v3.0
3.13k stars 759 forks source link

Feature: Add support for SYS_ELAPSED/SYS_TICKFREQ as milliseconds #1847

Closed ALTracer closed 1 week ago

ALTracer commented 1 week ago

Detailed description

Tested on blackpill-f411ce platform with extra diagnostic logging against gd32f303cc-bluepillplus running a modified instance of blackmagic-test-fw-archive semihosting project (to avoid exiting early on errors). Stop-the-world delay observed by target is around 19ms in JTAG mode at max frequency for each syscall handled in-probe, no USB or GDB communication. SWD might be faster. Also tested on BMDA+BMP for a delay of 133ms (I am subtracting the in-sketch delay(50)).

Your checklist for this pull request

Closing issues