You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In uart_task.c we use tud_cdc_n_read to read from the USB_CDC_ESP32. This function returns a length and places data into a buffer.
When connecting a terminal program (tested with screen) the tud_cdc_n_read returns garbage data, specifically some data that has previously been sent by the ESP32 to the RP2040, so it's data that was in the transmit buffer of the CDC interface. The tud_cdc_n_read actively writes to our buffer so this appears to be an SDK bug.
The text was updated successfully, but these errors were encountered:
Relates to badgeteam/badgePython#25 as this garbage data is what is causing the ESP32 to crash (though the ESP32 should never crash when receiving garbage data, so there is another bug to be solved over at the ESP32 side).
In uart_task.c we use tud_cdc_n_read to read from the USB_CDC_ESP32. This function returns a length and places data into a buffer.
When connecting a terminal program (tested with screen) the tud_cdc_n_read returns garbage data, specifically some data that has previously been sent by the ESP32 to the RP2040, so it's data that was in the transmit buffer of the CDC interface. The tud_cdc_n_read actively writes to our buffer so this appears to be an SDK bug.
The text was updated successfully, but these errors were encountered: