Tool/software: Code Composer Studio
I'm working from the ble5_simple_peripheral_oad_offchip example code.
I want to have the cc1352 run the OAD code, or run my own code. I don't want the OAD code to always run because its a waste of resources and a huge security issue. I tried gracefully shutting down the OAD stuff, but that was a dead end. Basically it seems you can't/shouldn't bring up individual ble services and take them down arbitrarily.
So now I'm trying a much simpler approach of setting a NVS flag and entering that mode on startup (either loading the OAD task, or my own tasks). I'm using SysCtrlSystemReset() to do the reboot.
In testing I greatly simplified things to see how the BLE deals with a SysCtrlSystemReset(). I'm basically just calling SysCtrlSystemReset() after 60 seconds. I "should" see the device advertising most of the time (minus time for the actual reset). It runs fine in the first execution, but then following the SysCtrlSystemReset(), it stops advertising entirely.
Is this the expected behavior for BLE following a SysCtrlSystemReset(), or am I doing something wrong?