2023-07-28 07:32 AM
i am using stm32 cube ide ,in deugger mode how can i see or where can i see the time elapsed when i jump from one breakpoint to another breakpoint ? sorry i am new user of stm buti am already a fan of stm devices because of low cost and high performance ,before that i was using pic and there is an option of stopwatch in mplabx to watch the time elapsed from instruction to instruction and debugger mode can also be run in software mode without attaching a mcu at usb port, is there also such options available in stmcubeide?
2023-07-28 08:11 AM - edited 2023-07-28 08:12 AM
You can use the debug timer (DWT->CYCCNT) to count cycles. That counter stops when system is halted (e.g. at a breakpoint). Look up how to enable it for the STM32 you're using.
Be aware things in debug mode don't always translate to when the debugger is not attached.
2023-07-28 09:58 AM
i am using 32f401
2023-07-28 12:53 PM
A good debugger displays the time deltas itself. IAR's, if memory servers.
> and debugger mode can also be run in software mode without attaching a mcu
Not in CubeIDE. This is a software simulator. Try Keil, IAR.