This extra patch addresses the case of PC constant due to 'while (1);' https://review.openocd.org/7400/
--- ** [tickets:#370] profile : Assertion `address_space >= 2' failed.** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Nov 23, 2022 04:10 PM UTC by fenugrec **Last Updated:** Tue Dec 13, 2022 09:54 PM UTC **Owner:** nobody Hi, trying to profile a cortex-M0 target (stm32F042) with a jlink . If I don't specify Start and End : ~~~ (gdb) monitor profile 5 test.out [stm32f0x.cpu] Starting Cortex-M profiling. Sampling DWT_PCSR as fast as we can... [stm32f0x.cpu] Profiling completed. 10000 samples. openocd: src/target/target.c:4258: write_gmon: Assertion `address_space >= 2' failed. [stm32f0x.cpu] halted due to debug-request, current mode: Thread xPSR: 0x21000000 pc: 0x08002142 msp: 0x20001760 Remote connection closed ~~~ Should probably either - offer default values for those args - abort and complain if the args are mandatory - not require them at all Sidenote, a hardcoded limit of 10k samples ?? --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.