cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get custom STM32WB55 board to advertising state.

Louis Loving
Senior

I am using STM32Cube FW_WB V1.1.1 and built a new project.

I have programmed stm32wb5x_BLE_Stack_fw.bin into the memory space for CPU2 (0x80CB000).

I have added the following interrupt handlers:

void IPCC_C1_TX_IRQHandler(void)
{
  HW_IPCC_Tx_Handler();
 
  return;
}
 
void IPCC_C1_RX_IRQHandler(void)
{
  HW_IPCC_Rx_Handler();
  return;
}

I have configured STM32_WPAN as follows:

0690X000008igDVQAY.png

My small application runs fine but I get no indication that the BLE is running at all. I am using ST BLE Sensor to scan but do not see my device.

Any pointers on where to look or what to check would be greatly appreciated.

-Louis

10 REPLIES 10
Louis Loving
Senior

After further review, the problem was not with #pragma pack(1) per se. The #pragma pack directive "affects declarations of structures following the pragma directive to the next #pragma pack or the end of the compilation unit. Once the structures that I wanted packed were covered", I added the #pragma pack() with an empty list. This "restores the structure alignment to default" and the hard fault went away. (From the IAR Workbench Development Guide)