Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN3155 Arkusz danych(PDF) 21 Page - STMicroelectronics

Numer części AN3155
Szczegółowy opis  USART protocol used in the STM32 bootloader
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3155 Arkusz danych(HTML) 21 Page - STMicroelectronics

Back Button AN3155 Datasheet HTML 17Page - STMicroelectronics AN3155 Datasheet HTML 18Page - STMicroelectronics AN3155 Datasheet HTML 19Page - STMicroelectronics AN3155 Datasheet HTML 20Page - STMicroelectronics AN3155 Datasheet HTML 21Page - STMicroelectronics AN3155 Datasheet HTML 22Page - STMicroelectronics AN3155 Datasheet HTML 23Page - STMicroelectronics AN3155 Datasheet HTML 24Page - STMicroelectronics AN3155 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 37 page
background image
DocID17066 Rev 6
21/37
AN3155
Bootloader command set
The host sends the bytes to the STM32 as follows:
3.7
Erase Memory command
The Erase Memory command allows the host to erase Flash memory pages. When the
bootloader receives the Erase Memory command, it transmits the ACK byte to the host.
After the transmission of the ACK byte, the bootloader receives one byte (number of pages
to be erased), the Flash memory page codes and a checksum byte; if the checksum is
correct then bootloader erases the memory and sends an ACK byte to the host, otherwise it
sends a NACK byte to the host and the command is aborted.
Erase Memory command specifications:
1.
the bootloader receives one byte that contains N, the number of pages to be erased –
1.
N = 255 is reserved for global erase requests. For 0
≤ N ≤ 254, N + 1 pages are erased.
2.
the bootloader receives (N + 1) bytes, each byte containing a page number
Note:
No error is returned when performing erase operations on write protected sectors.
Byte 1:
0x31
Byte 2:
0xCE
Wait for ACK
Byte 3 to byte 6:start address
byte 3: MSB
byte 6: LSB
Byte 7:
Checksum: XOR (Byte3, Byte4, Byte5, Byte6)
Wait for ACK
Byte 8:
Number of bytes to be received (0 < N
≤ 255)
N +1 data bytes:(Max 256 bytes)
Checksum byte: XOR (N, N+1 data bytes)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com