i'm using the SPPLEDemo app
I'm trying to make Bluetopia shutdown and resume, for power consumption purposes.
I'm using openstack() and closestack() functions.
In the first few times it's working fine.
But after that, the GATT_Initialize fails with error -1005 that means BTGATT_ERROR_INSUFFICIENT_RESOURCES.
I tried to debug the problem so i added a print function in the malloc and free functions.
I noticed that the BSC_Initialize() function is calling to HCI_initialize() function that creates a new thread with 3584 allocated stack size, but when i call to the BSC_Shutdown() function this memory never frees....
Do you have any suggestions why it's happening?
Thanks,
Simon.