wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

ESP32-C3 `no-std` UART Logging Issue

Open apollolabsdev opened this issue 1 year ago • 2 comments
trafficstars

Using ESP32-C3 and no-std, attempting to log to the console using UART0 alongside println does not work. The code pauses without any output printed.

This is a follow-up to the closed issue: esp-rs/esp-hal#1531 .

For the non-Rust ESP32-C3 devkits, both UART and esp_println share the same lines, however, this behavior does not seem to reflect on Wokwi. I was not able to verify on hardware myself with a different devkit as I only have access to a Rust board.

apollolabsdev avatar May 20 '24 16:05 apollolabsdev

Thanks for reporting! If I understand correctly, the prints go to the Serial JTAG UART?

urish avatar Jun 08 '24 08:06 urish

Correct. For the ESP32-C3s. Though the devkitM utilizes an external USB-UART bridge (schematic).

apollolabsdev avatar Jun 08 '24 12:06 apollolabsdev

Update: we now have support for logging to the serial JTAG UART. It can be enabled by adding an attr to diagram.json:

https://docs.wokwi.com/guides/esp32/#usb-cdc-serial-over-usb-support

urish avatar Oct 14 '24 13:10 urish