This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Data Bus Hard fault when handling secure connection bonding

Hello,
I am working on an application which is freeRTOS based, now I wanted to integrate Glucose sensor app which supports secure connection and bonding. In 

ble_evt_handler, if I take out pm_handler_secure_on_connection(p_ble_evt); then my code still works it's just doesn't bond properly. However, if I leave this line of code in, I got hard fault instantly as soon as the bonding process is initiated. Could you help pointing me to the right direction to troubleshoot this issue ?
I have a feeling it has to do with  freeRTOS but I am not so sure.

Uart output:

<error> hardfault: HARD FAULT at 0x0002C8FC

<error> hardfault: R0: 0x00000000 R1: 0x4605FE50 R2: 0x20009208 R3: 0x20009208

<error> hardfault: R12: 0x200089C0 LR: 0x0002C8F1 PSR: 0x8100000E

<error> hardfault: Cause: Data bus error (PC value stacked for the exception return points to the instruction that caused the fault).

<error> hardfault: Bus Fault Address: 0x4605FE50

Call stack:

void HardFault_c_Handler()   @ 0x00029F58

void PendSV_Handler()         @ 0x0002C8EC

void PendSV_Handler()         @ 0x0002C8EC

Thank you !

Parents Reply Children
No Data
Related