LowPowerLab / DualOptiboot

Custom Optiboot to add wireless programming capability to Moteino
GNU General Public License v3.0
70 stars 49 forks source link

Header description of size bytes #5

Closed AaronMcDaniel closed 3 years ago

AaronMcDaniel commented 3 years ago

The header bytes are described as:

"FLXIMG:9999:XXXXXXXXXXX where: ... -'9999' are 4 size bytes indicating how long the new flash image is (how many bytes to read)"

Should these four size bytes be in big or little endian format? Neither of them seem to work on my setup, so I assume that I'm doing something else wrong, but I would like to eliminate this as an issue

LowPowerLab commented 3 years ago

You can see how this is decoded in the library code. It's MSB first. So 23456 bytes = FLX:5BA0:xxxxxx