2025-06-04 5:18 PM
Hello,
During a debugging session whenever I step through code it always takes be back and forward between my break point and the TIM6_DAC_IRQHandler which is the TIM I'm using as the time base. Now I can't disable the call back because then I don't have a time base, I tried that the MCU would not make it past the TIM INIT. It's not a critical problem, but an inconvenience since it prevents me from doing effective debugging. To my knowledge I have not changed any setting related to NVIC, TIMs, DACs or Systick (apart form the test which has been reverted) since GFX generated the MX file.
Happy to provide any additional info required.
Cheers,
Michael
2025-06-04 5:55 PM
By default, the timer doesn't stop while debugging is paused, so as long as it's paused more than 1 ms, it will always jump into the IRQ handler. That's expected. You can change this behavior in a register somewhere. Look for timer freeze settings during debug in the reference manual.
2025-06-04 7:11 PM
Great thanks! I see in sections 40.16.5 and 40.16.6 registers for many peripherals, but not the high performance ones such as DMA2D and the LTDC. How do I get around those interrupts?
Cheers.