Navigate to "CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT" event in the function "StackEventhandler" in main.c.
You will find the above code in that section.
"peerAddr" is an array of only 8 elements. So the valid way to access the locations is from "peerAddr to peerAddr". But in the program peerAddr is being accessed and that is resulting in a fault.
On line 223 in the above picture, replace '<=' with '<' since the value of CYBLE_MAX_ADV_DEVICES is 8.
This should solve your problem. If you get any more issues please feel free to comment down here.
main.c.zip 6.0 K
It really solves this problem.
Thanks a lot bro, I really appreciate your answer.