I'm having some difficulty calculating the correct checksum values for the BSL. I'm currently using the msp430f5526 (but will also be using the msp430f5510). The formula given in slau319:
CKL = INV [ B1 XOR B3 XOR … XOR Bn–1 ]
CKH = INV [ B2 XOR B4 XOR … XOR Bn ]
gives me totally different values than the java script provided by ti.
Which one is most likely to produce the correct values so I can implement them in my own host application?
And what bytes of the BSL commands need to be included in the checksum in the bsl command data frame
HDR | CMD | L1 | L2 | AL | AH | LL | LH | D1 | D2...Dn | CKL | CKH |
According to the pdf 'Programming via the Bootstrap Loader it is: "calculated over all recieved or transmitted bytes B1 to Bn in the data frame, ... B1 is always the HDR byte and Bn is the last data byte"
According to the java script: for msp430f5xx devices "for the Flash based BSL this only includes the core command bytes "
Which of these recommendations do I use?