công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3155 bảng dữ liệu(PDF) 18 Page - STMicroelectronics

tên linh kiện AN3155
Giải thích chi tiết về linh kiện  USART protocol used in the STM32 bootloader
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3155 bảng dữ liệu(HTML) 18 Page - STMicroelectronics

Back Button AN3155 Datasheet HTML 14Page - STMicroelectronics AN3155 Datasheet HTML 15Page - STMicroelectronics AN3155 Datasheet HTML 16Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 37 page
background image
Bootloader command set
AN3155
18/37
DocID17066 Rev 6
The host sends bytes as follow to the STM32:
3.6
Write Memory command
The Write Memory command is used to write data to any valid memory address (see note
below) i.e. RAM, Flash memory, option byte area...
When the bootloader receives the Write Memory command, it transmits the ACK byte to the
application. 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 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 avoid writing inopportunely in this area.
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:
•
gets a byte, N, which contains 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 the STM32 is 256 bytes.
If the Write Memory command is issued to the Option byte area, all options are erased
before writing the new values, and at the end of the command the bootloader generates a
system Reset to take into account the new configuration of the option byte.
Note:
When writing to the RAM, you should take care not to overlap the first RAM memory used
by the bootloader firmware.
No error is returned when performing write operations on write-protected sectors.No error is
returned when the start address is invalid.
Byte 1:
0x21
Byte 2:
0xDE
Wait for ACK
Byte 3 to byte 6: start address
byte 3: MSB
byte 6: LSB
Byte 7:
checksum: XOR (byte 3, byte 4, byte 5, byte 6)



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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