hey ,
I have connected the two headphones to my intermediate device .. Now when I try to disconnect any one of the headphones the program gets stuck in fault ISR ..
I have inserted GAP_Disconnect_Link () in the etGAVD_Disconnect_Indication event . I am able to catch the flow of the program by break pointing in this section .. but proceeding by single stepping I am able to find the functions/ callbacks by refering to the title in the assembly(As some of these are library functions )
these were
Cleanup GAVD connection
Cleanup GAVD Signalling
Cleanup L2CAP Channel
L2CAP Disconnect Request Event
Handle Channel Disconnection
Process L2CAP Data Packet
Release Bluetooth Stack information
BTPS Release Mutex
HCI Callback Thread ..
after this the program gets stuck in the fault ISR
but at this time only one of my headphone was disconnected and the other is still working . I am not able to understand that calling these APIS i.e Release Bluetooth Stack information, BTPS Release Mutex , would release the memory which is required by the second Headphone which is still connected and thereby flow gets stuck in fault ISR ???
If yes .. How do I need to handle this ..
thank You
-VishvesH