1. Presentation
This page describes how to easily build and install an STM32WBA Zigbee application.
Project examples can be found on STM32CubeWBA MCU package[1], and are available for different platforms.
STMicroelectronics Zigbee project example directory |
---|
2. Requirements
2.1. Software and system requirements
The software requirements are as follows:
The minimum IDEs versions:
- IAR Embedded Workbench® for Arm (EWARM) toolchain V9.20.1, plus a patch available in the WBA firmware package: STM32Cube_FW_WBA_Vx.x.x/Utilities/PC_Software/EWARMv8_STM32WBAx_V1.2.zip
- RealView microcontroller development kit (MDK-ARM) toolchain V5.37, plus a patch available in the WBA firmware package: STM32Cube_FW_WBA_Vx.x.x/Utilities/PC_Software/Keil.STM32WBAx_DFP.1.0.0.zip
- STM32CubeIDE toolchain V1.12.0 [2].
The required programmer version:
- STM32CubeProgrammer[3]: To flash the board with an already generated binary
2.2. Hardware requirements
A Nucleo board[4] is necessary to install the application.
Platform illustration |
---|
3. Build and install the application
This section describes the build process using IAR Embedded Workbench and STM32CubeIDE.
3.1. IAR IDE
Select the application that you want to build, open the IAR (EWARM) dedicated directory and launch Project.eww to open the demonstration project on IDE.
IAR project directory |
---|
Ensure that your project is correctly visible into the project explorer view.
Build your project by reproducing the following steps:
IAR: build |
---|
You can build and flash the project on your board by clicking on the button illustrated below:
IAR: build and flash |
---|
3.2. STM32CubeIDE
Select the application that you want to build, and open the STM32CubeIDE dedicated directory. Launch the STM32CubeIDE, and select the folder .project of the demonstration.
STM32CubeIDE project folder |
---|
Ensure that your project is correctly visible into the project explorer view.
Build your project by reproducing the following steps:
STM32CubeIDE: build |
---|
Flash it on the board.
STM32CubeIDE: flash |
---|
3.3. Install the application from STM32CubeProgrammer
It is possible to flash the previously built binary, whether with IAR Embedded Workbench IDE or with STM32CubeIDE, by using the STM32CubeProgrammer software[5].
Select your device and connect to it.
STM32CubeProgrammer: platform connection |
---|
Once connected, the device information is displayed on the STM32CubeProgrammer interface. Click on the programming icon in the left column. Then, select the project binary to flash:
- STM32Cube_FW_WBA_V[...]\Projects\[...]\Applications\Zigbee\Zigbee_OnOff_Server_Coord\[...]\ Zigbee_OnOff_Server_Coord.bin
Set the Start address to 0x08000000.
Then, click on the Start programming button:
STM32CubeProgrammer: flash project |
---|
When the programming is complete, the following logs are displayed:
STM32CubeProgrammer: logs |
---|