Hi
Sometime I get a neverending loop in the hci_event_handler (in evnt_handler.c) while(1) loop. I've tracked it so far as that I can detect when it happens by adding debug output to your code.
hci_unsol_event_handler in evnt_handler.c:
//handle a case where unsolicited event arrived, but was not handled by any of the cases above
if ((event_type != tSLInformation.usRxEventOpcode) && (event_type != HCI_EVNT_PATCHES_REQ))
{
dprintf(0,"! Got unexpected unsolicited event:%d (Exp:%d) !\r\n",event_type,tSLInformation.usRxEventOpcode);
return(1);
}
I get this output just before it stops communicating on the WiFi:
! Got unexpected unsolicited event:4101 (Exp:0) !
sometimes it's 4100, but mostly 4101.
This happens sometimes when communicating actively and sometimes when there are no active connections.
I've just rechecked my code and made sure I got all the changes between 1.11 and 1.11.1 added to my code, and I can't find anything missing.
Any ideas?
Jimmy