STM32WBA Bluetooth® LE Stack Integration

Revision as of 11:49, 29 May 2023 by Registered User (→‎Introduction)

1. Introduction

This wiki describes to an application developer how to integrate the STM32WBAxx Bluetooth® LE stack library.
It covers only the Bluetooth® LE stack library integration, and it does not include the Link Layer integration aspects.

Acronyms definitions
Acronym Definition
HCI Host Controller interface
ACI Application Controller Interface
N/A Not Applicable

2. Bluetooth® LE Stack Overview

2.1. Release contents

2.1.1. Folder structure

The Bluetooth® LE stack delivery contains 3 folders as following:

Bluetooth® LE library folder structure


  • “doc” folder contains the current document and “STM32WBA_BLE_Wireless_Interface.html” which describes the Bluetooth® LE Application Commands Interface (ACI) and the Host Commands Interface (HCI).
  • “include” folder contains the header files of the Bluetooth® LE stack library interface. These files contain some definitions of constants and types and the declarations of ACI and HCI functions. It also contains the declarations of some external modules’ functions used by the Bluetooth® LE stack (for more details see section 4.2)
  • “lib” folder contains the 4 Bluetooth® LE stack library variants described in the following section.

3. BLE Stack User interface

4. Bluetooth® LE Stack Porting

4.1. Stack Porting

4.2. Bluetooth® LE platform functions

4.2.1. NVM functions

4.2.2. Timer functions

4.2.3. AES functions

4.2.4. PKA functions

4.2.5. RNG functions

5. References



6. Wiki syntax examples

Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example
Bluetooth® LE Health Thermometer Service specification
Service Characteristic Property UUID size +1
Health Thermometer Service 0x1809 +1
Temperature Measurement Indicate 0x2A1C 13
Temperature Type Read 0x2A1D 1
Intermediate Temperature Notify 0x2A1E 13
Measurement Interval Read,Write,Indicate 0x2A21 2
Device Information Service 0x180A
Manufacturer Name String Read 0x2A29 32
Model Number String Read 0x2A24 32
System ID Read 0x2A23 8
ST Bluetooth® LE example project directory
WBA BLE application folder.png



ST Bluetooth® LE example project directory
WBA BLE application folder.png


Bluetooth®

texte - “doc” folder contains the current document and “STM32WBA_BLE_Wireless_Interface.html” which describes the BLE Application Commands Interface (ACI) and the Host Commands Interface (HCI).

- “include” folder contains the header files of the BLE stack library interface. These files contain some definitions of constants and types and the declarations of ACI and HCI functions. It also contains the declarations of some external modules’ functions used by the BLE stack (for more details see section 4.2)

- “lib” folder contains the 4 BLE stack library variants described in the following section.

BLA BLA BLA  

ST Bluetooth® LE pour Nidhal
WBA BLE application folder.png
/**
******************************************************************************
* @file    STM32WB_P2P_Server.ino
* @author  WBL BLE Application Team
* @brief   Arduino STM32WB P2P Server Application (Custom STM)
******************************************************************************