This error code indicates the BLE controller is not able to execute the command requested.
Can you please tell us your application details? And at what point does this error occur?
i see this issue in 2 places:
A master android device, and the psoc4 is the slave.
1. When we toggle advertisement:
when either connected or disconnected.
2. When master is pairing to our device.
1. You can only do certain types of advertisement while connected (undirected, unconnectable)
2. Most likely you are calling a CyBle function when receiving an event related with the pairing that is throwing the HCI error?
1 of 1 people found this helpful
E Pratt is correct that while connected, you can do only Non connectable advertising. You can do it by changing the adv parameter in CYBLE_GAPP_DISC_PARAM_T and call CyBle_GappEnterDiscoveryMode(&discoveryModeInfo); API.
Please modify the project and try.
If you are still getting error for pairing, please share the project so that we can have a look into the code flow.
Thanks & Regards,