Search found 7 matches

by Archi.Xie
Fri Mar 04, 2022 6:43 am
Forum: ESP-IDF
Topic: ESP32-C3 CDC-ACM must printf "\n" after putchar
Replies: 4
Views: 3027

Re: ESP32-C3 CDC-ACM must printf "\n" after putchar

I solve this issue by manual set register USB_SERIAL_JTAG_EP1_CONF_REG's USB_SERIAL_JTAG_WR_DONE bit, here is the source code and test picture, hope could help more people! static void usb_cdc_transfer_task(void *arg) { while(1) { int USB_CDC_Recv_Byte = -1; uint32_t EP1_Conf_Reg = 0x00; uint32_t Se...
by Archi.Xie
Fri Mar 04, 2022 5:48 am
Forum: ESP-IDF
Topic: ESP32-C3 CDC-ACM must printf "\n" after putchar
Replies: 4
Views: 3027

Re: ESP32-C3 CDC-ACM must printf "\n" after putchar

That is odd... there indeed is a flush system in the usb-jtag-serial hardware that needs to be triggered, but from what I can tell that should be hooked up to the fflush() call. Can you try manually calling usb_serial_jtag_ll_txfifo_flush(), see if that fixes it? Ok,Thanks for reply, but which head...
by Archi.Xie
Fri Mar 04, 2022 3:30 am
Forum: ESP-IDF
Topic: ESP32-C3 CDC-ACM must printf "\n" after putchar
Replies: 4
Views: 3027

ESP32-C3 CDC-ACM must printf "\n" after putchar

Hello, My project is using ESP32-C3, I'm working on USB CDC-ACM,My program wish use CDC-ACM to putchar and getchar,but not want putchar's next must follow printf("\n") to trigger output, How can I solve this?Thanks! 1. idf.py menuconfig -> Component config -> ESP System Setting -> Channel for consol...
by Archi.Xie
Fri Mar 04, 2022 2:49 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-C3 CDC-ACM must printf "\n" after putchar
Replies: 0
Views: 1496

ESP32-C3 CDC-ACM must printf "\n" after putchar

Hello 各位, 我的项目在使用ESP32-C3,目前在调试USB CDC-ACM,我的程序中程序中希望通过USB CDC-ACM来putchar(向上位机传输字符)和getchar(从上位机获取字符)即可,不希望putchar后边必须跟上换行符"\n", 请问有什么解决之道吗?感谢! 1. idf.py menuconfig -> Component config -> ESP System Setting -> Channel for console output -> USB Serial/JTAG Controlller 2. ESP32C3的USB口只可作为JTAG和CDC-ACM...
by Archi.Xie
Mon Feb 21, 2022 4:01 am
Forum: ESP-IDF 中文讨论版
Topic: 如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?
Replies: 4
Views: 4274

Re: 如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?

谢谢各位解答,确实是升级ESP IDF到v4.3.1或者v4.4才能定向ESP32C3的Console输出到USB_SERIAL_JTAG,谢谢!
by Archi.Xie
Sat Oct 09, 2021 1:35 pm
Forum: ESP-IDF 中文讨论版
Topic: 能不能将串口打印函数重定向到自己软件模拟的uart上?
Replies: 5
Views: 8489

Re: 能不能将串口打印函数重定向到自己软件模拟的uart上?

在Component config → ESP System Settings 下面没有找到 Channel for console output额?大佬有截图么?
by Archi.Xie
Sat Oct 09, 2021 11:41 am
Forum: ESP-IDF 中文讨论版
Topic: 如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?
Replies: 4
Views: 4274

如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?

求助,如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?(如附件图片所示)官方网页上有说明:更改CONFIG_ESP_CONSOLE_UART的值来重定向Console输出,但是menuconfig中却找不到对应的可选项,备注,我用的是ESP-IDF4.3.
如何定向ESP32C3的Console输出到USB_SERIAL_JTAG.png
如何定向ESP32C3的Console输出到USB_SERIAL_JTAG?
如何定向ESP32C3的Console输出到USB_SERIAL_JTAG.png (169.63 KiB) Viewed 4274 times