AN2662 USART bootloader
Doc ID 14156 Rev 1 23/83
Figure 10. Read Memory command: device side
1. RM = Read Memory.
2.10 Go command
The Go command is used to execute the downloaded code or any other code by branching
to an address specified by the user. When the bootloader receives the Go command, it
transmits the ACK byte to the user. After the transmission of the ACK byte, the bootloader
waits for an address (4 bytes, byte 1 is the address MSB and byte 4 is LSB) and a checksum
byte, then it checks the received address. If the address is valid and the checksum is
correct, the bootloader transmits an ACK byte, otherwise it transmits a NACK byte and
aborts the command.
ROP active
Receive the start address (4 bytes)
with checksum
Checksum OK?
End of RM
(1)
ai14638
Start RM
(1)
Receive the number of bytes to be read (1 byte)
and a checksum (1 byte)
Address valid &
checksum OK?
Send data to the host
Received byte =
0x11+0xEE
Send ACK byte
Send ACK byte
Send ACK byte Send NACK byte
No
Ye s
No
Ye s
No
Ye s
No
Ye s