Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By eric6286
#43566 Hello

It was for trying purpose. I can comment or even delete this lines, there's always an esptool command line launched by the arduino IDE :

Code: Select all"/home/pi/.arduino15/packages/esp8266/tools/esptool/0.4.8/esptool" -eo "/home/pi/.arduino15/packages/esp8266/hardware/esp8266/2.1.0/bootloaders/eboot/eboot.elf" -bo "/tmp/build03404dee50bd52e6a7e5abb98066b567.tmp/TEST_WIFI_NodeMCU_V2.ino.bin" -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo "/tmp/build03404dee50bd52e6a7e5abb98066b567.tmp/TEST_WIFI_NodeMCU_V2.ino.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec


I don't understand where this line come from. All happens like if esptool lines in platform.txt where ignored, and "something" else was generating this line, which causes uploading failure with java error (like seen in one of my previous posts).

If I let arduino only verify/compile the sketch, and after that I manually launch the following command, uploading of the compiled sketch works like a charm :

Code: Select all/home/pi/.arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 115200 -cp /dev/ttyUSB0 -ca 0x00000 -cf /tmp/build03404dee50bd52e6a7e5abb98066b567.tmp/TEST_WIFI_NodeMCU_V2.ino.bin


Regards
User avatar
By martinayotte
#43568 The first call to esptool that you show is not the UpLoad phase, it is the phase where the ELF is converted to BIN.
What is confusing you is that esptool is used for those 2 phases, it could have been two separate tools, but the author decided to make a single one for those two tasks.
User avatar
By eric6286
#43573 aahh ok ... You're right, I've just did a little test on a Win 7 PC, and effectively there's two "esptool" lines, the one already mentioned for building the bin file, and a second one for uploading the bin. This is this one which causes the crash.