This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR6989: need help writing a NMI handler.

Part Number: MSP430FR6989

Tool/software: Code Composer Studio

Hello everyone,

                          I was going through one of TI's article about handling system reset. The link is given below. I kinda got it but have a doubt regarding the timing. My application needs to halt operation and enter low power mode as soon as NMI occurs at any given point. Does this code provide the functionality of halting and getting back to the exact line of code where it was halted once NMI's removed? Thank you.  

processors.wiki.ti.com/.../Handling_MSP430_System_Reset_Events

  • Hello Vivek,
    sorry, but page behind the link you provided in your thread, is just explaining principles of System Interrupt handling, but not giving a specific code, related to what you're asking for.
    I would also recommend you, reading the User's Guide for the MSP430FR58xx, MSP430FR59xx and MSP430FR6xx Family (slau367) , specifically the Chapter 1 / System Resets, Interrupts, and Operating Modes, System Control Module.
    There you can find more details about the behavior of the different NMIs, like e.g. System NMIs (SNMIs) and User NMIs (UNMIs), where e.g. the SNMIs have a higher priority as UNMIs, and thus can block or delay those.
    Unfortunately due to the complexity there is no clear answer to your question. We would need more information on how you're intending to generate the UNMI, and what your requirements in terms of timing and reliability are, as like indicated above, SNMIs can block UNMIs, and in such case there would not be a 100% safe run into LPM based on an UNMI.

    Best regards
    Peter

**Attention** This is a public forum