Example code for wakeup from Deep-sleep mode using Pushbutton in ADSP-BF609 EZKIT
Please find the attached working code of sleep mode for ADSP-BF609 EZKIT. Please boot the attached code from flash instead of running via emulator.
In this project, core0 goes to Deep sleep mode and we can wakeup core0 from deepsleep by pressing SW10 pushbutton(Wakeup source, which is generating a CGU event. Upon CGU event, it raises a software interrupt).Before Core0 goes to deepsleep, it sets the LED1. After this, core0 goes to DeepSleep. We can confirm this by monitoring the state of LED1. LED1 will be remain set(Glow) until you press SW10. The moment you press SW10, it wakes up Core0 and LED1 gets clear(OFF) and LED2 sets(glows).
In this project, we are not using core1 at all. Here core1 is just enabled. We are not monitoring the state of core1.