STM32WB Build Bluetooth® LE Project

Revision as of 09:55, 21 December 2021 by Registered User

1. Presentation

This page describes how to easily build and install STM Bluetooth® LE SIG example application.
Example projects can be found on STM32CubeWB MCU Package[1], and are available for different platforms:

ST Bluetooth® LE example project directory


Some of the following information can be retrieved in the Building Wireless Applications with STM32WB Series microcontrollers Application Note[2].

2. Requirements

2.1. Software and System requirements

Software required are the following:
IDE:

  • IAR Systems® v8.20.2
  • STM32CubeIDE[3].
  • Keil® µVision® v5.23

Programmer:

  • STM32CubeProgrammer[4] : To flash the board with an already generated binary

2.2. Hardware requirements

A Nucleo board[5], a STM32WB USB dongle[5], or a STM32WB Discovery Kit[6] is necessary to install the application.

Platforms illustration


More details about the board and other hardware required are available in the Bluetooth® LE SIG and 802.15.4 Nucleo pack User Manual[7].

3. Build & Install the application

This chapter describe the build process using IAR and STM32Cube IDE.

3.1. IAR IDE

Select the application you want to build, open the IAR (EWARM) dedicated directory and launch the project.eww IAR file to open the demonstration project on IDE.

IAR project directory


Ensure your project is correctly visible into Project Explorer view.

Build you project by reproducing the following steps:

IAR: build


You can Build and Flash the project on your board by clicking on the following button:

IAR: build and flash

3.2. Cube IDE

Select the application you want to build, open the STM32CubeIDE dedicated directory and launch the Cube IDE .project of the demonstration.

CubeIDE project folder



Ensure your project is correctly visible into Project Explorer view.
Build you project by reproducing the following steps:

CubdeIDE: build


Flash it on the board:

CubdeIDE: flash

3.3. Install the application from Cube Programmer

It is either possible to flash the previously build binary using STM32CubeProgrammer software[8].

Select your device and connect to it:

CubeProgrammer: platform connection


Once connected, device information is displayed on Cube Programmer interface. Click on programming icon, in the left column, and select the project binary to flash (here BLE_p2pServer.hex). Then, click ok Start Programming button:

CubeProgrammer: flash project


When the programming is complete the following logs are displayed:

CubeProgrammer: logs

4. References