Skip to main content
DLich.2
Associate
Nov 2, 2021 9:14 AM UTC
Question

Source Code for STM32WB Series BLE LLD mentioned in UM2804

Hey,

i found the pretty new User Manual 2804 for STM32WB Series. They mention HAL Drivers for STM32WB. But i cant find any source code related to this. Maybe u can help me with this.

Best regards

Dominik

This topic has been closed for replies.

9 replies

Mike_ST
ST Technical Moderator
Nov 2, 2021 9:30 AM UTC
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
DLich.2
DLich.2Author
Associate
Nov 2, 2021 9:36 AM UTC

Hello,

first thank you for the quick answer but I am currently working with the newest version 1.12.1 and the Github release was 3 month ago. I am unable to find the mentioned functions in this version. Thats why I am asking this question. The User Manual was released on 26th October 2021. More Information would be much appreciated.

Best regards

Dominik

Mike_ST
ST Technical Moderator
Nov 2, 2021 9:43 AM UTC

" They mention HAL Drivers for STM32WB."

HAL source code is located in the Drivers\STM32WBxx_HAL_Driver folder.

"I am unable to find the mentioned functions in this version."

Which ones ?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
DLich.2
DLich.2Author
Associate
Nov 2, 2021 10:10 AM UTC

Hey Mike,

the User Manual introduces Bluetooth HAl functions for pretty simple communication. The title is "HAL API of BLE LLD"  its this Hal API and the functions are like HAL_BLE_LLD_** where ** is stuff like configure ,receive or transmit package.

Maybe the related code will be released later with a new firmware version but i couldnt find any information for this functions or anything related to it except for this user manual. Also in the UM2442 "Description of STM32WB HAL and low-layer drivers" none of the functions of the formentioned user manual are to be found.

Thank you for your help so far

Best regards

Dominik

Mike_ST
ST Technical Moderator
Nov 2, 2021 10:22 AM UTC

Ok thank you for clarifying,

maybe in Middlewares/ST/STM32_WPAN/ble_lld/hal/ble_hal.c is what you're looking for ?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
DLich.2
DLich.2Author
Associate
Nov 2, 2021 10:33 AM UTC

Yeah exactly what i was looking for ._. i always trusted google in successfully searching Github but nevermind. Anyway this leads to a followup Question. Why isnt this part of the middleware included when I am configuring a project in the CubeIDE and what option should i possibly enable to get it. I enabled all the necessary Subsystems and the RF module and the STM32WPAN and selected BLE. Maybe u can help me with that as well :)

Mike_ST
ST Technical Moderator
Nov 2, 2021 11:06 AM UTC

In cubeMX, when you choose an STM32WB product,

In Pinout&Configuration => Categories => MiddleWare => STM32_WPAN. Please choose one option.

It is greyed out by default. If you hold the mouse pointer on it, it should display a message telling how to activate it.

After activation, the middleware folder should hopefully appear in your project.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
DLich.2
DLich.2Author
Associate
Nov 2, 2021 11:12 AM UTC

Hey,

i have the middleware and the STM32WPAN just the ble_lld folder is missing and doesnt get included when the cubeIDE is generating code

0693W00000GWBCfQAP.png

Mike_ST
ST Technical Moderator
Nov 2, 2021 1:59 PM UTC

They are not included because the Low Level Drivers are probably not needed for the project and/or the option is not available in CubeMX to include them.

In case you need them, please add them manually.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.