Problem with wake up from deep sleep with a timer

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
1 Solution
Anonymous
Not applicable

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

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

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

0 Likes