cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to compile BLE projects for WBA MCUs.

JLReyno
Associate II

I've been trying several days to just get any project up and going for the STM32WBA52GU. As soon as I add the WPAN middleware, the HAL definitions go haywire with errors when I compile it. I've tried following tutorial in the wiki with documentation, but nothing seems to be working. I can import an example for the Nucleo WBA55, and it will compile. However, using the same settings for a new project fails (even when trying to target the WBA55). Any help would be appreciated. I'm using STMCubeIDE 1.17.0 with the latest firmware libraries.

 

 

 

 786 | HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit);
      | ^~~~~~~~~~~~~~~~~
      | HAL_CRC_StateTypeDef
../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
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rcc.h:2453:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_CRC_StateTypeDef'?
 2453 | HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct);
      | ^~~~~~~~~~~~~~~~~
      | HAL_CRC_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rcc.h:2454:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_CRC_StateTypeDef'?
 2454 | HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
      | ^~~~~~~~~~~~~~~~~
      | HAL_CRC_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rcc.h:2491:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_CRC_StateTypeDef'?
 2491 | HAL_StatusTypeDef HAL_RCC_GetConfigAttributes(uint32_t Item, uint32_t *pAttributes);
      | ^~~~~~~~~~~~~~~~~
      | HAL_CRC_StateTypeDef
In file included from ../Core/Inc/stm32wbaxx_hal_conf.h:279:
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:89:3: error: unknown type name 'HAL_LockTypeDef'
   89 |   HAL_LockTypeDef             Lock;         /*!< RNG locking object      */
      |   ^~~~~~~~~~~~~~~
In file included from ../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:287:
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng_ex.h:221:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  221 | HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, const RNG_ConfigTypeDef *pConf);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng_ex.h:222:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  222 | HAL_StatusTypeDef HAL_RNGEx_GetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng_ex.h:223:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  223 | HAL_StatusTypeDef HAL_RNGEx_LockConfig(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng_ex.h:232:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  232 | HAL_StatusTypeDef HAL_RNGEx_RecoverSeedError(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:296:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  296 | HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:297:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  297 | HAL_StatusTypeDef HAL_RNG_DeInit(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:318:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  318 | HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:319:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  319 | HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber_IT(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng.h:369:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RNG_StateTypeDef'?
  369 | HAL_StatusTypeDef RNG_RecoverSeedError(RNG_HandleTypeDef *hrng);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RNG_StateTypeDef
In file included from ../Core/Inc/stm32wbaxx_hal_conf.h:283:
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rtc.h:205:3: error: unknown type name 'HAL_LockTypeDef'
  205 |   HAL_LockTypeDef           Lock;       /*!< RTC locking object       */
      |   ^~~~~~~~~~~~~~~
In file included from ../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rtc.h:732:
../Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rtc_ex.h:1487:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RTCStateTypeDef'?
 1487 | HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin);
      | ^~~~~~~~~~~~~~~~~
      | HAL_RTCStateTypeDef

 

 

 

0 REPLIES 0