Uploading pre‐compiled OTA binaries - GuruSR/Watchy_GSR GitHub Wiki
The Bin folder contains files necessary for uploading the firmware's current version:
Regular OTA:
Watchy Versions 1.0 to 2.0: GSR.ino.esp32.bin
Watchy Version 3.0 ONLY: GSR.ino.esp32s3.bin
OTA Bin files are used by Watchy GSR's OTA Website, where you can upload future bin files directly to the Watchy (over WiFi).
Merged Bin File for full upload:
Watchy Versions 1.0 to 2.0: GSR.ino.esp32.merged.bin
Watchy Version 3.0 ONLY: GSR.ino.esp32s3.merged.bin
To use OTA Bin files:
- With Watchy GSR, go to Options -> OTA Website.
- Browse to the OTA Website, you can select to Upload Firmware.
- Select the downloaded bin for your Watchy version.
- Click Upload to upload the firmware.
- Once the upload has finished all Watchy versions will automatically reboot when the upload is complete.
For those who DO NOT WANT TO COMPILE:
- Download the Merged Bin file for your version.
- Visit using a Chromium based browser Adafruit ESPTool
- Plug in your Watchy (if not already done).
- V3 Users, hold the top two buttons down for at least 4 seconds, then release the top left one.
- Click Connect and pick your Watchy and click Connect again.
- You should see 4 "Choose a file..." buttons, press the first one, pick the Merged Bin you downloaded.
- Once you've selected the file, the Program button will be present.
- Click the Program button to upload the firmware.
- Once the upload has finished all Watchy versions will automatically reboot when the upload is complete.
What to do when the above fails:
- KEEP the Merged Bin file from above!
- Visit ESPTOOL and download the version for your system.
- Extract the downloaded archive to a location you can remember.
- Open a terminal/shell/command line and change the current path to the location where you extracted the archive.
- If you're archive has esptool.py in it, you need to have the .py on the end of the command.
- If you're flashing a V3, you need to add s3 to the chip name.
- Use the command in 10 to flash the firmware, be sure to note the [] & () segments to fill them with the necessary information.
- Remove the
[s3]
section if you don't have an V3 Watchy and you're not using esptool.py[.py]
. - Remove the [ and ] surrounding anything you do need. Do not include the ( or ) in your final command.
- esptool[.py] -p (PORT) --before default_reset --after hard_reset --chip esp32[s3] write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 (location and filename of your downloaded Merged Bin)
- Once it flashes, V1 to V2 will reboot on their own, V3 requires releasing the top right button after holding both top buttons for ~5 seconds.
So, you're here and after doing the above 1 to 11, V1 to V2 won't reboot and the V3 resets to nothing:
- Don't get discouraged.
- Remove the merged bin you downloaded.
- Download the regular OTA bin for your version.
- Download the "manual upload" file for your version.
- Extract the downloaded "manual upload" to the same place as the OTA bin you downloaded.
- Follow the instructions to use the esptool as in the previous above section at #4 to #9.
- Instead of the #10 command, use #9 below. There are 4 files that require the path to be added if you're not at that location.
- Change (path to file) to the path and include the separator (\ or /) after the path for your OS.
- esptool[.py] --chip esp32[s3] --p (PORT) --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_size detect --flash_freq 80m 0x[100]0 (path to file)GSR.ino.bootloader.bin 0x8000 (path to file)GSR.ino.partitions.bin 0xe000 (path to file)boot_app0.bin 0x10000 (path to file)GSR.ino.esp32[s3].bin
- The [100] on #9, is to try it at 0x1000, if it does not work, try it at 0x0.
- Once it flashes fully, follow #11 above to when it should finish! Remember, future bin files (OTA) can be uploaded directly to the Watchy via OTA Website.