cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupts not working when using openOCD cubeIDE

MSamy.1
Associate II

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.

3 REPLIES 3
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".

All of them are ok. As I said the Interrupts are working when using GDB so no SW issue.

Not sure. I don't see how the hardware would act differently based on the debugger that is connected.
If you feel a post has answered your question, please click "Accept as Solution".