- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an issue with waking up from deep sleep using a timer.
If I don't configure any GPIO with interrupt then the chip can enter deep sleep mode but when it's time to wake up it keeps rebooting every 5 seconds. On the other hand if I configure one GPIO (any GPIO) with interrupt then everything works.
I don't understand the relation between GPIO and wake up using a timer.
Attached please find a test app that demonstrates this issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Lukasz,
We spoke to the developers.
1. Their suggestion is to make sure you have a clear P39 Interrupt line.
// If timed wake is enabled, clear P39 interrupt if waking from timed wake.
gpio_clearPinInterruptStatus(GPIO_PIN_P39 / GPIO_MAX_NUM_PINS_PER_PORT, GPIO_PIN_P39 % GPIO_MAX_NUM_PINS_PER_PORT);
2. When timer expires in HID_OFF, it wiggles P39 so you need to clear the interrupt status as shown above.
3. If you are using the 64Pin BGA do NOT use P39 when in deep sleep, only when out of deep sleep.
Hope this helps.
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Lukasz,
We spoke to the developers.
1. Their suggestion is to make sure you have a clear P39 Interrupt line.
// If timed wake is enabled, clear P39 interrupt if waking from timed wake.
gpio_clearPinInterruptStatus(GPIO_PIN_P39 / GPIO_MAX_NUM_PINS_PER_PORT, GPIO_PIN_P39 % GPIO_MAX_NUM_PINS_PER_PORT);
2. When timer expires in HID_OFF, it wiggles P39 so you need to clear the interrupt status as shown above.
3. If you are using the 64Pin BGA do NOT use P39 when in deep sleep, only when out of deep sleep.
Hope this helps.
Thanks
JT