-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32C3 light sleep by UART #7175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@eos1d3 - I tried this and I can't reproduce the issue. Please, make sure you are using Arduino Core 2.0.4, because this output |
|
Today I have more tests. And to simplify the test, I focus on GPIO light sleep first.
And [env:esp32-c3-devkitm-1] I tried And all these versions will lock up the CPU and no console message after just a few press of the test button. Mostly it will not last for 10 times of button press. Then I tried ESP32 IDF 4.4.2 and the offical Finally I tried IDF 5.0 beta1 with the same |
GPIO 0 is used by the board to reset it when the sketch is uploaded. |
GPIO 9 and 10 are used to access Flash. |
@SuGlider Hi, thanks for the information. GPIO0 can be used and is not reset purpose. While GPIO9 is the boot button and it is used by ESP32 IDF But from your suggestion, I found something:
So can this be noise issue of the jumper wire (15cm) with the breadboard? But it is strange that using ESP IDF 5.0 beta1, no lock up occurs. |
@eos1d3 - nevermind.... I forgot that you are using the C3. GPIO 9 and 10 are problem for the ESP32. |
I can see that the upload speed is not standard: |
This is interesting.... I'll try it as well. Can you also send a picture of your board/circuit? |
There is the button bouncing effect... Not sure how it affects your exemple. |
Hi, Many thanks for prompt help!
For STM32G0, TX, RX and GND from the development board are connected directly to ESP32C3. It is very simply with just 3 wires. Both sides are using 115200 baud, 8N1. They are working for months and never have any error until I start testing ESP32C3 light sleep. I know bouncing effect. And the bouncing effect will cause problem even IDF v5.0b1. So I always have 0.1uF cap added to the pin. With the filter cap, IDF 5.0b1 works without any issue. But with the same wiring, arudino-esp32 and IDF 4.4.2 just do not work. Please try this:
Thanks! |
Hi, I have switched to ESP IDF and do not have time to check this issue. If I have new finding in the future, I will update this issue. Thanks! |
Board
ESP32-C3-DevKitM-1
Device Description
ESP32-C3-DevKitM-1 connected with STM32-G030 via UART
Hardware Configuration
Serial1 RX pin: GPIO3
Serial1 TX pin: GPIO2
Version
v2.0.4
IDE Name
PlatformIO Espressif 32 (5.1.0) > Espressif ESP32-C3-DevKitM-1
Operating System
macOS 12
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
115200
Description
There is a solution for this issue. This solution helps UART wake up. But there are still issues:
When you keep uploading the same sketch (without power reset), or pressing reset button, sometimes wake up may cause system reset with the following message:
When restarting happens, it may keep on restarting for a long time, or may resume normal wake up after some restarting. And it may restart again.
But It seems power reset may help sometimes.
And for using
esp_sleep_enable_timer_wakeup
only, there is no restart issue.Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: