Closed
Description
Board
ESP32-C3 / ESP32-S3
Device Description
Any ESP32-C3 or -S3 using HWCDC
Hardware Configuration
Any ESP32-C3 or -S3 board using HWCDC
Version
v2.0.9
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
HWCDC::end() does not reset the semaphore.
So after a call to end()
and a new call to begin()
the tx_lock
semaphore is invalid.
Thus trying to write something to that port again will cause a crash.
arduino-esp32/cores/esp32/HWCDC.cpp
Lines 190 to 205 in 3ec5f4e
Sketch
-
Debug Message
-
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.