Figure 16. Erase Memory Command: Device Side - ST STM32F105 Series Application Note

System memory boot mode
Hide thumbs Also See for STM32F105 Series:
Table of Contents

Advertisement

AN2662

Figure 16. Erase Memory command: device side

1. ER = Erase Memory.
The host sends the bytes to the STM32F105xx and STM32F107xx as follows:
Byte 1: 0x43
Byte 2: 0xBC
Wait for ACK
Byte 3: 0xFF or number of pages to be erased (0 ≤ N ≤ maximum number of pages)
Byte 0x00 or (N + 1 bytes (page numbers) and then the checksum for byte 3 and
the following bytes)
Yes
Start Global Erase
(Mass Erase)
Doc ID 14156 Rev 1
(1)
Start ER
Received bytes =
0x43+0xBC?
Yes
Yes
ROP active
No
Send ACK byte
Receive the number of pages
to be erased (1 byte)
Yes
0xFF received?
No
Receive the page codes
Receive the checksum
No
Checksum
OK?
Yes
Erase the corresponding pages
Send ACK byte
(1)
End of ER
USART bootloader
No
No
Send NACK byte
ai14642b
31/83

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F105 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f107 series

Table of Contents

Save PDF