Search found 54 matches

by gibson12345
Wed Nov 06, 2019 11:35 pm
Forum: ESP32 IDF
Topic: Semaphores and light sleep
Replies: 0
Views: 97

Semaphores and light sleep

Do semaphores need to be recreated after entering light sleep? I'm having issues where I'm unable to take semaphores after waking from light sleep.

Cheers,
Gibson
by gibson12345
Tue Oct 08, 2019 2:03 am
Forum: ESP32 IDF
Topic: portENTER_CRITICAL explaination
Replies: 1
Views: 189

portENTER_CRITICAL explaination

Hey everyone, trying to sort out a situation where I need to enter a critical section and trying to determine how the functionality within freeRTOS works. portENTER_CRITICAL is the function I get pointed to which points to vTaskEnterCritical. Both require a "mux" but I'm struggling to understand exa...
by gibson12345
Fri Sep 20, 2019 5:44 am
Forum: ESP32 IDF
Topic: Incorrect GPIO readings
Replies: 2
Views: 193

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

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

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

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

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

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

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

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...

Go to advanced search