Flash, BLE, and C2
I'm working to perform flash operations while the BLE stack is running and there is an active connection. Once I initiate an erase operation, the connection times out with a supervisor timeout.
There seems to be an elaborate sequence of steps necessary to initiate a flash erase per the Cube code for pal_nvm:
- HSEM acquire FLASH
- Flash CR unlock
- SHCI_C2_FLASH_EraseActivity( ERASE_ACTIVITY_ON);
- Wait for suspend to be clear
- Initiate the erase
- Acknowledge erase (clear erase op)
- SHCI_C2_FLASH_EraseActivity( ERASE_ACTIVITY_OFF);
- Flash CR lock
- HSEM release FLASH
What is the C2_FLASH_EraseActivity? Is there any explanation of what this means or does? All of the other steps are, for the most part, explained.