I work with NRF52832. Implemented an application based on the "ble_app_uart" example. Everything is working. I decided to add the saving of configurable parameters to the internal Flash memory. I write to Flash using the NVMC module, the use of which is possible only
with the SoftDevice stack disabled, otherwise Flash will crash. This is how I initially initialize the stack when power is applied to the device:
Then, in the body of the program, I disable the stack:
Then I successfully work with Flash memory (erase, write):
But I don't understand how to re-run the stack and advertising. Can someone tell me?