Search found 52 matches

by gibson12345
Fri Sep 20, 2019 5:44 am
Forum: ESP32 IDF
Topic: Incorrect GPIO readings
Replies: 2
Views: 101

Re: Incorrect GPIO readings

Hey WiFive,

Thanks for the reply that solved my problem. Could you explain why normal output mode did not work?

And also to follow up I'd like to read the values of pin 36/37/34 but am unable to get anything could you advise?

Cheers,
Gibson
by gibson12345
Fri Sep 20, 2019 12:33 am
Forum: ESP32 IDF
Topic: Incorrect GPIO readings
Replies: 2
Views: 101

Incorrect GPIO readings

Hey everyone, I've been trying to work specifically with a few pins connected to my battery, specifically 32,36,39 and 35. I know that I can only set 34-39 as input only, but I am trying to set 32 as high and for whatever reason when using gpio_get_level I'm not getting back the correct value. I'm r...
by gibson12345
Tue Sep 17, 2019 7:05 am
Forum: ESP32 IDF
Topic: esp_bt_controller_init returns invalid state
Replies: 0
Views: 67

esp_bt_controller_init returns invalid state

Hey everyone, In my current program esp_bt_controller_init returns invalid state error when it is called after waking up from sleep, but this only happens about 1/3 times after a fresh reboot. What are some possible causes of this? (I can't seem to find the source for this function so having trouble...
by gibson12345
Wed Sep 11, 2019 5:09 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 427

Re: Interrupt WDT

Hey WiFive, 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 ...
by gibson12345
Wed Sep 11, 2019 4:53 am
Forum: ESP32 IDF
Topic: Interrupt WDT
Replies: 16
Views: 427

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: 427

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: 427

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: 427

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: 427

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: 427

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

Go to advanced search