HWCDC::end() does not set tx_lock to NULL, causing crashes #8224
Labels
Chip: ESP32-C3
Issue is related to support of ESP32-C3 Chip
Chip: ESP32-S3
Issue is related to support of ESP32-S3 Chip
Status: Needs investigation
We need to do some research before taking next steps on this issue
Type: Bug 🐛
All bugs
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 tobegin()
thetx_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
The text was updated successfully, but these errors were encountered: