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

ESP32S2 - Loosing USB conection and Serial Monitor output on chip reset #4294

Closed
Algonsi opened this issue May 29, 2022 · 4 comments
Closed

Comments

@Algonsi
Copy link

Algonsi commented May 29, 2022

Kind of issue:

  • [ X] Feature Request.

Configuration

platform = espressif32
board = lolin_s2_mini
framework = arduino

Operating system:
Windows 11

PlatformIO Version (platformio --version):
PLatformIO Core, version 6.0.1

Description of problem

Since the ESP32S2 chip implements the USB connection itself (it has the USB peripheral), when it restarts, it temporarily loses its USB connection (so the monitor output crashes) and then reconnects (but monitor does not actualizes). This is normal behavior. The same goes for other microcontrollers implementing USB themselves, such as Atmel ATSAMD21 chips.

Other microcontroller boards don’t do this if they have a dedicated USB-serial chip (e.g., CH340, CP2102, …) on them that is not affected by the restart of the main microcontroller, and thus don’t have this problem.

I’m not sure whether anything can be done against that at all – The USB disconnect is pretty much bound to happen when you ESP.restart(). I guess PlatformIO could have an option where it tries to reconnect to the lost device for a while.

Steps to Reproduce

ESP.restart();

Actual Results

Loss of USB connection and serial monitor output

Expected Results

Serial monitor automatically continues showing output after USB reconnection

@Wick3dJack
Copy link

I'm not sure if my issue is related but my sgen l v1 board crashes with a ram or memory error also the no "sd card" error pops up. I've been trying to print for over a month to no avail. =\

@ivankravets
Copy link
Member

@Wick3dJack do you use the latest version of ESP32 dev platform? Please forward your issue to https://community.platformio.org/

@egnor
Copy link

egnor commented Jun 7, 2022

This seems related to #3939, perhaps even the same issue?

@ivankravets
Copy link
Member

Duplicate of #3939

Please check temporary https://docs.platformio.org/en/latest/faq/advanced-serial-monitor.html

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

No branches or pull requests

4 participants