-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 bootloop #6519
Comments
Please change your title to ESP32-C3 bootloop. The SHA comparison failing here is cosmetic, and due to the way arduino compiles. |
Thanks for the quick reply. I didn't call it bootloop as the ESP doesn't continuously reboot (i. e., the message doesn't continuously repeat) as in issue #6013. The boot process hangs and no further output is visible. Of course there could be a loop hanging things up in the background so I did change the title per your request. I did try erasing the flash and it didn't change the results. Also, turning on the debug level didn't result in any more output to share. I'm just happy that I have a workaround even though I can't use the Arduino IDE integration. |
Please use latest Arduino core 2.0.3-rc1. GPIO handling has been refactored.
|
I could imagine that your board is not identified as rev3. IDF libs are configured and compiled for Arduino to be only compatible with boards >= rev3. In this case boot process will stop.
|
I had this same issue, used the change that Jason provided for the ini file and now I get nothing on the serial monitor after uploading code. My ini file: monitor_speed = 115200 My main.cpp: `#include "Arduino.h" void setup() { } void loop(){ }` |
Just place this in the ini file.
I have reverted the faulty PR in RC1 (see issues and discussion) |
Even after changing my ini to this I still get a blank serial monitor. The same sketch on the Arduino IDE works with this board so I know it is a platform.io issue. Thank you for getting back to me quickly |
Just deleted folder
and this sketch (my board has the Led on GPIO 3)
LED is blinking, and no serial message So sketch is working in general. I have to look what is different regarding Serial ArduinoIDE setup and current PlatformIO setup
|
I highly doubt it was working in Arduino IDE since there is
and i get
|
So there is NO issue at all. |
I've retested and all is working fine now with the Arduino IDE, so I'm closing the issue. I believe my test code was missing the Serial.begin(115200) line as @Jason2866 noted above for @ggalisky's issue. So I wasn't seeing any output. Also, I do know that my larger project code did have Serial.begin(9600), but my monitor was probably in 115200. Usually when I do this I see some garbage characters which would remind me to change the baud rate, but in this case I didn't see any. Thanks for the help! |
I had the Serial.begin(XXXXX) in my first post though... and still have no output on the Serial monitor for Platform.io. It does work on the Arduino IDE which makes me think it has something to do with "USB CDC on boot" option that is enabled in the Arduino IDE. When I turn this option off in the Arduino IDE the serial monitor stops working. EDIT: I only have the built in USB programming circuit, not an external USB to UART converter. |
This is related #6089 (comment) |
I have a C3 with no UART and USB connected directly to 18 and 19 -D ARDUINO_USB_MODE=1 Then Serial output works great. Also using @Jason2866 git link for the platform and using this latest repo for package |
|
Board
ESP32-C3-DevKitC-02U
Device Description
Stock board with USB cable to PC running Arduino IDE.
Hardware Configuration
No external hardware
Version
v2.0.2
IDE Name
Arduino IDE v1.8.19
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600 and tried 512000 and 115200
Description
Using new Espressif board received last week. In Arduino IDE, selected ESP32C3 Dev Module under Tools/Board and compile any sketch, SHA-256 comparison fail occurs on boot and no other output.
Tried 40 MHz, various upload speeds, both QIO and DIO flash modes, same results with anything I tried.
One unusual thing I see during flashing is: "Chip is unknown ESP32-C3 (revision 3)"
Sketch
Debug Message
Other Steps to Reproduce
As a work-around I was able to use the approach of adding the Arduino component to an installation of the ESP-IDF v4.4. Then build and flash my full Arduino project in ESP-IDF. The instructions I used are at: https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html
Flash size is set for 4MBs, which was the default and what is listed in specification.
BTW, I didn't see PSRAM listed as config option in Arduino IDE, so I answered no above.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: