esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
674 stars 190 forks source link

`usb_serial_jtag` example freezes when pressing a key #1811

Closed bjoernQ closed 1 month ago

bjoernQ commented 1 month ago

While embassy_usb_serial_jtag works - usb_serial_jtag doesn't work for me. Tested on ESP32-S3, ESP32-C3, ESP32-C6 ... all the same.

JurajSadel commented 1 month ago

I tried to run the usb_serial_jtag and embassy_usb_serial_jtag examples and both are working for me. I will try to run them on Windows later today as well

bjoernQ commented 1 month ago

On Windows using espflash (3.1.0) this is 100% reproducible. However using putty it doesn't freeze for me.

Still the embassy example works so there is something strange here

JurajSadel commented 1 month ago

I've tried to run it on Windows, but it doesn't recognize any USB-SERIAL-JTAG port ... I followed steps from IDF and it still doesn't work.

bjoernQ commented 1 month ago

This is most probably more of a problem in espflash than with HAL code. While the problem is seen when flashing and monitoring the problem isn't present when just flashing and the running espflash monitor separately

bjoernQ commented 1 month ago

Recreating the serialport instance before monitoring might help - in any case this is definitely not a HAL issue but an espflash issue