Hi guys, I have an application, where I need to change the role of the S120 softdevice on demand. So, the application boots into central role, reads a couple of BLE sensors and on demand from another CPU, it disconnects from all sensors, disables softdevice and changes role into peripheral.
From what I've managed to find out, this kind of role changing doesn't release the allocated RAM from the central role, for all the bonding info, service discovery and device manager data. The same goes for peripheral to central role change. This is why I'm running out of RAM for my application.
Is there any way to release the RAM from the role changing or dynamically allocate RAM for each of the roles? In the future, I would like to store bonding data in flash or maybe in RAM, but still, there should be some data I could free from RAM just before softdevice disable?
Edit: I'm using NRF51822 with 256kB flash and 16kB RAM
Regards, Matic