Interrupts not working when using openOCD cubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 12:07 AM
I’m using cubeIDE and openOCD to debug on stm32f103. The interrupts not called although the interrupt flags are set. I tried to use GDB and they works fine for the same SW on the same board.
So how to make then working using openOCD?
I checked google and there are threads recommends using different startup code but I checked it and vector table seems to be ok and worked using GDB with the same startup code.
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 8:51 PM
In order for an interrupt to fire:
- It must be enabled in the peripheral
- It must be enabled in NVIC
- Interrupts must be globally enabled.
- The main thread must be active or the interrupt needs to have preempt priority over the currently executing code.
Check those things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 10:25 PM
All of them are ok. As I said the Interrupts are working when using GDB so no SW issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-13 6:51 AM
