数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4286 数据表(PDF) 21 Page - STMicroelectronics

部件名 AN4286
功能描述  SPI protocol used in the STM32 bootloader
PDF  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4286 数据表(HTML) 21 Page - STMicroelectronics

Back Button AN4286 Datasheet HTML 17Page - STMicroelectronics AN4286 Datasheet HTML 18Page - STMicroelectronics AN4286 Datasheet HTML 19Page - STMicroelectronics AN4286 Datasheet HTML 20Page - STMicroelectronics AN4286 Datasheet HTML 21Page - STMicroelectronics AN4286 Datasheet HTML 22Page - STMicroelectronics AN4286 Datasheet HTML 23Page - STMicroelectronics AN4286 Datasheet HTML 24Page - STMicroelectronics AN4286 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 38 page
background image
Bootloader command set
AN4286
21/38
DocID024458 Rev 2
At the end of the command, if the write operation is successful, the bootloader transmits the
ACK byte; otherwise it transmits a NACK byte to the application and aborts the command.
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. The start address
and the maximum length of the block to be written in the Option byte area has to respect the
address and size of the product’s option bytes.
If the write memory destination is the Flash Memory then the Master has to wait enough
time for the sent buffer to be written (refer to product datasheet for timing values) before
polling for a slave response.
Note:
The maximum length of the block to be written in the RAM or Flash memory is 256 bytes.
Write operations to the Flash memory must be word (16-bit) aligned and data should be in
multiples of two bytes. If less data is written, the remaining bytes should be filled by 0xFF.
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 in write-protected sectors.
The master sends the bytes to the STM32 as follows.
Start Of Frame: 0x5A
Byte 1: 0x31
Byte 2: 0xCE
Wait for ACK (as described in Chapter 1):
Byte 3 to byte 6: start address
byte 3: MSB
byte 6: LSB
Byte 7: checksum: XOR (Byte3, Byte4, Byte5, Byte6)
Wait for ACK (as described in Chapter 1)
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 38


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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