Skip to content

ESP32-S3 does not boot until Serial console is attached. (Using CDC on Boot). #1102

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

Closed
sblantipodi opened this issue May 22, 2023 · 2 comments

Comments

@sblantipodi
Copy link

Hi all...
I'm using an Esp32-S3 (from Lolin and from Unexpected Maker)

to use the Serial.print() on the ESP32-S3 I need to add this build_flags:
‘-D ARDUINO_USB_MODE=1’
‘-D ARDUINO_USB_CDC_ON_BOOT=1’
to my platformio.ini.

If I add this flags I can correctly print to Serial but the microcontroller doesn’t “boot” automatically.
If I connect the microcontroller to a power bank, the sketch does not start,
if I connect it to the usb the sketch does not start until I open the Serial monitor.

how this is possible?

code can be found here:
https://github.com/sblantipodi/glow_worm_luciferin/tree/reduced_footprint

@sblantipodi
Copy link
Author

similar problem when disconnecting the serial console.
when disconnecting the serial console the ESP stops working.

@sblantipodi
Copy link
Author

Closing because I have found a duplicate issue here.
espressif/arduino-esp32#7554

My problem was related to the fact that Serial.flush() is now blocking on ESP32-S3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant