I am working on a beaconing application and I was wondering if it is possible to run the code beginning with system off mode and wake up the board with a button press? Once I wake up the board, I would like it to immediately begin advertising. Am I able to initialize all my functions before entering system off mode?
Thanks for the help
Waking up from System off will reset the system, so you will have to re-initialize everything. Your use-case is demonstrated in the ble_app_uart example with the help of the Board Support Package (BSP), I suggest you read BSP BLE Button Assignments.