cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55CG6 custom board HardFault_Handler

AM.12
Associate III

Hi,

I am using STM32WB55CG6 custom board and configured as cliend and trying to connect with server(ESP32 configures as server).

When a button is pressed i am connecting to server

=============================================================

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)

{

if(GPIO_Pin == 1)

{

APP_BLE_Key_Button1_Action();

}

}

void APP_BLE_Key_Button1_Action()

{

 UTIL_SEQ_SetTask(1 << CFG_TASK_START_SCAN_ID, CFG_SCH_PRIO_0);

}

==============================================================

As soon as client makes connection with server, client device go to HardFault_Handler.

I tried debugging

0693W00000Y8bnbQAB.png0693W00000Y8bngQAB.png 

0693W00000Y8bnlQAB.png 

0693W00000Y8bnvQAB.jpg 

problem is some where in function UTIL_SEQ_Run

 local_taskset = TaskSet;

 local_evtset = EvtSet;

 local_taskmask = TaskMask;

 local_evtwaited = EvtWaited;

I have not modified anything other than the Button press->start scanning-> find my device -> connect.

I am stuck at this point can some one please help me with this!!!

Thank you,

1 REPLY 1
Remy ISSALYS
ST Employee

Hello,

Did you start from BLE_p2pClient example available in STM32CubeWB package? If it's not the case, where did you register your task?

Best Regards