Skip to content

Instantly share code, notes, and snippets.

@shadowandy shadowandy/platform.txt
Last active Dec 30, 2017

What would you like to do?
Using esptool for Arduino IDE
Just open platform.txt located at
and move to the end of file. Then you will see this line.
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"
Change it like this way
#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.pattern="/Users/shadowandy/Documents/Arduino/esptool/" --port "{serial.port}" write_flash 0x00000 "{build.path}/{build.project_name}.bin"
You can change the full path to to wherever you installed on your system.

This comment has been minimized.

Copy link

andreyvit commented Dec 30, 2017

Note to whoever is still using this: to avoid errors when programming boards that don't support QIO (e.g. NodeMCU from Amica), you need -fm dio in the command line, so adjust like this:

tools.esptool.upload.pattern="/usr/local/bin/" --port "{serial.port}" --baud {upload.speed} write_flash -fm {build.flash_mode} 0x00000 "{build.path}/{build.project_name}.bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.