This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564MODA: Classic BT pairing fails with atAuthenticationStatus: 4

Part Number: CC2564MODA

******************************************************************
* Command Options: Headset, AudioGateway, Help                   *
******************************************************************

Choose Mode>AudioGateway

******************************************************************
* Command Options: Inquiry, DisplayInquiryList, Pair,            *
*                  EndPairing, PINCodeResponse, PassKeyResponse, *
*                  UserConfirmationResponse,                     *
*                  SetDiscoverabilityMode, SetConnectabilityMode,*
*                  SetPairabilityMode,                           *
*                  ChangeSimplePairingParameters,                *
*                  GetLocalAddress, GetLocalName, SetLocalName,  *
*                  GetClassOfDevice, SetClassOfDevice,           *
*                  GetRemoteName, ServiceDiscovery,              *
*                  OpenClient, CloseClient,                      *
*                  RingIndication, ChangeSpeakerGain,            *
*                  ChangeMicrophoneGain,                         *
*                  ManageAudio,                                  *
*                  Help, Quit                                    *
******************************************************************

AG>Inquiry
Return Value is 0 GAP_Perform_Inquiry() SUCCESS.

AG>
GAP Inquiry Entry Result: 0x64CC2E151278.

AG>
GAP Inquiry Entry Result: 0xFC58FA6D1DCE.

AG>
GAP Inquiry Entry Result: 0xCC78AB701CAF.

AG>

GAP_Inquiry_Result: 3 Found.
GAP Inquiry Result: 1, 0x64CC2E151278.
GAP Inquiry Result: 2, 0xFC58FA6D1DCE.
GAP Inquiry Result: 3, 0xCC78AB701CAF.

AG>Pair 2
GAP_Initiate_Bonding (Dedicated): Function Successful.

AG>
atAuthenticationStatus: 4 Board: 0xFC58FA6D1DCE

AG>
Trying to connect BT head set, to CC2564MODA interfaced on a STM32l496 discovery development board. Using the HSPdemo sample code provided. Sometimes authentication status = 4 (HCI_ERROR_CODE_PAGE_TIMEOUT) error. while trying to pair headset with BT module.

What would be the probable reason for  this error ?

The error code interpreted from Bluetopia stack documentation. please verify the same.