Sketch Upload Tool for Windows

vangalvin
Posts: 6
Joined: Tue Oct 08, 2019 5:42 am

Sketch Upload Tool for Windows

Postby vangalvin » Sat Nov 02, 2019 9:57 pm

Does anyone know of a stand alone windows application (or command line) that can be used to upload a pre compiled sketch to the ESP32.

I have a unit that has now been sent to a remote location and if for some reason there are any unforeseen minor bugs I would like to be able to send someone out in the field and have them upload the new sketch/firmware via serial. due to power constraints I was not able to include OTA as the system spends most if its time in sleep mode.

pipi61
Posts: 34
Joined: Fri Dec 23, 2016 10:58 pm

Re: Sketch Upload Tool for Windows

Postby pipi61 » Sat Nov 02, 2019 10:21 pm

Hi!
in arduino File/Preferences menu swhitch on verbose... option.
Then compile/upload sketch.
In lower windows find line where containing esptool.exe
My lines: C:\Arduino185_ESP32_ANET\hardware\espressif\esp32/tools/esptool.exe --chip esp32 --port COM3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Arduino185_ESP32_ANET\hardware\espressif\esp32/tools/partitions/boot_app0.bin 0x1000 C:\Arduino185_ESP32_ANET\hardware\espressif\esp32/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 d:\Temp\arduino_build_161864/GetChipID.ino.bin 0x8000 d:\Temp\arduino_build_161864/GetChipID.ino.partitions.bin
Save/backup bin files, and esptool.exe(find the path), and modify this command line to Your path, and com port number.

pipi61
Posts: 34
Joined: Fri Dec 23, 2016 10:58 pm

Re: Sketch Upload Tool for Windows

Postby pipi61 » Sat Nov 02, 2019 10:24 pm


vangalvin
Posts: 6
Joined: Tue Oct 08, 2019 5:42 am

Re: Sketch Upload Tool for Windows

Postby vangalvin » Sun Nov 03, 2019 1:09 am

thanks @Pipi61 will give that a try.
I was not sure if esptool.exe would run standalone.
essentially if i send that and the relevant bins over on a SD card and maybe a .bat file with the commands added so all they need to do is double click the batch file they should be all good.
Need to make it as simple as possible for the person on the ground doing the update

pipi61
Posts: 34
Joined: Fri Dec 23, 2016 10:58 pm

Re: Sketch Upload Tool for Windows

Postby pipi61 » Sun Nov 03, 2019 2:32 pm

Yes. But one problem, the drive letter in path change on other computer.
In batch file use relative path, without drive letter...

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 9 guests