Hi,
I am playing with ESP32-C3.
Which function is used to put char on UART over USB/JTAG?
From esp-idf/components/log/log.c esp_log_writev() uses (*s_log_print_func)(format, args) which is set to "vprintf" by default.
Looking through sources I can't find that is set to something else.
Following executing path with GDB (vanilla v13.2) the last executed line is:
https://github.com/espressif/newlib-esp ... ntf.c#L686
Which doesn't make sense.
If I want to put char to USB-UART without IDF's help which ROM/libc function I should use?
If I to implement it myself, to which address I should write my char?
USB UART implementation
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: USB UART implementation
It depends. If you get your debugging info via the USB-serial-JTAG port as well, you can simply use putchar().
Who is online
Users browsing this forum: No registered users and 84 guests