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

X  

AN4286 数据表(PDF) 9 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) 9 Page - STMicroelectronics

Back Button AN4286 Datasheet HTML 5Page - STMicroelectronics AN4286 Datasheet HTML 6Page - STMicroelectronics AN4286 Datasheet HTML 7Page - STMicroelectronics AN4286 Datasheet HTML 8Page - STMicroelectronics AN4286 Datasheet HTML 9Page - STMicroelectronics AN4286 Datasheet HTML 10Page - STMicroelectronics AN4286 Datasheet HTML 11Page - STMicroelectronics AN4286 Datasheet HTML 12Page - STMicroelectronics AN4286 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 38 page
background image
Bootloader command set
AN4286
9/38
DocID024458 Rev 2
2.1
Safety of communication
All communication from the programming master to the slave is verified in the following way.
Checksum: received blocks of data bytes are XORed. A byte containing the computed
XOR of all previous bytes is added to the end of each communication (checksum byte).
By XORing all received bytes, data + checksum, the result at the end of the packet
must be 0x00.
If the received data is one byte, then its checksum is the bit negation of the value (the
checksum of 0x02 is 0xFD).
For each command, the master sends three bytes: a Start Of Frame (SOF = 0x5A), a
byte representing the command value and its complement (XOR of the command and
its complement = 0x00).
Each packet is either accepted (ACK answer) or discarded (NACK answer).
ACK = 0x79
NACK = 0x1F
Note:
The master’s frame can be one of the following.
Send command frame: the master initiates communication as master transmitter and sends
two bytes to the slave: command code + Xor.
Wait for ACK/NACK frame: the master initiates an SPI communication as master receiver
and receives one byte from the slave: ACK or NACK.
Receive Data frame: the master initiates an SPI communication as master receiver and
receives the response from the slave. The number of received bytes depends on the
command.
Send Data frame: the master initiates an SPI communication as master transmitter and
sends the needed bytes to the slave. The number of transmitted bytes depends on the
command.
2.2
Get command
The Get command enables you to get the version of the bootloader and the supported
commands. When the bootloader receives the Get command, it transmits the bootloader
version and the supported command codes to the master, as described in Figure 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 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