STM32WB Build BLE Project

Revision as of 15:20, 9 November 2021 by Registered User (→‎Presentation)
Under construction.png Coming soon

1. Presentation

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

ST BLE 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 BLE and 802.15.4 Nucleo pack User Manual[7] , in the ST BLE-Mesh Application Note[8], or in the online ST BLE-Mesh MOOC[9].

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[10].

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