Skip to main content
arnold_w
Senior II
June 15, 2016
Question

Why does my interrupt stop working after I jump to a different area of execution?

  • June 15, 2016
  • 3 replies
  • 954 views
Posted on June 15, 2016 at 18:57

 

 

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    June 15, 2016
    Posted on June 15, 2016 at 19:43

    Does anybody know why my button interrupt isn't working in the application in this case?

    Can't transfer control like this in interrupt context.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    arnold_w
    arnold_wAuthor
    Senior II
    June 15, 2016
    Posted on June 15, 2016 at 21:20

    What about NVIC_SystemReset, it it safe to call from an interrupt context or will it make the microcontroller run unreliably?

    Tesla DeLorean
    Guru
    June 15, 2016
    Posted on June 15, 2016 at 21:25

    It is going to reset the chip from where ever you call it, unless someone has tied NRST to VCC.

    As I recall it is specified to generate a fixed duration pulse.

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