Skip to main content
Kuikui
Associate III
April 24, 2016
Question

STM32L151 IRQ firing only when program launched from debugger

  • April 24, 2016
  • 2 replies
  • 508 views
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.
    This topic has been closed for replies.

    2 replies

    Radosław
    Associate II
    April 24, 2016
    Posted on April 24, 2016 at 14:10

    wrong program only.

    Tesla DeLorean
    Guru
    April 24, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..