
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 1
41
. Annotated I
2
C Trace for Flashing the Application
HOST COMMAND
COMMAND DESCRIPTION
READ
MAX32664
RESPONSE
RESPONSE
DESCRIPTION
Sequence the MAX32664 to enter bootloader mode. *
Figure 7. Sequence to enter bootloader mode.
0xAA 0x01 0x00 0x08*
Set mode to 0x08 for bootloader mode.
0xAB 0x00
No error.
0xAA 0x02 0x00
Read mode.
0xAB 0x00 0x08
No error. Mode is bootloader.
0xAA 0xFF 0x00+
Get ID and MCU type.
0xAB 0x00 0x01
No
error.
MCU
is
MAX32660/MAX32664.
0xAA 0x81 0x00
Read bootloader firmware version.
0xAB 0x00 0x03
0x00 0x00
No error. Version is 3.0.0.
0xAA 0x81 0x01
Read bootloader page size.
0xAB 0x00 0x20
0x00
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.
0xAB 0x00
No error.
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.
0xAB 0x00
No error.
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.
0xAB 0x00
No error.
Figure 10. Authentication bytes 0x34 to 0x43 from the .msbl file.
0xAA 0x80 0x03*
Bootloader flash. Erase application.
0xAB 0x00
No error.
0xAA 0x80 0x04 0xC2 0x31
0x90 ... 0x9E 0x6A 0x0E*
Bootloader flash. Send page bytes 0x4C to
0x205B from the .msbl file.
0xAB 0x00
No error.