cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L151 IRQ firing only when program launched from debugger

Kuikui
Associate III
Posted on April 24, 2016 at 11:27

Hi,

I've build a program that runs fine, but IRQ are only fired when I start the µC with the debugger.

Without the debugger, I can see that the µC runs correctly the program thanks to some blinking led, but none of my IRQ are firing.

If I connect the debugger to the µC without downloading the program ( with ST-Link Utility for example), then I disconnect the debugger, IRQ are fired correctly.

How can that be ???

Thank you for your help.

BR,

Vincent.
2 REPLIES 2
Radosław
Senior II
Posted on April 24, 2016 at 14:10

wrong program only.

Posted on April 24, 2016 at 15:09

I would double check you have enabled all the clocks you need, and the vector table address is set correctly. Review the startup up code related to external clocks, waiting for them and the PLL to start properly.

On the hardware side, review the states of the BOOTx pins.

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