-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
ESP32 C3 Supermini only boots when USB is connected and Serial is used. #9545
Comments
@satbeginner - Thanks for reporting. Let me investigate it. |
It was fixed in 2.0.15 but not in 3.0.0-RC1... I'll submit the necessary PR. |
I confirm this bug on ESP32-S3. @SuGlider Can you provide this PR or commit that fix this issue in 2.0.15 ? Thanks ! |
Hi all, thanks for your work. Thanks again for your work ! Leo |
Hi all, today my Arduino IDE upgraded the board library to 3.0.0-rc2 so I could test it on a ESp32 C3: Success!! Many thanks, Leo |
Board
ESP32 C3 Supermini
Device Description
ESP32C3 Dev Module
Hardware Configuration
No pins connected, just the build-in LED is used.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows-10
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
115200
Description
Hi all, I was used that when I use a Serial.begin(115200) in Setup() and I have USB CDC on Boot enabled I can see any Serial.print messages in the Serial Monitor of the IDE.
And yes, that works.
However, like since one week or so, when I flash the code that still works, but now the ESP32C3 no longer boots when the board is NOT connected to a usb port of my PC.
Even with the IDE not started it will not boot on pressing reset or at power on.
But, as soon as I start the IDE or open the serial port (COM12 in my case) eg. by using Putty on that serial port, at that moment YES, the board boots and will start to output the Serial.print messages.
I was used that a board would run anyway, even with no serial port connected.
If I flash with USB CDC on boot Disabled, it won't run either.
I can make it run only when I remove all Serial.xxxx statements from my code before flashing??
I have the feeling this started about a week ago, because I had code running that I flashed a week ago that was running fine when using an external 5V supply. (Yes, I checked the voltages)
I changed some small stuff in the code and flashed again this week, and now it won't boot anymore, only when connected to either the IDE or Putty using the proper COM-port, or commenting out ALL Serial.xxxx statements?
When I use Putty to see the output of the Serial.xxx statements the ESP32 stops working when I disconnect Putty...
Is this because the ESP32C3 always expects a serial-port active when declared as Serial.begin(115200)??
Is there a way of keeping the Serial.xxxx statements in there but setting the serial port to ignore when not there?
I am stumped, but it does reproduce 100%.
Un saludo,
Leo
Sketch
Debug Message
Other Steps to Reproduce
Flased without any Serial.xxxxx statements it will boot and run.
Also when flashed with the Serial- statements connected to PC, but with Putty active instead of the Arduino IDE, it will boot and run too.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: