This is a reply to the attached message.
Compiling for the LPC2378 with MDK 3.24, UVision 3.
I have discovered that the the simulator will not provide the "wakeup invoked" message even when the RTC generates an interrupt during a simulated power-down mode.
My RTC has been configured correctly; the RTC peripheral power control bit is set, and the interrupts are cleared before entering the sleep function.
In addition, my code shuts down & wakes up properly on target hardware, whereas it fails to wake up properly in the simulator.
It's possible that I am overlooking something that would cause simulation wakeup to fail, but hardware wakeup to work properly. However, at this time, it does seem the simulator is flawed.
http://www.keil.com/forum/docs/thread9356.asp
ORIGINAL MESSAGE:
==========================
RTC not active in simulated power down mode
I am simulating a power down condition in uVision using LPC2138. The problem is that the RTC (real time clock) is halting when the processor is in the power down mode. The RTC is using an external clock source 38 Khz and should be active. I want to use the RTC to wake up the processor.
Another problem is that the RTC with external clock is not working when the internal power is off (PCONPB.PCRTC = 0). It should, because the power is now coming from pin nr. 49, Vbat.
Any solutions to this?
============================
Response:
============================ This problem will be solved in the next revision MDK 3.05. Thank you for pointing it out. ===========================
keywords: simulation simulator RTC real time clock real-time wakeup wake-up LPC23XX ARM ARM7 ARM9 uVision Keil MDK