Hello !
I use ESP32-C3-DevKitM-1.
I flash without issue using the embedded CP2102 :
Code: Select all
/home/petermike/.arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/riscv32-esp-elf-size -A /tmp/arduino_build_61120/Blink.ino.elf
Sketch uses 217074 bytes (16%) of program storage space. Maximum is 1310720 bytes.
Global variables use 9948 bytes (3%) of dynamic memory, leaving 317732 bytes for local variables. Maximum is 327680 bytes.
python3 /home/petermike/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py --chip esp32c3 --port /dev/ttyUSB1 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 /tmp/arduino_build_61120/Blink.ino.bootloader.bin 0x8000 /tmp/arduino_build_61120/Blink.ino.partitions.bin 0xe000 /home/petermike/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_61120/Blink.ino.bin
esptool.py v3.3-dev
Serial port /dev/ttyUSB1
Connecting....
Chip is ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 10:91:a8:3a:23:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00047fff...
Flash params set to 0x022f
Compressed 12912 bytes to 9261...
Writing at 0x00000000... (100 %)
Wrote 12912 bytes (9261 compressed) at 0x00000000 in 0.4 seconds (effective 290.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 440.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 577.2 kbit/s)...
Hash of data verified.
Compressed 227104 bytes to 127799...
Writing at 0x00010000... (12 %)
Writing at 0x0001ab9c... (25 %)
Writing at 0x0002180b... (37 %)
Writing at 0x0002781c... (50 %)
Writing at 0x0002dc1b... (62 %)
Writing at 0x00033a5e... (75 %)
Writing at 0x0003b741... (87 %)
Writing at 0x000426bb... (100 %)
Wrote 227104 bytes (127799 compressed) at 0x00010000 in 3.6 seconds (effective 498.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Now I want to use the build-in USB Serial/JTAG
Connected USB like so :
19 : D+ (green)
18 : D- (white)
GND (black)
+5V (red)
Serial USB device detected once plugged :
Code: Select all
[14538.348726] usb 3-2.1: new full-speed USB device number 25 using xhci_hcd
[14538.450014] usb 3-2.1: New USB device found, idVendor=067b, idProduct=2303
[14538.450021] usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14538.450024] usb 3-2.1: Product: USB-Serial Controller
[14538.450028] usb 3-2.1: Manufacturer: Prolific Technology Inc.
[14538.507505] usbcore: registered new interface driver pl2303
[14538.507532] usbserial: USB Serial support registered for pl2303
[14538.507574] pl2303 3-2.1:1.0: pl2303 converter detected
[14538.509036] usb 3-2.1: pl2303 converter now attached to ttyUSB0
Here is my Arduino board config :
Board : ESP32C3 Dev Module
Upload Speed : 921600
USB CDC On Boot: "Disabled"
CPU Frequency : 160 Mhz (Wifi)
Flash Frequency : 80 Mhz
Flash mode : "QIO"
But when trying to flash though the build-in USB Serial/JTAG I get the following error :
Code: Select all
Sketch uses 217074 bytes (16%) of program storage space. Maximum is 1310720 bytes.
Global variables use 9948 bytes (3%) of dynamic memory, leaving 317732 bytes for local variables. Maximum is 327680 bytes.
python3 /home/petermike/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py --chip esp32c3 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 /tmp/arduino_build_61120/Blink.ino.bootloader.bin 0x8000 /tmp/arduino_build_61120/Blink.ino.partitions.bin 0xe000 /home/petermike/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_61120/Blink.ino.bin
esptool.py v3.3-dev
Serial port /dev/ttyUSB0
Connecting......................................
A fatal error occurred: Failed to connect to ESP32-C3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
the selected serial port For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
does not exist or your board is not connected
Any idea what could cause that ?