Moderator: igrr
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 :
"/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 :
/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
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.