Skip to main content
Graduate
June 5, 2025
Question

STM32F746G-DISCO: Time base TIM interrupt preventing debugging

  • June 5, 2025
  • 1 reply
  • 345 views

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

    This topic has been closed for replies.

    1 reply

    Super User
    June 5, 2025

    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.

    Graduate
    June 5, 2025

    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.