[討論] micropython為ESP32-C3添加USB和JTAG支持

dcexpert 樓主
2021-9-1 10:57
本帖最后由 dcexpert 于 2021-9-1 11:18 編輯

為 ESP32-C3添加USB/JTAG支持。使用USB作為編程和終端接口,不使用UART。

 

Add a new board type for ESP32-C3 revision 3 and up that implement the USB serial/JTAG port on pin 18 and 19.  This variant uses the USB serial for programming and console, leaving the UART free.
  • Pins 18 and 19 are correctly reserved for this variant.  Also pins 14-17 are reserved for flash for any ESP32-C3 so they can't be reconfigured anymore to crash the system.
  • Added usb_serial_jtag.c and .h to implement this interface.
  • Interface was tested to work correctly together with webrepl.
  • Interface was tested to work correctly when sending and receiving large files with ampy.
  • Disconnecting terminal or USB will not hang the system when it's trying to print.

 

 esp32/boards: Add GENERIC_C3_USB board with USB serial/JTAG support.

回復評論 (3)

沙發 damiaa

2021-9-1 11:13
ESP32-C3 這個功能很好,uart0就空出來使用了。這樣有兩個串口。

板凳 freebsder

2021-9-2 17:43

我以為可以用JTAG調試mpy程序了,真要這樣真是一個很大的促進。

默認摸魚

4樓 dcexpert

2021-9-2 21:21
引用: freebsder 發表于 2021-9-2 17:43 我以為可以用JTAG調試mpy程序了,真要這樣真是一個很大的促進。

應該是不能直接調試mpy程序,但可以調試c程序吧。

電子工程世界版權所有 京B2-20211791 京ICP備10001474號-1 京公網安備 11010802033920號
    我也要說兩句
    發送
    評論
    萝卜大香蕉