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

X  

AN3155 Datasheet(PDF) 7 Page - STMicroelectronics

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

AN3155 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN3155 Datasheet HTML 3Page - STMicroelectronics AN3155 Datasheet HTML 4Page - STMicroelectronics AN3155 Datasheet HTML 5Page - STMicroelectronics AN3155 Datasheet HTML 6Page - STMicroelectronics AN3155 Datasheet HTML 7Page - STMicroelectronics AN3155 Datasheet HTML 8Page - STMicroelectronics AN3155 Datasheet HTML 9Page - STMicroelectronics AN3155 Datasheet HTML 10Page - STMicroelectronics AN3155 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 37 page
background image
DocID17066 Rev 6
7/37
AN3155
Bootloader command set
3
Bootloader command set
The supported commands are listed in Table 2 below. Each command is further described in
this section.
Communication safety
All communications from the programming tool (PC) to the device are verified by:
1.
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
2.
for each command the host sends a byte and its complement (XOR = 0x00)
3.
UART: parity check active (even parity)
Table 2. USART bootloader commands
Command(1)
1. If a denied command is received or an error occurs during the command execution, the bootloader sends
NACK byte and goes back to command checking.
Command code
Command description
Get(2)
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 device. Once the RDP has been
removed, the other commands become active.
0x00
Gets the version and the allowed commands supported
by the current version of the bootloader
Get Version & Read
Protection Status(2)
0x01
Gets the bootloader version and the Read Protection
status of the Flash memory
Get ID(2)
0x02
Gets the chip ID
Read Memory(3)
3. Refer to STM32 product datasheets and to the “STM32 microcontroller system memory boot mode”
application note (AN2606) to know which memory areas are valid for these commands.
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 or in SRAM
Write Memory(3)
0x31
Writes up to 256 bytes to the RAM or Flash memory
starting from an address specified by the application
Erase(3)(4)
4. Erase (x043) and Extended Erase (0x44) are exclusive. A device may support either the Erase command
or the Extended Erase command but not both.
0x43
Erases from one to all the Flash memory pages
Extended Erase(3)(4)
0x44
Erases from one to all the Flash memory pages using
two byte addressing mode (available only for v3.0 usart
bootloader versions and above).
Write Protect
0x63
Enables the write protection for some sectors
Write Unprotect
0x73
Disables the write protection for all Flash memory sectors
Readout Protect
0x82
Enables the read protection
Readout Unprotect(2)
0x92
Disables the read protection



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


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