Skip to main content
Associate II
December 9, 2024
Question

Blank WBA52 BLE Project Failing to Compile

  • December 9, 2024
  • 4 replies
  • 1071 views

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

 

 

 

 

4 replies

JLReynoAuthor
Associate II
December 13, 2024

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...

JLReynoAuthor
Associate II
December 13, 2024

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.

JLReynoAuthor
Associate II
December 13, 2024

I uninstalled and re-installed STM32CubeIDE to see if that would fix things, but that didn't work either.

JLReynoAuthor
Associate II
December 17, 2024

Here is a sample project that fails to compile:

STTwo-32
Technical Moderator
January 15, 2025

Hello @JLReyno 

Have you the same issue mentioned in this post.

Best Regards.

STTwo-32