| Electronic Components Datasheet Search |
|
AN4286 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4286 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 38 page ![]() 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. |
|
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 |
| 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 |