From 1d6a7422c6204e8610c3a4a79bc8658e2b71ae0d Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Tue, 31 Mar 2015 19:43:49 -0400 Subject: [PATCH] remove the need to set programmer, by setting upload tool --- README.md | 2 +- hardware/esp8266com/esp8266/boards.txt | 2 ++ hardware/esp8266com/esp8266/platform.txt | 7 ++++--- hardware/esp8266com/esp8266/programmers.txt | 6 ------ 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ad87537a11..330d8aae98 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Libraries that don't rely on low-level access to AVR registers should work well. #### Upload via serial port #### -Select "esptool" as a programmer, and pick the correct serial port. +Pick the correct serial port. You need to put ESP8266 into bootloader mode before uploading code (pull GPIO0 low and toggle power). diff --git a/hardware/esp8266com/esp8266/boards.txt b/hardware/esp8266com/esp8266/boards.txt index 63106726b9..81f8f7ac54 100644 --- a/hardware/esp8266com/esp8266/boards.txt +++ b/hardware/esp8266com/esp8266/boards.txt @@ -26,6 +26,7 @@ esp01.menu.UploadSpeed.256000.upload.speed=256000 esp01.menu.UploadSpeed.921600=921600 esp01.menu.UploadSpeed.921600.upload.speed=921600 +esp01.upload.tool=esptool ############################################################## wifio.name=WIFIO @@ -42,3 +43,4 @@ wifio.build.board=ESP8266_WIFIO wifio.build.core=esp8266 wifio.build.variant=wifio +wifio.upload.tool=esptool diff --git a/hardware/esp8266com/esp8266/platform.txt b/hardware/esp8266com/esp8266/platform.txt index 7dd38f5907..27e0cf6698 100644 --- a/hardware/esp8266com/esp8266/platform.txt +++ b/hardware/esp8266com/esp8266/platform.txt @@ -88,7 +88,8 @@ tools.esptool.cmd=esptool tools.esptool.cmd.windows=esptool.exe tools.esptool.path={runtime.ide.path}/hardware/tools/esp8266 -tools.esptool.program.params.verbose=-vv -tools.esptool.program.params.quiet= -tools.esptool.program.pattern="{path}/{cmd}" {program.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" +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}_00000.bin" -ca 0x40000 -cf "{build.path}/{build.project_name}_40000.bin" diff --git a/hardware/esp8266com/esp8266/programmers.txt b/hardware/esp8266com/esp8266/programmers.txt index 5be88335af..e69de29bb2 100644 --- a/hardware/esp8266com/esp8266/programmers.txt +++ b/hardware/esp8266com/esp8266/programmers.txt @@ -1,6 +0,0 @@ -esptool.name=esptool -esptool.communication=serial -esptool.protocol=esp -esptool.program.protocol=esp -esptool.program.tool=esptool -esptool.program.extra_params=