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?
Search found 58 matches
- Wed Sep 11, 2019 4:53 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
Re: Interrupt WDT
- Wed Sep 11, 2019 4:49 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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...
- Wed Sep 11, 2019 4:45 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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...
- Wed Sep 11, 2019 4:37 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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...
- Tue Sep 10, 2019 6:35 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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 ...
- Tue Sep 10, 2019 3:06 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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
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
- Mon Sep 09, 2019 11:35 pm
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
Re: Interrupt WDT
Hey Sprite,
I tried getting it to trigger on rising edge but I got an error saying the following.
Am I missing something with that as I would prefer it to occur on the edge?
Cheers,
Gibson
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
Cheers,
Gibson
- Mon Sep 09, 2019 4:04 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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...
- Mon Sep 09, 2019 1:16 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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?
- Mon Sep 09, 2019 12:53 am
- Forum: ESP-IDF
- Topic: Interrupt WDT
- Replies: 16
- Views: 14806
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 ...