2021-10-27 08:31 AM
Hello!
We are developing the BLE application on STM32WB55 along with the mobile app companion. The microcontroller is in a Peripheral role, mobile app - in Central.
After BLE connection is established, MCU firmware sends a security request and master initiates the pairing procedure. We chose Passkey entry pairing method and after the first successful pairing, the mobile device is added to bonded devices, so that we can skip entering pin code for the next connections.
In most cases, everything works flawlessly, however, we faced a problem with bonded devices information loss after MCU firmware update. It repeats every time we update the core2 firmware and sometimes after updating core1 firmware.
Could you specify where exactly the bonded devices information is stored? The AN5289 mentions that "When devices are bonded, the keys are stored in the non-volatile memory area." How can we avoid erasing this FLASH area while updating firmware on both cores?