Hi!
I'm developing an application with CC2541, it is an IMU controlled HID mouse. The thing is that when I pair the device with my Android smartphone it works fine, but when I remove the device from the smartphone and try to connect it again, it takes much more time to pair than the last time and the cursor of the mouse moves with very low speed and a lot of delay. We don't have much time to understand all the specifications of BLE , so I ended up by finding one solution that I think that will solve the problem and I need help to do it. I've found that when I erase the flash of the MCU using the Flash Programmer it starts to work fine again, so I want to erase the flash every time one connection is terminated. Then, what functions can I use to do it in the BLE stack? What flash page should I erase avoiding erasing important things? And , at last, what may be causing this malfunction after the first connection termination?
Regards,
Bruno.