Problems uploading 'The chip stopped responding'
Closed this issue · 1 comments
Hi,
Using OSX 14.5.1/silicon and a CH340 USB to Serial adapter from a ESP32-CAM and uploading using esptool latest version
the upload would fail at 17% throwing 'The chip stopped responding'.
Things that I tried:
-
Made sure that TX/RX are not inverted.
-
Added a ground connection from CH340 to WF1.
-
Tried different baud speeds.
The order of connecting the devices appears to be important. I would first start WF1 in upload mode, then plug the CH340 into the computer. Next, I would start the upload tool with infinite connection attempts, labeled 'connect-attempts'. Finally, I would connect the jumper cables, both almost simultaneously. Otherwise, I might not even establish a serial connection.
After lots of debugging it seems that --no-compress fixed the issue.
This is how the final upload script looks:
esptool.py --connect-attempts 0 \
--chip esp32s2 \
--port "/dev/cu.usbserial-10" \
--baud 230400 \
--before default_reset \
--after hard_reset \
write_flash --no-compress \
--flash_mode keep \
--flash_freq keep \
--flash_size 4MB \
0x1000 /Users/alex/WF1-Matrix/.pio/build/esp32s2/bootloader.bin \
0x8000 /Users/alex/WF1-Matrix/.pio/build/esp32s2/partitions.bin \
0xe000 /Users/alex/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin \
0x10000 .pio/build/esp32s2/firmware.bin