I'm using an LPC1769 MCU and have pin P2 configured as an external interrupt. I knew this pin was also the Non-Maskable Interrupt, but at the time I was sure that this pin would never be asserted during reset. Well, of course, come to find out that on rare occasions this pin is triggered, and stays triggered, when the MCU resets. So the code winds up locked in the NMI handler.
I am not using the NIM otherwise and the handler currently looks like this:
Is there anything I can do in the handler to manage the occasions when the MCU reset's with the NMI asserted?
Thanks, any info is greatly appreciated,