2024-12-09 09:03 AM - edited 2024-12-13 08:07 AM
Now that the BLE_wrap.c issue has been solved, I've gotten back to trying to develop my application for the WBA52KGU using STM32CubeIDE 1.17.0 and STM32Cube FW_WBA V1.5.0. Frustratingly, everything is still broken. Without the WPAN middleware enabled, my blank project compiles properly. However, enabling any BLE WPAN middleware results in compile errors. If the BLE config requires UART, I'll get the error
../System/Interfaces/usart_if.c:130:9: error: 'UART_HandleTypeDef' {aka 'struct __UART_HandleTypeDef'} has no member named 'TxCpltCallback'
followed by more compile errors in that file all related to the transmit callback not existing as a member.
If I choose a config that doesn't require UART, HAL_StatusTypeDef is suddenly undefined for the WBA driver and results in errors in almost every header file. For example:
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rcc.h:2452:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_CRC_StateTypeDef'?
2452 | HAL_StatusTypeDef HAL_RCC_DeInit(void);
| ^~~~~~~~~~~~~~~~~
| HAL_CRC_StateTypeDef
2024-12-13 08:07 AM - edited 2024-12-13 10:34 AM
It wasn't immediately obvious why the wiki link was pinned to the top of the forum, but it is very important. This was a RTM mooment. Configuring a new BLE project isn't as straightforward as it seems. Follow this guide: https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Connectivity:STM32WBA_BLE_STM32CubeMX#STM32CubeMX_initial_setup The important part to avoid the compile issues is to go into the advanced settings for the project and require the peripherals to not require a function call.
Edit: Never mind. It only worked once and then the errors above started happening again...
2024-12-13 11:52 AM
I'm at wits end. I'm not sure why it worked once, but regardless of the WBA MCU selected the wiki guide isn't working. I keep getting the errors in the original post. Examples for the WBA55 Nucleo boards will compile correctly, but using the same setup with my WBA52 projects still errors out. Any help would be appreciated.
2024-12-13 12:27 PM
I uninstalled and re-installed STM32CubeIDE to see if that would fix things, but that didn't work either.
2024-12-17 12:10 PM