Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By eric6286
#43391 Hello,

I achieved to compile and install an ARM toolchain, using pfalcon :

https://github.com/pfalcon/esp-open-sdk

I also built esptool 0.4.8

I get a strange error : compilation of sketches is ok, but upload fail. After some investigations, it seems that some parameters are missing in the esptool command line.

If I launch manually esptool with the line that arduino IDE generate and parameters below, upload works. Basically, it seems that port, speed, card type and write parameters are missing when IDE generates esptool command line :

-cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000000 -cf /tmp/build03404dee50bd52e6a7e5abb98066b567.tmp/MY_SKETCH.ino.bin -vv

Is anyone have an idea about this ? Perhaps there's somewhere a script which generate the command line that I could edit for adding missing parameters ?

Many thanks
User avatar
By martinayotte
#43393 This should be already handled by the command definition located in esp8266/hardware/esp8266/2.1.0/platform.txt

Code: Select alltools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}.bin"
User avatar
By eric6286
#43433 Hello,

Thanks for your reply,

I've this lines in my platform.txt. All seems ok. Very strange ...

Code: Select alltools.esptool.cmd=esptool
tools.esptool.cmd.windows=esptool.exe
tools.esptool.path={runtime.tools.esptool.path}
tools.esptool.network_cmd=python
tools.esptool.network_cmd.windows=python.exe

tools.esptool.upload.protocol=esp
tools.esptool.upload.params.verbose=-vv
tools.esptool.upload.params.quiet=
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}.bin"
tools.esptool.upload.network_pattern="{network_cmd}" "{runtime.platform.path}/tools/espota.py" -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"


I'm going to continue investigation. Do you know if there's another config file involved in upload process ?

Regards