Search found 12 matches

by scottsh
Thu Jan 28, 2021 8:09 pm
Forum: ESP-IDF
Topic: ESP32S2 - Touch wake up low duty cycle causes spontaneous reset
Replies: 1
Views: 2307

Re: ESP32S2 - Touch wake up low duty cycle causes spontaneous reset

Circling back to provide the conclusion of the issue on this thread. It looks like the cause of the spontaneous resets is the brownout detector circuit. Disabling it (not through menuconfig, but through the registers) looks to resolve the issue. Further discussion on this thread: https://www.esp32.c...
by scottsh
Thu Jan 28, 2021 8:05 pm
Forum: Hardware
Topic: ESP32S2 board resetting from deep sleep
Replies: 6
Views: 10331

Re: ESP32S2 board resetting from deep sleep

FYI, circling back on this post. It does appear that the cause of the reset from deep sleep is the brownout detector. The power supply lines look very clean on the scope, so not sure why the brownout detector is triggering, but disabling it does seem to fix the problem. See details in this thread: h...
by scottsh
Thu Jan 28, 2021 5:03 am
Forum: ESP-IDF
Topic: Touch pad wake up from deep sleep only works once if Brownout detector is turned off
Replies: 2
Views: 4569

Re: Touch pad wake up from deep sleep only works once if Brownout detector is turned off

I have a support case with Espressif and have sent them the schematics and source... They are debating internally whether they want me to send them a board that repros the issue. It looks like that sample will just disable the brownout interrupt, but won't it still reset the system? My theory for th...
by scottsh
Wed Jan 27, 2021 6:58 am
Forum: ESP-IDF
Topic: Touch pad wake up from deep sleep only works once if Brownout detector is turned off
Replies: 2
Views: 4569

Touch pad wake up from deep sleep only works once if Brownout detector is turned off

Following the suggestion on to solve my sleep/reset issues on this thread: https://github.com/espressif/esp-idf/issues/6179, I turned off the brownout detector. It did seem to solve the problem of spontaneous resets during deep sleep, but I found a new problem. This code below is an almost identical...
by scottsh
Tue Jan 26, 2021 1:52 am
Forum: Hardware
Topic: ESP32S2 board resetting from deep sleep
Replies: 6
Views: 10331

Re: ESP32S2 board resetting from deep sleep

Wow, great find!! Well that certainly made a difference! Yes, I think it's the same issue. I have the same concern as the person at the bottom of that thread, why is it signaling POWERON instead of brownout? Now it seems to have a new weird behavior... The same code that was sleeping fine and waking...
by scottsh
Mon Jan 25, 2021 4:29 pm
Forum: Hardware
Topic: ESP32S2 board resetting from deep sleep
Replies: 6
Views: 10331

Re: ESP32S2 board resetting from deep sleep

Sure, no problem. Thanks for taking a look! :) I've attached screen shots of both the power supply section and also the connections to the ESP32S2-WROOM module. The correlation that I have noticed is that the lower the power gets, the more frequently it seems to hit this reset. When I have it sampli...
by scottsh
Tue Jan 19, 2021 6:55 pm
Forum: ESP-IDF
Topic: ESP32S2 - Touch wake up low duty cycle causes spontaneous reset
Replies: 1
Views: 2307

ESP32S2 - Touch wake up low duty cycle causes spontaneous reset

<Cross posted to Hardware, but a different angle here... This post is more about the code, less about the Hardware. :)> I have a problem that is stumping me... I have an ESP32S2 board which uses the ESP32S2 WROOM module. After I put the ESP32S2 into deep sleep, on MOST boards (I've got one magic one...
by scottsh
Tue Jan 19, 2021 5:14 pm
Forum: Hardware
Topic: ESP32S2 board resetting from deep sleep
Replies: 6
Views: 10331

ESP32S2 board resetting from deep sleep

I have a problem that is stumping me... I have an ESP32S2 board which uses the ESP32S2 WROOM module. After I put the ESP32S2 into deep sleep, on MOST boards (I've got one magic one that doesn't repro), after a while, the CPU will randomly reset. I've double checked the esp_reset_reason(), and it ret...
by scottsh
Sat Jan 02, 2021 1:47 am
Forum: ESP-IDF
Topic: Debugging ULP_RISCV on ESP32S2
Replies: 3
Views: 4004

Re: Debugging ULP_RISCV on ESP32S2

Thanks @boarchuz! Your suggestions really helped! I got the simple example working pretty well and decided to go back to my full app (much bigger). I feel like I'm getting a lot closer, but I am still getting spurious exceptions when my code isn't running. I have a bunch of logging in my code and I ...
by scottsh
Thu Dec 31, 2020 7:52 pm
Forum: ESP-IDF
Topic: Debugging ULP_RISCV on ESP32S2
Replies: 3
Views: 4004

Debugging ULP_RISCV on ESP32S2

I'm having some trouble debugging problems with my ULP_RISCV program. I've got some memory based logging set up, so I can see things back in the host when the host is running, but I keep getting ULP_RISCV crashes, (Wake up code ESP_SLEEP_WAKEUP_COCPU_TRAP_TRIG), and can't figure out how to debug the...