Build errors in STEVAL-ASTRA1B “FleetManagement” CubeMX example
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.


