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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-06 7:47 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 6:45 AM
Huh...that's strange. Calling __HAL_DBGMCU_FREEZE_TIM14() did seem to work, however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-06 6:00 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-07 9:27 AM
This bit seemed to work. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-10 12:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-11 5:00 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 6:45 AM
Huh...that's strange. Calling __HAL_DBGMCU_FREEZE_TIM14() did seem to work, however.
