USART bootloader
Figure 14. Write Memory command: device side
Receive the number of bytes to be written
(1 byte), the data (N + 1 bytes) & the checksum
1. WM = Write Memory.
28/83
(1)
Start WM
Received byte =
0x31+0xCE?
Yes
ROP inactive?
Yes
Send ACK byte
Receive the start address (4 bytes) &
checksum
Checksum OK?
Yes
Send ACK byte
Checksum OK?
Yes
Flash memory
address?
Yes
RAM address?
Yes
Option
byte address?
& address =
0x1FFF F800?
No
No
No
No
No
Yes
Write the received data to Flash
memory from the start address
Yes
Write the received data to RAM
from the start address
Yes
Write the Keys for Option byte
area access
Write the received data to
Option byte area from start address
Send ACK byte
Generate system reset
End of WM
Doc ID 14156 Rev 1
Send
Send
ACK
NACK
byte
byte
(1)
AN2662
ai14642b
Need help?
Do you have a question about the STM32F105 Series and is the answer not in the manual?
Questions and answers