Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN4286 Datasheet(PDF) 8 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) 8 Page - STMicroelectronics

Back Button AN4286 Datasheet HTML 4Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 38 page
background image
DocID024458 Rev 2
8/38
AN4286
Bootloader command set
37
2
Bootloader command set
Table 2 lists the supported commands. Each command is further described in this section.
Since the SPI is configured in full duplex, each time the Master transmits data on the MOSI
line, it simultaneously receives data on the MISO line. Since the slave’s answer is not
immediate, the received data is ignored (dummy) while the Master is transmitting (this data
is not used by the master).
When the Slave has to transmit data, the Master sends its clock, so it has to transmit data
on the MOSI line to be able to receive Slave data on the MISO line. In this case, the Master
should always send 0x00 (this data is not used by the slave).
Table 2. SPI bootloader commands
Command(1)
Command code
Command description
Get(2)
0x00
Gets the version and allowed commands supported by the current
version of the bootloader.
Get Version(2)
0x01
Gets the bootloader version.
Get ID(2)
0x02
Gets the chip ID.
Read Memory(3)
0x11
Reads up to 256 bytes of memory starting from an address specified
by the application.
Go(3)
0x21
Jumps to user application code located in the internal Flash memory.
Write Memory(3)
0x31
Writes up to 256 bytes to the memory starting from an address
specified by the application.
Erase(3)
0x44
Erases from one to all the Flash memory pages or sectors using two-
byte-addressing mode.
Write Protect
0x63
Enables write protection for some sectors.
Write Unprotect
0x73
Disables write protection for all Flash memory sectors.
Readout Protect
0x82
Enables read protection.
Readout Unprotect(2)
0x92
Disables read protection.
1. If a denied command is received or an error occurs during command execution, the bootloader sends a NACK byte and
goes back to command checking.
2. Read protection – when the RDP (read protection) option is active, only this limited subset of commands is available. All
other commands are NACKed and have no effect on the slave. Once the RDP has been removed, the other commands
become active.
3. Please refer to STM32 product datasheet and AN2606: STM32 microcontroller system memory boot mode to know which
memory spaces are valid for this command.



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