I'm trying to troubleshoot a corner case of my boot loader. For the most part it works. I can get it in a state though (I don't know how yet) that produces a BOOTLOADER_ERR_CMD (0x04) in response to the Enter_Bootloader (0x38) command. My problem is that I can't find the documents that describe the proper format of the 0x38 command. Can any one help me out?
Solved! Go to Solution.
Command Package: W 24 01 38 00 00 C7 FF 17 P ; ENTER BOOTLOADER CMD
W I2C Write
24 I2C Address, you can replace this byte with your own I2C address, this byte not include in package checksum calculation.
01 Package header 0x01,
38 Command code (enter bootloader)
00 00 Data length
C7 FF Checksum, 0x10000 - (0x01 + 0x38 + 0x0000) = 0xFFC7;
0x17 Package tail
P I2C Stop
Note: Since data length equals to 0, so no data content in this package and checksum calculate also not include data part.
Thanks but I need the document that describes the format of the other boot load commands (i.e. GET_META_DATA). Can you point me to the right document?