micropython为ESP32-C3添加USB和JTAG支持

MicroPython、microbit、makecode等
最新动态
回复
头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

micropython为ESP32-C3添加USB和JTAG支持

#1

帖子 shaoziyang »

为 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.
 

15268026301
帖子: 48
注册时间: 2021年 6月 3日 10:12

Re: micropython为ESP32-C3添加USB和JTAG支持

#2

帖子 15268026301 »

这个只能下载用吧,不能hid之类的

15268026301
帖子: 48
注册时间: 2021年 6月 3日 10:12

Re: micropython为ESP32-C3添加USB和JTAG支持

#3

帖子 15268026301 »

这个只能下载用吧,不能hid之类的

头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

Re: micropython为ESP32-C3添加USB和JTAG支持

#4

帖子 shaoziyang »

15268026301 写了:
2021年 9月 1日 19:25
这个只能下载用吧,不能hid之类的

 
hid不清楚实现了没有,没有看到说明。circuitpython实现了hid,可以做USB键盘和鼠标。

15268026301
帖子: 48
注册时间: 2021年 6月 3日 10:12

Re: micropython为ESP32-C3添加USB和JTAG支持

#5

帖子 15268026301 »

我看datasheet说esp32c3的usb只能用来下载和调试用,不能其他操作

头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

Re: micropython为ESP32-C3添加USB和JTAG支持

#6

帖子 shaoziyang »

还没有仔细看文档。如果它是标准USB,可以编程控制,就可以做其他功能。如果不能编程就不行。

blablabla112
帖子: 1
注册时间: 2021年 12月 10日 16:06

Re: micropython为ESP32-C3添加USB和JTAG支持

#7

帖子 blablabla112 »

shaoziyang 写了:
2021年 9月 1日 20:53
15268026301 写了:
2021年 9月 1日 19:25
这个只能下载用吧,不能hid之类的


 
hid不清楚实现了没有,没有看到说明。circuitpython实现了hid,可以做USB键盘和鼠标。

 
不清楚就不要乱说哈,我翻了半天,才发现CircuitPython的USB-HID模式压根就不支持ESP32-C3,见这个链接:
http://www.circuitpython.cn/latest/shar ... index.html

 

头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

Re: micropython为ESP32-C3添加USB和JTAG支持

#8

帖子 shaoziyang »

没看到说不支持ESP32-C3啊

回复

  • 随机主题
    回复总数
    阅读次数
    最新文章