AnsweredAssumed Answered

LPC11C24 Deep Sleep Wakeup Handler

Question asked by Federico Fiorini on Dec 18, 2018
Latest reply on Dec 19, 2018 by Federico Fiorini

I'm currently working on an application that involves the LPC11C24 board and we're using the LPCXpresso LPC11C24 Rev B board (with LPC-Link) to test it. 
We want to make use of the deep sleep mode so that under certain working conditions the board can go to deep sleep mode, and then wake up as soon as an input pin is toggled. 

I worked through the example code (lpc11x.keil-examples-CMSIS-update / pmu) and I noticed that the interrupt handler is not working properly.

In particular, the execution can switch between deep sleep and active mode, but as soon as the board wakes up the code gets stuck in the IntDefaultHandler(void) function, defined in cr_startup_lpc11xx.cpp. 
It states that "processor ends up here if an unexpected interrupt occurs or a specific handler is not present in the application code"

I'm quite a beginner in using such technologies so I don't know whether it's something I forgot to mention in the interrupt handler or some error in my code.

Attached there is the code I'm currently using.