AnsweredAssumed Answered

STM32F030 - Timer freeze when debugging

Question asked by krasser.edwin on Aug 1, 2016
Latest reply on Oct 12, 2016 by krasser.edwin
Hello,

I use an STM32F030 in the current project and I need timer 1 to stop during debugging (breakpoints, execution stop). It does not matter whether the pwm outputs stop in hi or lo, they just need to stop.
After searching in the reference manual and the HAL documentation I found: __HAL_DBGMCU_FREEZE_TIM1()

But it does not work. When debugging (IAR) the bit in the DBGMCU->APB2FZ registor does not change! Even if I try to change the value in the registers window nothing happens. What's wrong?

Best regards,
Edwin Krasser

Outcomes