ESP32 Outputting Garbage in REPL
Port, board and/or hardware
esp32s3
MicroPython version
Hi I was using micropython on my esp32s3 and then it started outputting garbage. I really don't want this to happen to the device whilst it is running in production. What do you think the cause of this error is. Also is there any best practices in stopping this if it happens or preventative measures. All help is much appreciated.
<img width="1404" alt="Screenshot 2024-06-24 at 09 08 04" src="https://github.com/micropython/micropython/assets/34808802/debcbd8b-f668-4460-adfa-5713f5bdae11">
MicroPython 66af921a3 on 2024-04-13; ESP32S3 module (spiram octal) with ESP32S3
Reproduction
I am not fully sure this happened out of the blue a few times and I am not sure how to recreate it
Expected behaviour
No response
Observed behaviour
<img width="1404" alt="Screenshot 2024-06-24 at 09 08 04" src="https://github.com/micropython/micropython/assets/34808802/c896dd65-3a69-488e-833b-a333b42350f0">
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
USB HID device on ESP32 has a problem!
Port, board and/or hardware
ESP32S3
MicroPython version
I created an issue on USB-LIB but I think the problem must be solved here...
https://github.com/micropython/micropython-lib/issues/1044
Reproduction
The code for reproducing the problem has been tried on MicroPython 1.26.1 and also on the new 1.27 releases.
It is not ESP board related. I tried the examples on different boards with different MicroPython versions.
I can also share Wireshark logs if necessary, but the bug is easily reproducible with the unmodified USB HID device samples from the lib directory.
Expected behaviour
The samples should "just work" also for the ESP32S3 boards.
Observed behaviour
The LED out reports are arriving nicely in the code, but all keystrokes that are sent are arriving with all bytes "zero" at the host. (Confirmed by Wireshark )
Additional Information
See the debug code changes documented in the original lib-issue!
Code of Conduct
Yes, I agree