Skip to main content
gocchan
Senior
Nov 16, 2026 6:48 AM UTC
Question

WBA2 OTA

Hello,

I'm trying to test a Nucleo-WBA25CE1 by flashing BLE_HeartRate_ota onto it. I added code to turn on an LED in main.c and built the project.


/* Infinite loop */
/* USER CODE BEGIN WHILE */
HAL_GPIO_WritePin(LD1_B_GPIO_Port, LD1_B_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(LD2_G_GPIO_Port, LD2_G_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(LD3_R_GPIO_Port, LD3_R_Pin, GPIO_PIN_RESET);
while (1)
{

/* USER CODE END WHILE */
MX_APPE_Process();

/* USER CODE BEGIN 3 */
}

After performing a full chip erase, the LED lights up correctly when flashed via CubeIDE. However, when flashed via CubeProgrammer after a full chip erase, the LED doesn't light up at all. What causes this difference?

Console message when flashing from IDE:



STMicroelectronics ST-LINK GDB server. Version 7.14.0
Copyright (c) 2026, STMicroelectronics. All rights reserved.

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.23.0
-------------------------------------------------------------------



Log output file: C:\Users\IP005-~1\AppData\Local\Temp\STM32CubeProgrammer_a23548.log
ST-LINK SN : 002100433235511138363730
ST-LINK FW : V3J17M11B6S1
Board : NUCLEO-WBA25CE1
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x4B2
Revision ID : Rev A
Device name : STM32WBA2
NVM size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M33
BL Version : 0xD0



Opening and parsing file: ST-LINK_GDB_server_a23548.srec


Memory Programming ...
File : ST-LINK_GDB_server_a23548.srec
Size : 189.35 KB
Address : 0x08006000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [6 53]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:02.579



Verifying...



Time elapsed during verifying operation: 00:00:00.473


Download verified successfully


Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Shutting down...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...

 

Log message when flashing from Programmer:

15:44:13 : UR connection mode is defined with the HWrst reset mode
15:44:13 : ST-LINK SN : 002100433235511138363730
15:44:13 : ST-LINK FW : V3J17M11B6S1
15:44:13 : Board : NUCLEO-WBA25CE1
15:44:13 : Voltage : 3.28V
15:44:13 : SWD freq : 8000 KHz
15:44:13 : Connect mode: Normal
15:44:13 : Reset mode : Hardware reset
15:44:13 : Device ID : 0x4B2
15:44:13 : Revision ID : Rev A
15:44:13 : Debug in Low Power mode is not supported for this device.
15:44:13 : UPLOADING OPTION BYTES DATA ...
15:44:13 : Bank : 0x00
15:44:13 : Address : 0x40022040
15:44:13 : Size : 160 Bytes
15:44:13 : UPLOADING ...
15:44:13 : Size : 1024 Bytes
15:44:13 : Address : 0x8000000
15:44:13 : Read progress:
15:44:13 : Data read successfully
15:44:13 : Time elapsed during the read operation is: 00:00:00.003
15:44:14 : Opening and parsing file: BLE_HeartRate_ota.bin
15:44:14 : Memory Programming ...
15:44:14 : File : BLE_HeartRate_ota.bin
15:44:14 : Size : 189.35 KB
15:44:14 : Address : 0x08000000
15:44:14 : Erasing memory corresponding to segment 0:
15:44:14 : Erasing internal memory sectors [0 47]
15:44:14 : Download in Progress:
15:44:16 : File download complete
15:44:16 : Time elapsed during download operation: 00:00:02.568

Best regards, 
Gotoda
 

1 reply

ST Employee
Nov 16, 2026 8:49 AM UTC

Hello,

I guess you only loaded BLE_HeartRate_ota application. It cannot be running alone. You need the Install Manager in first section.

Please refer to the wiki page below.

 

https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WBA_FUOTA#STM32WBA_FUOTA_example_description

 

Regards.