cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB BLE - HardFault

JR2963
Senior

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..hf2.png

I have no idea how to move forward.

Thanks!

HF.png

1 ACCEPTED SOLUTION

Accepted Solutions
JR2963
Senior

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 */
}

 

 

 

View solution in original post

1 REPLY 1
JR2963
Senior

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 */
}