STM32W108B-SK STMicroelectronics, STM32W108B-SK Datasheet

no-image

STM32W108B-SK

Manufacturer Part Number
STM32W108B-SK
Description
STARTER KIT FOR STM32W108
Manufacturer
STMicroelectronics
Series
STM32r
Type
MCUr

Specifications of STM32W108B-SK

Featured Product
STM32 Cortex-M3 Companion Products
Contents
Board
Silicon Manufacturer
ST Micro
Core Architecture
ARM
Core Sub-architecture
Cortex - M3
Silicon Core Number
STM32
Silicon Family Name
STM32W108xx
Kit Contents
Board
Features
IEEE
Mfg Application Notes
STM32W108 Adjacent Channel Rejection Measurements
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
*
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM32W108B-SK
Manufacturer:
ST
0
1
March 2011
Using the over-the-air bootloader with STM32W108 devices
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 with an 802.15.4 wireless
communication channel rather than a USART cable.
For more information, please refer to application note AN3155 USART protocol used in the
STM32 bootloader available from www.st.com/stm32w.
This document applies to the following STM32W108xx kits:
Overview
The purpose of the OTA bootloader application is to enable any node to receive a firmware
image over the air using the 802.15.4 interface and write it in Flash memory. In this context,
nodes willing to update their Flash contents with the new image are referred as bootloader
device nodes, while those in charge of transmitting the image over the air will be called
bootloader host nodes.
Figure 1.
Figure 1
such it needs an OTA bootloader application image loaded right from the beginning at the
base of the STM32W Flash area (0x08000000) and any user application to run on the node
will have to sit on the top of the OTA bootloader. The bootloader takes 12 Kbytes leaving up
to 116 Kbytes free for user applications. At chip reset, control is passed to the bootloader
which in turn jumps to the application if present in Flash memory, or else it will just remain in
its main loop waiting for valid image packets sent by a host from the 802.15.4 RF interface. It
is also possible to override the default ‘jump to application’ behavior by forcing a bootloader
startup using a user-defined action (for example, a button press after reset). The bootloader
can eventually be started up from the application as well, but it depends on the application;
details related to bootloader activation criteria are out of the scope of the bootloader code.
STM32W108xx starter kit (part number: STM32W-SK)
STM32W108xx extension kit (part number: STM32W-EXT)
STM32W108xx low-cost RF control kit (part number: STM32W-RFCKIT).
shows the memory layout of a bootloader device node; in order to be defined as
Memory layout
Doc ID 17845 Rev 2
Application (Up to 116 Kbytes)
OTA Bootloader (12 Kbytes)
Application note
AN3262
www.st.com
1/27

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. ...

Related keywords