Changes between Version 31 and Version 32 of Stuff/FirmwareUpdate


Ignore:
Timestamp:
11/25/10 15:03:52 (13 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Stuff/FirmwareUpdate

    v31 v32  
    2929 
    3030'''Programming''' 
    31  * Host application must send an Init-Chunk-Message: FF 0A F0 FA FF vh vl nch ncl s2 s1 chk, where: 
     31 * Host application must send an Init-Chunk-Message: FF 0A F0 FA FF vh vl s2 s1 chk, where: 
    3232   * vh:vl - major and minor version numbers of the new firmware 
    33    * nch:ncl - is a 16 bit number indicating number of the firmware chunks 
    3433   * s2:s1 - 16 bit seed number (can be any random number) 
    3534  
    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: 
    3836   * 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 seed received in the init chunk 
     37   * "Init"-chunk is acknowledged by the same seed as received in the init chunk 
    4038 
    41  * Host application send now data chunks. The chunk size should be either 32, 64 or 128 bytes, FF len F0 FA FF cnh cnl c1 c2 .. cn chk, where: 
    42    * cnh: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) 
    4341   * c1:cn - chunk of firmware data 
    4442 
    4543 * 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. 
    4644 
    47  * Host application stop transmission by sending a "Stop"-chunk: FF 06 F0 FA FF FF 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. 
    4846 
    4947 * OpenBM bootloader indicate that it does not accept any data anymore by sending: F0 05 FF FB eeh eel chk, where: