Search found 58 matches

by gibson12345
Wed Sep 11, 2019 4:53 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

WiFive wrote:
Wed Sep 11, 2019 4:50 am
According to the code they are only separate if the gpio is a rtc gpio, otherwise shared
Yeah I see that now from the links you provided. But wouldn't disabling it then going to sleep mean that the ISR is attached to that interrupt never get called and therefor never able to set it back to edge?
by gibson12345
Wed Sep 11, 2019 4:49 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey WiFive, Since the interrupt type is shared, if you configure the gpio interrupt as edge and then call gpio_wakeup_enable(LIS3DH_INTR, GPIO_INTR_HIGH_LEVEL); the interrupt type is changed to level. When coming out of sleep, the gpio interrupt type is now level so it will repeat. You should proba...
by gibson12345
Wed Sep 11, 2019 4:45 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey WiFive, Since the interrupt type is shared, if you configure the gpio interrupt as edge and then call gpio_wakeup_enable(LIS3DH_INTR, GPIO_INTR_HIGH_LEVEL); the interrupt type is changed to level. When coming out of sleep, the gpio interrupt type is now level so it will repeat. You should probab...
by gibson12345
Wed Sep 11, 2019 4:37 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey Sprite, I think you're conflating two things here: one is wake-up, the other one is the interrupt. At the moment, it seems you have both set to level, that is, while the line is high, the CPU will keep waking up (which I think is what you want) and while the line is high, it will also keep trigg...
by gibson12345
Tue Sep 10, 2019 6:35 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey everyone, I believe the issue might be that the interrupt isn't being cleared for whatever reason when I am waking from sleep, but it's strange that this is done automatically when I have the interrupt happen when awake. Could anyone advise on what to do? I'm unable to find any documentation on ...
by gibson12345
Tue Sep 10, 2019 3:06 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey Sprite,

When I remove everything from the interrupt task except a print statement it loops on that and then triggers a WDT.

Any thoughts?

Cheers,
Gibson
by gibson12345
Mon Sep 09, 2019 11:35 pm
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hey Sprite,

I tried getting it to trigger on rising edge but I got an error saying the following.

Code: Select all

E (11047) gpio: GPIO wakeup only supports level mode, but edge mode set. gpio_num:17
Am I missing something with that as I would prefer it to occur on the edge?

Cheers,
Gibson
by gibson12345
Mon Sep 09, 2019 4:04 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

Hello Sprite, How do you setup your GPIO and/or interrupts? Here is how I'm setting up allowing wakeup from GPIO gpio_wakeup_enable(LIS3DH_INTR, GPIO_INTR_HIGH_LEVEL); esp_sleep_enable_gpio_wakeup(); esp_light_sleep_start(); and here is the interrupt task void user_task_interrupt (void *pvParameters...
by gibson12345
Mon Sep 09, 2019 1:16 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Re: Interrupt WDT

I noticed that in the timer interrupt example that you "clear" the interrupts? Is there a way to do this for gpio interrupts that I am missing?
by gibson12345
Mon Sep 09, 2019 12:53 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 2358

Interrupt WDT

Hey everyone, I'm currently working with an accelerometer to use as a way to wakeup my esp32, but I'm running into an issue where upon wakeup and the interrupt task being called it gets stuck in an infinite loop and then eventually WDT is triggered. Are there any common causes for this that I might ...