Platform is SDK v17.1 / 52840 / secure bootloader with BLE.
I would like to add some application logic to the bootloader.
The idea is to periodically poll some spi devices and depending on the result have the bootloader run the application.
Power management would control sleep time until something interesting happens that causes the bootloader to start the application.
Where is the place in the bootloader code that I could hook-up the code described above?