cancel
Showing results for 
Search instead for 
Did you mean: 

Build errors in STEVAL-ASTRA1B “FleetManagement” CubeMX example

remiA
Associate

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.

2 REPLIES 2
Mahmoud Ben Romdhane
ST Employee

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.

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.