Changes between Version 22 and Version 23 of Stuff/FirmwareUpdate


Ignore:
Timestamp:
11/16/10 22:02:33 (13 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Stuff/FirmwareUpdate

    v22 v23  
    2525 
    2626'''Programming''' 
    27  * Host application must send an Init-Chunk-Message: FF 0B F0 FA FF 00 vh vl nch s2 s1 ncl chk, where: 
     27 * Host application must send an Init-Chunk-Message: FF 0A F0 FA FF vh vl nch ncl s2 s1 chk, where: 
    2828   * vh:vl - major and minor version numbers of the new firmware 
    2929   * nch:ncl - is a 16 bit number indicating number of the firmware chunks 
     
    3232 * OpenBM acknowledge each chunk (incl. init chunk) with a message: F0 07 FF FB cnh cnl s2 s1 chk, where: 
    3333   * cnh:chl - last received chunk number. 
    34    * s2:sl - seed number received in the init chunk "xor"ed with the 16bit sum of the chunk written to the flash 
     34   * s2:sl - seed number received in the init chunk "xor"ed with the 16bit sum of the chunk data written to the flash 
     35   * "Init"-chunk is acknowledged by 0 chunk number and the same seed received in the init chunk 
    3536 
    36  * Host application send now firmware chunks. The chunk size should be either 32, 64 or 128 bytes, FF len F0 FA FF cnh cnl c1 c2 .. cn chk, where: 
     37 * 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: 
    3738   * cnh:cnl - number of the chunk, this number should be increasing with every chunk (so no random access here is possible!) 
    3839   * c1:cn - chunk of firmware data 
     
    4142 
    4243 * Transmission is stopped when either last chunk was received (bootloader will jump to application) or when a "Stop"-chunk received: FF 06 F0 FA FF FF FF chk 
     44 
     45 * OpenBM bootloader indicate that it does not accept any data anymore by sending: F0 04 FF FB eeh eel chk, where: 
     46   * eeh:eel - 16bit error code: when everything went right, we receive 0=OK, otherwise we receive an error code. Check bootloader documentation for error code definitions 
     47