Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By mickey
#14924 if I can flash nodemcu to chip then the problem cant be wiring?
maybe its something with board.txt?
User avatar
By sej7278
#14934 it could be an issue with the esptool bundled with the arduino ide fork if you can upload ok with nodemcu.

i got esptool.py (as used by nodemcu) working by changing these lines in platform.txt

Code: Select alltools.esptool.cmd=esptool
tools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp {serial.port} -ca 0x00000 -cf "{build.path}/{build.project_name}_00000.bin" -ca 0x40000 -cf "{build.path}/{build.project_name}_40000.bin"


to:

Code: Select alltools.esptool.cmd=esptool.py
tools.esptool.upload.pattern="{path}/{cmd}" --port {serial.port} write_flash 0x00000 "{build.path}/{build.project_name}_00000.bin" 0x40000 "{build.path}/{build.project_name}_40000.bin"


and putting a copy of esptool.py in (arduino directory)/hardware/esp8266com/esp8266/tools/linux/

also check your wiring - i just had the exact same problem and it was a dodgy wire from vcc to ch_pd, so ch_pd was floating all over the place according to the multimeter