gdb on an STM32U073: Misses breakpoints
Posted: Mon Sep 30, 2024 1:01 am
While using gdb to debug my RTC program on an STM32U073KB micro, I am seeing the following behavior:
- Breakpoints are set at loop and at Configure_RTC. When cont is entered after load, the program breaks at loop, not at Configure_RTC. Entering monitor reset halt, then cont, causes a break at Configure_RTC. This behavior is completely repeatable. Further monitor reset halt and cont sequences result in halts at Configure_RTC. If the program is reloaded and started again, the break will be at loop, until a monitor reset halt and cont.
- A breakpoint set at RTC_TAMP_IRQHandler will never break, although I can prove (by putting in a while(1) {}) that the interrupt happens.
I have used similar gdb techniques with an STM32L071KB part and it works as expected.
Can someone please tell me what might be wrong? I'm at a loss.
I am using Ubuntu 24.04.The (Arduino) code I am running may be seen here: viewtopic.php?t=2497
Thanks!!
- Breakpoints are set at loop and at Configure_RTC. When cont is entered after load, the program breaks at loop, not at Configure_RTC. Entering monitor reset halt, then cont, causes a break at Configure_RTC. This behavior is completely repeatable. Further monitor reset halt and cont sequences result in halts at Configure_RTC. If the program is reloaded and started again, the break will be at loop, until a monitor reset halt and cont.
- A breakpoint set at RTC_TAMP_IRQHandler will never break, although I can prove (by putting in a while(1) {}) that the interrupt happens.
I have used similar gdb techniques with an STM32L071KB part and it works as expected.
Can someone please tell me what might be wrong? I'm at a loss.
I am using Ubuntu 24.04.The (Arduino) code I am running may be seen here: viewtopic.php?t=2497
Thanks!!