2024-05-30 02:15 AM - edited 2024-05-30 02:35 AM
Hi,
I am working on BLE with STM32W55RGV. I have loaded FUS+Full_BLE_stack into the M0+ core. In the M4 core, I have my own application, but I always get a HardFault when I call this function, as shown in the picture (SendCmd(uint16_t opcode, uint8_t plen, void *param)). It is basically first entry function to try to do anything with BLE. At that moment, opcode = 64535 and plen = 0. Could this be related to IPCC? I have enabled interrupts for both RX and TX, and I have also increased the BLE FreeRTOS stack to 1024.
Alos I added breakpoint to APPE_SysUserEvtRx - to see if CPU2 is ready (was mentioned in STM video tutorial for HeartRate monitor), but the function is not called..
I have no idea how to move forward.
Thanks!
Solved! Go to Solution.
2024-05-30 03:55 AM
Do not how is it related to it, but this is solution:
void TIM1_TRG_COM_TIM17_IRQHandler(void)
{
/* USER CODE BEGIN TIM1_TRG_COM_TIM17_IRQn 0 */
#if 0
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 0 */
HAL_TIM_IRQHandler(&htim1);
HAL_TIM_IRQHandler(&htim17);
/* USER CODE BEGIN TIM1_TRG_COM_TIM17_IRQn 1 */
#endif // Endof comment out
if(htim1.Instance != NULL)
{
HAL_TIM_IRQHandler(&htim1);
}
if(htim17.Instance != NULL)
{
HAL_TIM_IRQHandler(&htim17);
}
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 1 */
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 1 */
}
2024-05-30 03:55 AM
Do not how is it related to it, but this is solution:
void TIM1_TRG_COM_TIM17_IRQHandler(void)
{
/* USER CODE BEGIN TIM1_TRG_COM_TIM17_IRQn 0 */
#if 0
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 0 */
HAL_TIM_IRQHandler(&htim1);
HAL_TIM_IRQHandler(&htim17);
/* USER CODE BEGIN TIM1_TRG_COM_TIM17_IRQn 1 */
#endif // Endof comment out
if(htim1.Instance != NULL)
{
HAL_TIM_IRQHandler(&htim1);
}
if(htim17.Instance != NULL)
{
HAL_TIM_IRQHandler(&htim17);
}
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 1 */
/* USER CODE END TIM1_TRG_COM_TIM17_IRQn 1 */
}