STM32W108B-SK STMicroelectronics, STM32W108B-SK Datasheet
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
STM32W108B-SK
Specifications of STM32W108B-SK
Available stocks
Related parts for STM32W108B-SK
STM32W108B-SK Summary of contents
Page 1
Using the over-the-air bootloader with STM32W108 devices 1 Introduction This document describes the over-the-air bootloader provided for STM32W108 devices. The over-the-air (OTA) bootloader is a modified version of the USART-based bootloader specified in application note AN3155 in order to deal ...
Page 2
Contents Contents 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 3
AN3262 2 Communication protocol A bootloading session consists of exchanges of commands codes and related data between bootloader device (target) and host (transmitter) nodes. The protocol chosen for this purpose is the same one as specified in application note AN3155 ...
Page 4
Bootloader command set 3 Bootloader command set Table 1 lists commands supported by the OTA bootloader. A detailed command-by- command protocol description follows. Table 1. OTA bootloader commands Command ( ( ERSION ( ...
Page 5
AN3262 3.1 G command ET The G command is used to determine the version of the bootloader and the supported ET commands. When the bootloader receives the G version and the supported command codes to the host as shown in ...
Page 6
Bootloader command set Figure All information sent by the device starting from the first ACK/NACK to the last ACK/NACK is contained inside a single 802.15.4 packet as shown in The STM32 sends the following bytes: Byte 1: ...
Page 7
AN3262 Figure 6. G packet example (unicast) ET Figure 7. G packet example (broadcast) ET Doc ID 17845 Rev 2 Bootloader command set 7/27 ...
Page 8
Bootloader command set 3 ERSION The ERSION version and the read protection status. When the bootloader receives the command, it transmits the information described below (version, read protection: number of times it was enabled ...
Page 9
AN3262 Figure 9. Get Version & Read Protection Status command: device side Get Version & Read Protection Status. The STM32 device sends the following bytes: Byte 1: Byte 2: Byte 3: Byte 4: Byte 5: (1) Start ...
Page 10
Bootloader command set Figure 10 packet example (unicast) ET ERSION Figure 11 packet example (broadcast) ET ERSION 10/27 Doc ID 17845 Rev 2 AN3262 ...
Page 11
AN3262 3 command ET The G ID command is used to get the version of the chip ID (identification). When the ET bootloader receives the command, it transmits the device ID to the host. The STM32 device sends ...
Page 12
Bootloader command set Figure 13 GID = Get ID command. Figure 14 packet example (unicast) ET 12/27 ID command (device side) (1) Start GID Received byte = 0x02+0xFD? Yes Send ACK byte Send N = ...
Page 13
AN3262 Figure 15 packet example (broadcast EAD EMORY The R M EAD EMORY memory and the information block (System memory or option byte areas). When the bootloader receives the R application. After sending the ...
Page 14
Bootloader command set Figure 16. R EAD EAD EMORY 14/27 M command (host side) EMORY (1) Start RM Send 0x11+0xEE Wait for ACK or NACK ACK Send the start address (4 bytes) with checksum Wait ...
Page 15
AN3262 Figure 17. R EAD Receive the number of bytes to be read (1 byte EAD EMORY The last ACK/NACK is sent before the data block to be read within the same 802.15.4 packet payload ...
Page 16
Bootloader command set Figure 18 packet example EAD EMORY 3.5 G command O The G command is used to execute the downloaded code or any other code by branching address specified by the application. When ...
Page 17
AN3262 Figure 19. G command (host side) O Note: 1 Valid addresses for the G considered not valid and are NACKed by the device. 2 When an application is loaded into RAM and then a jump is made to it, ...
Page 18
Bootloader command set Figure 20. G command (device side) O Receive the start address (4 bytes) The host sends the following bytes to the STM32 device: Byte 1: Byte 2: Wait for ACK Bytes Byte 7: The ...
Page 19
AN3262 Figure 21. G command example O 3 RITE EMORY The W M RITE EMORY RAM, Flash memory or Option byte area. When the bootloader receives the W the application. After sending the ACK byte, the bootloader waits ...
Page 20
Bootloader command set Figure 22. W RITE RITE EMORY 2. N+1 should always be a multiple of 4. 20/27 M command (host side) EMORY (1) Start WM Send 0x31+0xCE Wait for ACK or NACK ACK ...
Page 21
AN3262 Figure 23. W RITE Receive the start address (4 bytes) & Receive the number of bytes to be written (1 byte), the data ( bytes RITE EMORY 2. N+1 should always be ...
Page 22
Bootloader command set The host sends the following bytes to the STM32W device: Byte 1: Byte 2: Wait for ACK Bytes Byte 7: Wait for ACK Byte 8: Byte 9: Figure 24 packet example RITE ...
Page 23
AN3262 Figure 25. E RASE RASE EMORY M command (host side) EMORY (1) Start ER Send 0x43+0xBC Wait for ACK or NACK ACK Send the number of pages to be erased (1 byte) Send the ...
Page 24
Bootloader command set Figure 26. E RASE RASE EMORY The host sends bytes to the STM32 as follows: Byte 1: Byte 2: Wait for ACK Byte 3: Byte 4: 24/27 M command (device side) EMORY ...
Page 25
AN3262 Figure 27 packet example RASE EMORY 3 RITE NCREMENTAL The W I RITE NCREMENTAL command but can be used to save some bandwidth by avoiding having to transmit the write address each time we wish ...
Page 26
Revision history 4 Revision history Table 2. Document revision history Date 23-Aug-2010 04-Mar-2011 26/27 Revision 1 Initial release. Updated STM32W website URL and added support for 2 STM32W108xx kits. Doc ID 17845 Rev 2 AN3262 Changes ...
Page 27
... AN3262 Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. ...