データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

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
Logo 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


リンク URL



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