wellenvogel / esp32-nmea2000

nmea2000 gateway with ESP32
GNU General Public License v2.0
65 stars 30 forks source link

OTA Firmware full Update failing: missing magic byte #89

Closed W-Geronius closed 2 weeks ago

W-Geronius commented 1 month ago

Updating the firmware by selecting a xxx-all.bin always fails displaying an error 'missing magic byte at ...' Updating the firmware by selecting a xxx-upate.bin never fails.

-all.bin file apears to be checked like a -update.bin file (example using norbert-walter/esp32-nmea2000-obp60/releases/download/20241006/obp60_s3-dev20241006-all.bin)

CAPT-20241019-140442r

At position 288 (0x0120) of a xxx-all.bin file the magix byte can't be found - checkImage should inspect position 65824 (0x010120) All magic bytes start there: CAPT-20241019-144111

wellenvogel commented 1 month ago

You cannot flash an ...all.bin with OTA (what would be the use case for it?). This is only intended for initial flash via the WebFlasher or esptool.

W-Geronius commented 1 month ago

Ok, that wasn't clear (to me) from the documentation. I will suggest to include that hint in Norbert's document. The issue may be closed, thanks