Changes between Version 31 and Version 32 of Stuff/FirmwareUpdate
- Timestamp:
- 11/25/10 15:03:52 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Stuff/FirmwareUpdate
v31 v32 29 29 30 30 '''Programming''' 31 * Host application must send an Init-Chunk-Message: FF 0A F0 FA FF vh vl nch ncls2 s1 chk, where:31 * Host application must send an Init-Chunk-Message: FF 0A F0 FA FF vh vl s2 s1 chk, where: 32 32 * vh:vl - major and minor version numbers of the new firmware 33 * nch:ncl - is a 16 bit number indicating number of the firmware chunks34 33 * s2:s1 - 16 bit seed number (can be any random number) 35 34 36 * OpenBM acknowledge each chunk (incl. init chunk) with a message: F0 07 FF FB cnh cnl s2 s1 chk, where: 37 * cnh:chl - last received chunk number. 35 * OpenBM acknowledge each chunk (incl. init chunk) with a message: F0 07 FF FB s2 s1 chk, where: 38 36 * s2:sl - seed number received in the init chunk "xor"ed with the 16bit sum of the chunk data written to the flash 39 * "Init"-chunk is acknowledged by 0 chunk number and the same seedreceived in the init chunk37 * "Init"-chunk is acknowledged by the same seed as received in the init chunk 40 38 41 * Host application send now data chunks. The chunk size should be either 32, 64 or 128 bytes, FF len F0 FA FF cn h cnlc1 c2 .. cn chk, where:42 * cn h:cnl - number of the chunk, this number should be increasing with every chunk (so no random access here is possible!)39 * Host application send now data chunks. The chunk size should be either 32, 64 or 128 bytes, FF len F0 FA FF cnd c1 c2 .. cn chk, where: 40 * cnd - special chunk indicator (0x00 -> Repeat last chunk, 0x10 -> next chunk, 0xFF -> last chunk) 43 41 * c1:cn - chunk of firmware data 44 42 45 43 * Every chunk is acknowledged by OpenBM device. If acknowledge was wrong (host app should check the seed number), host application can resend the last chunk or stop transmission. 46 44 47 * Host application stop transmission by sending a "Stop"-chunk: FF 0 6 F0 FA FFFF FF chk. So send this after last chunk was acknowledged.45 * Host application stop transmission by sending a "Stop"-chunk: FF 05 F0 FA FF FF chk. So send this after last chunk was acknowledged. 48 46 49 47 * OpenBM bootloader indicate that it does not accept any data anymore by sending: F0 05 FF FB eeh eel chk, where: