Skip to content

FIX: Update initial offset address to 0x0 in final esptool command#32

Open
conana wants to merge 1 commit intoGuruSR:masterfrom
conana:bin-readme-update
Open

FIX: Update initial offset address to 0x0 in final esptool command#32
conana wants to merge 1 commit intoGuruSR:masterfrom
conana:bin-readme-update

Conversation

@conana
Copy link
Copy Markdown

@conana conana commented Feb 5, 2025

On a new V3, I found myself working through to the end of the Bin/readme for uploading the precompiled binaries but the final flash was unsuccessful. Changing the offset address in esptool for the initial binary (bootloader) to 0x0 resolved the problem, so here's a tweak to the instructions. Caveat: I've not tested whether the pre-V3 hardware needs this also.

@GuruSR
Copy link
Copy Markdown
Owner

GuruSR commented Feb 6, 2025

That is odd, because the bootloader is supposed to be at 0x1000.
Bootloader - ESP32

@conana
Copy link
Copy Markdown
Author

conana commented Feb 7, 2025

Honestly, I'm very new to embedded development, so don't profess to know otherwise. I only had one pass at Watchy_GSR, where the watchy didn't come back aftre reset (was stuck in a reset/boot loop I think). However, I was able earlier to build the example stock firmware with Arduino IDE so I compared the bin/readme instructions with that known-good process. This was the build command in Arduino IDE for stock example watchfaces:

"/Users/xxxxxxxx/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool" --chip esp32s3 --port "/dev/cu.usbmodem1101" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 "/Users/xxxxxxxx/Library/Caches/arduino/sketches/7320E83775A1BAB76935C315E617A1B9/7_SEG.ino.bootloader.bin" 0x8000 "/Users/xxxxxxxx/Library/Caches/arduino/sketches/7320E83775A1BAB76935C315E617A1B9/7_SEG.ino.partitions.bin" 0xe000 "/Users/xxxxxxxx/Library/Arduino15/packages/esp32/hardware/esp32/2.0.17/tools/partitions/boot_app0.bin" 0x10000 "/Users/xxxxxxxx/Library/Caches/arduino/sketches/7320E83775A1BAB76935C315E617A1B9/7_SEG.ino.bin"

The only difference was the 0x0 here vs the 0x1000 in the bin/readme, so I changed it and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants