Maxim Integrated Page 45 of 52
page sent includes 16 CRC bytes for that page, so there are 8208 bytes per page sent in the payload of the
message. The number of pages is located at address 0x44 in the .msbl file.
Table 141. Annotated I
2
C Trace for Flashing the Application
Sequence the MAX32664 to enter bootloader mode. *
Figure 7. Sequence to enter bootloader mode.
Set mode to 0x08 for bootloader mode.
No error. Mode is bootloader.
No error. MCU is
MAX32660/MAX32664.
Read bootloader firmware version.
No error. Version is 3.0.0.
Read bootloader page size.
No error. Page size is 8192.
0xAA 0x80 0x02 0x00 0x1A*
Bootloader flash. Set the “number of
pages” to 31 based on the value at byte
0x44 from the application .msbl file, which
is created from the user application .bin
file.
Figure 8. Page number byte 0x44 from the .msbl file.
0xAA 0x80 0x00 0x1A 0xDB
0xE5 0x0D 0x90 0x79 0xE6
0xC6 0x13 0x87 0xB9*
Bootloader flash. Set the initialization
vector bytes 0x28 to 0x32 from the .msbl
file.
Figure 9. Initialization vector bytes 0x28 to 0x32 from the .msbl file.
0xAA 0x80 0x01 0x2B 0xF5
0xAD 0xCD 0x2E 0x47 0xD2
0x83 0x23 0x88 0x37 0x62
0x02 0xED 0x27 0xAF*
Bootloader flash. Set the authentication
bytes 0x34 to 0x43 of the .msbl file.
Figure 10. Authentication bytes 0x34 to 0x43 from the .msbl file.
Bootloader flash. Erase application.
0xAA 0x80 0x04 0xC2 0x31
0x90 ... 0x9E 0x6A 0x0E*
Bootloader flash. Send page bytes 0x4C to
0x205B from the .msbl file.