Skip to main content
gocchan
Associate III
August 22, 2026
Solved

How to use LEDs with BLE_HeartRate

  • August 22, 2026
  • 2 replies
  • 39 views

I'm developing for the NUCLEO-WBA25CE1 using BLE_HeartRate.

In the main function, I called MX_APPE_Init(NULL) followed by BSP_LED_Init() to initialize each LED, but they seem to be blinking rapidly throughout the operation.

I want to disable this blinking, but I can't find where to do so.

Could you tell me how to deal with this?

 

Best answer by Imen.D

Hello  @gocchan  ,

Did you try the example with STM32CubeWBA package?

STM32CubeWBA/Projects/NUCLEO-WBA25CE/Applications/BLE/BLE_HeartRate at main STMicroelectronics/STM32CubeWBA GitHub

You can follow this wiki article, that will help you on the configuration of the LEDs using STM32CubeMX: STM32WBA Bluetooth Low Energy - STM32CubeMX Application Conception - stm32mcu

 

2 replies

Imen.DBest answer
ST Technical Moderator
August 22, 2026

Hello  @gocchan  ,

Did you try the example with STM32CubeWBA package?

STM32CubeWBA/Projects/NUCLEO-WBA25CE/Applications/BLE/BLE_HeartRate at main STMicroelectronics/STM32CubeWBA GitHub

You can follow this wiki article, that will help you on the configuration of the LEDs using STM32CubeMX: STM32WBA Bluetooth Low Energy - STM32CubeMX Application Conception - stm32mcu

 

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. Thanks
Visitor
September 14, 2026

I’d check how the BLE_Heartrate example is handling the BSP LED state before changing the initialisation. If the LEDs are blinking continuously, there may be an application or BLE status indication controlling them after BSP_LED_Init() rather than the initialisation itself. The STM32CubeWBA example and LED configuration in CubeMX should make it easier to trace which part of the application is driving the LED lighting state.