Skip to main content
RBack.1
Associate III
October 6, 2021
Solved

How do you single step STM32F746 when debugging? After using MX to enable FreeRTOS and specify TIM14 as the SYS Timebase Source, trying to single step in debug mode never leaves the TIM14 ISR.

  • October 6, 2021
  • 2 replies
  • 1342 views

..

This topic has been closed for replies.
Best answer by RBack.1

Huh...that's strange. Calling __HAL_DBGMCU_FREEZE_TIM14() did seem to work, however.

2 replies

TDK
October 7, 2021

It's possible the timer is continuing to run when the core is halted, which would cause it to reenter the ISR every time you resume. Look at the DBG_TIM14_STOP bit.

Just a guess.

"If you feel a post has answered your question, please click ""Accept as Solution""."
RBack.1
RBack.1Author
Associate III
October 7, 2021

This bit seemed to work. Thanks.

Tesla DeLorean
Guru
October 11, 2021

If one needs to single step ones code to understand how it works​ you might need to consider doing so on a newer core (see F722 or F767)

C​onsider also the output of diagnostic and/or telemetry data so the interaction and flow dynamics can be understood. Review and evaluate data via static analysis of code.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..