Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN4286 Datasheet(PDF) 18 Page - STMicroelectronics

Part # AN4286
Description  SPI protocol used in the STM32 bootloader
PDF  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4286 Datasheet(HTML) 18 Page - STMicroelectronics

Back Button AN4286 Datasheet HTML 14Page - STMicroelectronics AN4286 Datasheet HTML 15Page - STMicroelectronics AN4286 Datasheet HTML 16Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 38 page
background image
DocID024458 Rev 2
18/38
AN4286
Bootloader command set
37
2.6
Go command
The Go command is used to execute the downloaded code or any other code by branching
to an address specified by the application. When the bootloader receives the Go command,
it transmits the ACK byte to the application. After transmission of the ACK byte, the
bootloader waits for an address (4 bytes, byte 1 being the address MSB and byte 4 the LSB)
and a checksum byte, then it checks the received address. If the 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 firmware performs
the following.
•
Initializes the registers of the peripherals used by the bootloader to their default reset
values.
•
Initializes the user application’s main stack pointer.
•
Jumps to the memory location programmed in the received ‘address + 4’ (which
corresponds to the address of the application’s reset handler). For example, if the
received address is 0x08000000, the bootloader jumps to the memory location
programmed at address 0x08000004.
In general, the master should send the base address where the application to jump to is
programmed.
Note:
The jump to the application works only if the user application sets the vector table correctly
to point to the application address.
The master sends bytes as follows to the STM32.
•
Start Of Frame: 0x5A
•
Byte 1: 0x21
•
Byte 2: 0xDE
•
Wait for ACK (as described in section 1)
•
Byte 3 to byte 6: start address
–
byte 3: MSB
–
byte 6: LSB
•
Byte 7: checksum: XOR (byte 3, byte 4, byte 5 and 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 38


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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