Skip to content
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

ESP32C3 - Serial appears to block the application #21

Closed
thiccnfun opened this issue Feb 10, 2024 · 2 comments
Closed

ESP32C3 - Serial appears to block the application #21

thiccnfun opened this issue Feb 10, 2024 · 2 comments

Comments

@thiccnfun
Copy link

From discord:

the esp32c3 I'm working with seems to halt execution or something unless there is a serial monitor connected. If I plug it into my PC, it seems to connect to wifi as expected, but the web ui (using the sveltekit build) is not accessible... However the moment I start a serial monitor the UI loads up.

Commenting/removing all references to Serial appears to resolve this issue.

The following files (excluding main.cpp) had Serial lines that were commented:
image

Maybe unique to the ESP32C3, or the Seeed Studio XIAO ESP32C3 board specifically.

@pletch
Copy link

pletch commented Feb 10, 2024

For reference, I am running the same Seeed Studio board and didn't have to comment out the Serial lines as mentioned. After flashing and moving the board to stand-alone power supply, the web ui was not initially accessible but it did eventually come up when I checked again some time later. During inaccessible time, the board could have been in wifi AP mode rather than connected wifi STA mode but I didn't immediately investigate.

Only customizations I am using are a platformio.ini definition for the Seeed board (LED_BUILTIN assigned to GPIO4 arbitrarily):

board = seeed_xiao_esp32c3
board_build.mcu = esp32c3
board_build.partitions = min_spiffs.csv
build_flags = 
    ${env.build_flags}
    -DLED_BUILTIN=4```

@theelims
Copy link
Owner

HEAD now contains a buildflag -D SERIAL_INFO to enable or disable all Serial.print() statements.

The issue seems to be coming from the underlying Arduino libraries and is widespread. See
espressif/arduino-esp32#7554
espressif/arduino-esp32#8322

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

3 participants