Deleting flash memory breaks BLE connection on STM32WB50
I am using a STM32WB50CGU5, when erasing flash memory where my settings are stored, the BLE connection breaks. It happens even if I erase only one page (number 96).
I think the two CPU conflicts doing flash operations, but the datasheet reports:
"The embedded Flash memory is shared between CPU1 and CPU2 on a time sharing basis. A dedicated HW mechanism allows both CPUs to perform Write/Erase operations."
What can I do to fix this problem?
Is it a BLE stack problem?