Skip to main content
Associate II
September 23, 2025
Question

B-WBA5M-WPAN DEMO CODE

  • September 23, 2025
  • 3 replies
  • 629 views

Dear Community,

I have the B-WBA5M-WPAN module and trying to get a basic OpenThread Project working with Demo Code provided.

The Demo Code provided for the module is not sufficient - I am trying to change LED Color when button B2 is pressed.

I am trying to copy code examples for the NUCLEO-WBA55CG, but it is not working as there any many dependencies in the BSP file unique to the NUCLEO Board.

I also can't find a proper Application Note for the module.

Any assistance will be greatly appreciated.

3 replies

diktrilAuthor
Associate II
September 24, 2025

I found these macros:

#ifdef CFG_BSP_ON_DISCOVERY
#include "stm32wba55g_discovery.h"
#if (CFG_LCD_SUPPORTED == 1)
#include "stm32wba55g_discovery_lcd.h"
#include "stm32_lcd.h"
#endif /* (CFG_LCD_SUPPORTED == 1) */
#endif /* CFG_BSP_ON_DISCOVERY */
#ifdef CFG_BSP_ON_CEB
#include "b_wba5m_wpan.h"
#endif /* CFG_BSP_ON_CEB */
#ifdef CFG_BSP_ON_NUCLEO
#include "stm32wbaxx_nucleo.h"
#endif /* CFG_BSP_ON_CEB */

It seems like CubeIDE is not enabling it for some reason - can anyone perhaps point me in the right direction to enable CubeIDE to select the correct macro?

diktrilAuthor
Associate II
September 26, 2025

Double checked and the flags are not the reason for code not being generated.

I am in the process of porting the code from the Nucleo Example to work on the WBA5M-WPAN, bypassing some of the BSP Function calls.


 

diktrilAuthor
Associate II
September 29, 2025

In STM32CubeIDE I chose the STM32WBA5MMG Processor instead of the B-WBA5M-WPAN - worked to some extent and generated missing code.

In CubeMX I enable CRC. Computing -> CRC.

It generates related files.

Once STM32WPAN is enabled, the CRC-related files go missing and I am left with this error:

I copied related files from the sample code, but then the error code states that crc.c and crc.h files are missing.

../Core/Src/app_entry.c:40:10: fatal error: crc_ctrl.h: No such file or directory

 

diktrilAuthor
Associate II
September 29, 2025

I included related files from this link.

../Core/Src/crc_ctrl.c:26:10: fatal error: crc_ctrl_conf.h: No such file or directory


Still searching for the above files.

diktrilAuthor
Associate II
October 7, 2025

UPDATE:

Code Crashes on this line:

 LinkLayerTaskHandle = osThreadNew(LinkLayer_Task_Entry, NULL, &LinkLayerTask_attributes);


LinkLayerTaskHandle returns nil.

This is part of ll_sys_if.c 

This is the function:

void ll_sys_bg_process_init(void)
{
 /* Create Link Layer FreeRTOS objects */

 LinkLayerSemaphore = osSemaphoreNew(1U, 0U, &LinkLayerSemaphore_attributes);

 LinkLayerTaskHandle = osThreadNew(LinkLayer_Task_Entry, NULL, &LinkLayerTask_attributes);

 if ((LinkLayerTaskHandle == NULL) || (LinkLayerSemaphore == NULL))
 {
 LOG_ERROR_APP( "Link Layer FreeRTOS objects creation FAILED");
 Error_Handler();
 }
}
diktrilAuthor
Associate II
October 7, 2025

I believe this to be linked to the CRC function.