Closed Roberto-spm closed 8 months ago
Hello @Roberto-spm,
it seems like your CH348
drivers are having trouble with setting the DTR
and RTS
control lines used to reset the chip into the bootloader mode.
Can you please try flashing without the reset sequence? You need to set --before no_reset
and switch the ESP32 into the bootloader mode manually before flashing.
Hello Radim,
thank you, this solved perfectly my problem, now it works! I disabled the DTR in the chip, by the way I set the bootloader mode via software with 2 mosfets
Thanks again, best regards Roberto
Nice! I am glad this worked!
Operating System
Debian trixie
Esptool Version
v4.2.1
Python Version
python 3.11.5
Chip Description
ESP32-wroom-32
Device Description
I made a custom board with ESP32-WROOM-32 cpu
Hardware Configuration
No response
How is Esptool Run
linux command line
Full Esptool Command Line that Was Run
python3 "/home/spm/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py" --chip esp32 --port "/dev/ttyCH9344USB4" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "/tmp/arduino/sketches/9FBFADF38D6EC1C1860ABE314506BB1A/Contalitri_1_2_5.ino.bootloader.bin" 0x8000 "/tmp/arduino/sketches/9FBFADF38D6EC1C1860ABE314506BB1A/Contalitri_1_2_5.ino.partitions.bin" 0xe000 "/home/spm/Arduino/hardware/espressif/esp32/tools/partitions/boot_app0.bin" 0x10000 "/tmp/arduino/sketches/9FBFADF38D6EC1C1860ABE314506BB1A/Contalitri_1_2_5.ino.bin"
Esptool Output
More Information
I made a board with 6 serial ports and usb input, with CH348 chip. The usb to serial board I made works: the serial communication between pc and esp32 is clear in both directions. The esp32 in my board can be flashed without problem, using a commercial serial to usb adapter and the same esptool command (with /dev/ttyUSB0 device)
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide