Loading...
 
Skip to main content

System Workbench for STM32


Timers freeze in debug mode

Hi

I am trying to debug a C program in a Nucleo091 board. I need to freeze the timers but every time that the debugger stops in a breakpoint the DBGMCU_APB2_FZ, APBHFZ register in the system workbench, is reset and the flag that controls the freeze is cleared. I try to set the flag in the initial start up but seems the debugger clears the flags.

I think that will be useful in the future to set up DBGMCU unit in a separate label in the debug configuration for the project.

Thanks.