Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

DeXi_1316761
Level 3
Level 3
10 replies posted 5 replies posted 10 questions asked

In Cy8c4247,is there the API to get wakeup source when MCU was waked up from Deepsleep?

0 Likes
1 Solution
Anonymous
Not applicable

Not specifically, the interrupt that woke up the module will fire when it wakes up, thus any interrupts that can wake the unit up could have fired directly from sleep power modes. You could easily make a function/api that checks the interrupt sources for the currently active one upon wake-up however. It depends on which hardware you have enabled as well, as only enabled interrupt sources will/can fire. GPIO, SPI, I2C, BLE, WDT, etc.

There is an API for reset reason: CySysPmGetResetReason()

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Not specifically, the interrupt that woke up the module will fire when it wakes up, thus any interrupts that can wake the unit up could have fired directly from sleep power modes. You could easily make a function/api that checks the interrupt sources for the currently active one upon wake-up however. It depends on which hardware you have enabled as well, as only enabled interrupt sources will/can fire. GPIO, SPI, I2C, BLE, WDT, etc.

There is an API for reset reason: CySysPmGetResetReason()

0 Likes