Skip to main content
Associate
January 22, 2026
Solved

Build errors in STEVAL-ASTRA1B “FleetManagement” CubeMX example

  • January 22, 2026
  • 1 reply
  • 283 views

Hello,

I’m using STM32CubeIDE with a project generated directly from STM32CubeMX for the STEVAL-ASTRA1B board.

Environment

  • Board: STEVAL-ASTRA1B

  • Firmware Package: STM32Cube FW_WB V1.24.0

  • CubeMX example/template: FleetManagement (default generated project)

  • IDE: STM32CubeIDE

  • Toolchain: default CubeIDE build settings

When building the generated project, I get two compilation errors:

1) Master_Clock_Accuracy field not found (should be Central_Clock_Accuracy)

File: STM32Cube/Example/FleetManagement/Src/astra_app_ble.c
Line: ~603

Error:

STM32Cube/Example/FleetManagement/Src/astra_app_ble.c:603:81: error: 'hci_le_connection_complete_event_rp0' has no member named 'Master_Clock_Accuracy'; did you mean 'Central_Clock_Accuracy'?
603 | handleNotification.Master_Clock_Accuracy = connection_complete_event->Master_Clock_Accuracy;

Workaround/Fix:
Replace Master_Clock_Accuracy with Central_Clock_Accuracy, e.g.:

handleNotification.Master_Clock_Accuracy = connection_complete_event->Central_Clock_Accuracy;

 

2) Conflicting prototype for aci_gap_bond_lost_event

File: STM32Cube/Example/FleetManagement/Src/BLE_Manager.c
Line: ~4464

Error:

STM32Cube/Example/FleetManagement/Src/BLE_Manager.c:4464:6: error: conflicting types for 'aci_gap_bond_lost_event'; have 'void(void)'
 4464 | void aci_gap_bond_lost_event(void) {

Workaround/Fix:
Update the function signature to match the expected prototype:

void aci_gap_bond_lost_event(uint16_t Connection_Handle) {

It looks like the generated example sources are not aligned with the current BLE stack / header definitions shipped with STM32CubeWB FW_WB V1.24.0.

Thank you.

Best answer by Mahmoud Ben Romdhane

Hello @remiA ,

 

I checked the behavior described and the issue was not reproducible by my side.

I did not get compilations Errors.

MahmoudBenRomdhane_0-1769076756811.png

 

MahmoudBenRomdhane_1-1769077222469.png

 

Thanks.

Mahmoud

1 reply

Technical Moderator
January 22, 2026

Hello @remiA 

Let me thank you for posting.

I am currently checking this behavior, and I will get back to you ASAP.

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Technical Moderator
January 22, 2026

Hello @remiA ,

 

I checked the behavior described and the issue was not reproducible by my side.

I did not get compilations Errors.

MahmoudBenRomdhane_0-1769076756811.png

 

MahmoudBenRomdhane_1-1769077222469.png

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.