Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
HeGi_2497906
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

I am using the CYBLE-012011 and have used it before, but am stumped on a simple function we have implemented in the past.  Once I connect and pair, the bonding write initiates and then the program crashes and restarts, I have tried to figure out why, but the program will not break on the instructions?

Here is the storage code, pretty typical, but what is going on here, I have also attached a bundle to help figure this out.

/store the user pairing data if it is CYBLE_pendingflashwrite is set
if(cyBle_pendingFlashWrite != 0u )
{
apiResult = 1;
while(apiResult != CYBLE_ERROR_OK)
{
apiResult = CyBle_StoreBondingData(0u);
UART_PutString("\n\r Writing Bonding Data: API result - ");
UART_PutHexByte((uint8)apiResult);
CyBle_ProcessEvents();
}
UART_PutString("\n\r API result - ");
UART_PutHexByte((uint8)apiResult);
}

 

What could be causing the storage function to crash the program?

Why can't I break on the instructions shown, when I try to, the program restarts and the display 

0 Likes
1 Reply
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

Could you please check the Day015_Bonding code example and let us know if you are still facing this issue or not ?
'Output_Control.h' file is not present in your project. Could you please share this file ?

Thanks,
P Yugandhar.

0 Likes