HI, I looked at your code and why are you using the IRQ interrupt vector since a wake up from the IRQ in stop 2 mode will call the reset vector ???
by the way, it doesn't work in my setup, it goes into sleep but IRQ is not waking up the CPU.
I've put a Led toggle in both interrupt routines (reset and IRQ) and even in my main loop, I restore all Input and Toggle the led before going back into stop 2 mode.
Nothing is happening into the led PORT (Check it with an Scope).
My code react fine if i'm enabling the BDM mode... but when disabling BDM mode.. it stays in STOP 2.
Message Edited by m2s on
2007-10-30 10:48 AM