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

X  

AN3262 Arkusz danych(PDF) 19 Page - STMicroelectronics

Numer części AN3262
Szczegółowy opis  Using the over-the-air bootloader with STM32W108 devices
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3262 Arkusz danych(HTML) 19 Page - STMicroelectronics

Back Button AN3262 Datasheet HTML 15Page - STMicroelectronics AN3262 Datasheet HTML 16Page - STMicroelectronics AN3262 Datasheet HTML 17Page - STMicroelectronics AN3262 Datasheet HTML 18Page - STMicroelectronics AN3262 Datasheet HTML 19Page - STMicroelectronics AN3262 Datasheet HTML 20Page - STMicroelectronics AN3262 Datasheet HTML 21Page - STMicroelectronics AN3262 Datasheet HTML 22Page - STMicroelectronics AN3262 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 27 page
background image
AN3262
Bootloader command set
Doc ID 17845 Rev 2
19/27
Figure 21.
GO command example
3.6
WRITE MEMORY command
The WRITE MEMORY command writes data to any valid memory address (see note below) of
RAM, Flash memory or Option byte area.
When the bootloader receives the WRITE MEMORY command, it transmits the ACK byte to
the application. After sending the ACK byte, the bootloader waits for an address (4 bytes,
where Byte 1 is the address MSB and Byte 4 is the LSB) and a checksum byte, it then
checks the received address. For the Option byte area, the start address must be the base
address of the Option byte area (see note) to prevent unwanted writing to this area.
Note:
1
Write operations to Flash memory/SRAM must be word (32-bit) aligned and data should be
in multiples of four bytes. If less data are written, the remaining bytes should be filled by
0xFF.
If the received address is valid and the checksum is correct, the bootloader transmits an
ACK byte; otherwise, it transmits a NACK byte and aborts the command. When the address
is valid and the checksum is correct, the bootloader:
receives a byte (N) containing the number of data bytes to be received,
receives the user data ((N + 1) bytes) and the checksum (XOR of N and of all data
bytes),
programs the user data to memory starting from the received address,
at the end of the command, if the write operation was successful, the bootloader
transmits the ACK byte; otherwise it transmits a NACK byte to the application and
aborts the command.
The maximum length of the block to be written for STM32W devices is 96 bytes.
If the WRITE MEMORY command is issued to the Option byte area, all options are erased
before writing the new values.
Note:
1
When writing to the RAM, you should take care not to overlap the first RAM memory used by
the bootloader firmware.
2
No error is returned when performing write operations on write-protected sectors.
3
No error is returned when the start address is invalid.



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


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