Skip to main content
Associate II
Sep 23, 2025 6:35 PM UTC
Question

B-WBA5M-WPAN DEMO CODE

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.

This topic has been closed for replies.

6 replies

diktrilAuthor
Associate II
Sep 24, 2025 7:42 PM UTC

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
Sep 26, 2025 10:25 AM UTC

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
Sep 29, 2025 7:15 PM UTC

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
Sep 29, 2025 8:08 PM UTC

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
Oct 7, 2025 11:28 AM UTC

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
Oct 7, 2025 11:30 AM UTC

I believe this to be linked to the CRC function.