WLED icon indicating copy to clipboard operation
WLED copied to clipboard

[0.16-dev] [0.15.x-dev] bootloader offsets only correct for esp32 and esp32-s2

Open softhack007 opened this issue 3 months ago • 2 comments

https://github.com/wled/WLED/blob/7aedf77d837e35001c6a2b46020265bead2666ba/wled00/ota_update.cpp#L15

The current code does not include correct bootloader offsets for all MCUs.

According to https://github.com/espressif/arduino-esp32/blob/5521e02627fa6909818d7d12657b59814a506198/tools/pioarduino-build.py#L217-L219

board bootloader offset
esp32 0x1000
esp32-S2 0x1000
esp32-S3 0x0000
esp32-C3 0x0000
upcoming boards
esp32-C5 0x2000
esp32-P4 0x2000
esp32-C6 0x0000

affects PRs:

  • #4983
  • #4984
  • #5061

softhack007 avatar Nov 09 '25 19:11 softhack007

ESP32 classic was my main intention for the bootloader update as that's the only platform we are moving from V3 to V4

I don't recall now if the change of offset was one of the things Claude tried while trying to fix checksum errors for the other platforms

I'll have to give it a try, unless you beat me to it @softhack007

netmindz avatar Nov 11 '25 09:11 netmindz

ESP32 classic was my main [...] as that's the only platform we are moving from V3 to V4

I agree - might be better to initially launch the feature for esp32 only, and wait for more experiences before we also support bootloader upgrades on -S2, -S3, -C3, etc.

softhack007 avatar Nov 17 '25 18:11 softhack007