ESP32C3 USB & UART Download Mode

The ESP32-C3 supports two ways to download the firmware: UART0 and USB.

  • The BootMode for ESP32-C3 as follows:
    在这里插入图片描述
    This order of the 4 bits can be summarized as follows:
    在这里插入图片描述

1 Download the firmware using the UART pins

在这里插入图片描述
在这里插入图片描述

2 Download the firmware using the USB pins

  • The ESP32-C3 chip has a built-in USB Serial/JTAG Controller, which supports use USB pins to download firmwareprint the log , and JTAG debugging.

  • The ESP32-C3 has no built-in USB-OTG (USB Host and USB Device are not supported), it does not support the secondary development of universal USB applications.
    在这里插入图片描述

  • For the hardware requirements for use USB pins to download firmware, please refer to the " USB Serial/JTAG Controller Console " guide.

  • ESP32-C3 only supports USB CDC download mode.

  • Connect ESP32-C3 to the USB port as follows:
    在这里插入图片描述

  • The USB hardware schematic diagram as follows:
    在这里插入图片描述

  • Based on the ESP-IDF software compilation environment, you need to set the following configs when downloading firmware using the USB pins:

Note: USB download mode is only supported on ESP-IDF v4.4 or later version.

menuconfig → Component config → ESP System Settings → Channel for console output → USB Serial/JTAG Controller
在这里插入图片描述

  • To query USB ports on Ubuntu environment:

    ll /dev/ttyACM*
    
  • The ESP32-C3 uses USB CDC mode to download firmware command

    idf.py -p /dev/ttyACM* flash monitor
    

3 【Introductions】

  • When you using the USB pins to download firmware , you can also using the USB pins to print program running logs .

  • Under the " SPI_DOWNLOAD_BOOT " and " UART0_BOOT" modes, it is not supported use USB pins to download firmware.

  • Both download modes are supported when the hardware conditions for downloading firmware using UART pins and downloading firmware using USB pins are met at the same time.

  • But the idf.py flash command will default use the UART download mode. In USB download mode, you need to specify the USB port number and run the idf.py -p /dev/ttyACM0 flash command to download firmware.

  • If your computer environment does not recognize ESP32-C3 devices, please refer to the " Establish Serial Connection with ESP32-C3 " guide .

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值