Flashing ESP32-C3 using built-in usb serial/jtag controller
Posted: Tue Nov 16, 2021 9:11 am
Hi,
I'm using Visual Studio Code with the Espressif IDF extension on windows 10.
I have a ESP32-C3-DevKitM-1 which i was able to flash the Get-Started/blink example software using the usb connector on board.
I am now trying to flash it using the built in usb serial/jtag controller.
I have a usb cable connected as below:
Red -> 5V
Black -> GND
Green -> D+ (IO19)
White -> D- (IO18)
I am manually resetting the device into download mode by connecting IO09 to GND and resetting it.
I selected the right COM port and now when i start flashing i get this:
esptool.py v3.1-dev
Serial port COM6
Connecting...
Chip is unknown ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 84:f7:03:09:95:7c
Uploading stub...
Running stub...
And it stays there forever.
If anyone can help me, i would very appreciate it.
Here's what i get when it flashes successfully over the onboard usb:
esptool.py v3.1-dev
Serial port COM3
Connecting....
Chip is unknown ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 84:f7:03:09:95:7c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x00037fff...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 160256 bytes to 80218...
Wrote 160256 bytes (80218 compressed) at 0x00010000 in 2.9 seconds (effective 434.9 kbit/s)...
Hash of data verified.
Compressed 19024 bytes to 11330...
Wrote 19024 bytes (11330 compressed) at 0x00000000 in 0.6 seconds (effective 259.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 319.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I'm using Visual Studio Code with the Espressif IDF extension on windows 10.
I have a ESP32-C3-DevKitM-1 which i was able to flash the Get-Started/blink example software using the usb connector on board.
I am now trying to flash it using the built in usb serial/jtag controller.
I have a usb cable connected as below:
Red -> 5V
Black -> GND
Green -> D+ (IO19)
White -> D- (IO18)
I am manually resetting the device into download mode by connecting IO09 to GND and resetting it.
I selected the right COM port and now when i start flashing i get this:
esptool.py v3.1-dev
Serial port COM6
Connecting...
Chip is unknown ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 84:f7:03:09:95:7c
Uploading stub...
Running stub...
And it stays there forever.
If anyone can help me, i would very appreciate it.
Here's what i get when it flashes successfully over the onboard usb:
esptool.py v3.1-dev
Serial port COM3
Connecting....
Chip is unknown ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 84:f7:03:09:95:7c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x00037fff...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 160256 bytes to 80218...
Wrote 160256 bytes (80218 compressed) at 0x00010000 in 2.9 seconds (effective 434.9 kbit/s)...
Hash of data verified.
Compressed 19024 bytes to 11330...
Wrote 19024 bytes (11330 compressed) at 0x00000000 in 0.6 seconds (effective 259.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 319.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...