2019-06-14 12:19 PM
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:
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
Solved! Go to Solution.
2019-08-02 07:04 AM
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)