Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Tasks in the secure bootloader example

Hi, 

I am working on a new project with the secure bootloader (SDK 15) as a part of it. I want to add periodic task that will do several actions for example maintaining the UI, checking battery voltage etc and i am getting lost in the code regarding how to manage tasks and events in this example.

Is there a basic explanation/documentation regarding this example? Or did anyone here did it and can share his experience?

Thanks in advance, 

Danny

Parents
  • The nRF5x SDK Bootloader does not have dedicated task where one adds user specific code, but adding a small periodic task to the bootloader main.c and main() is fairly straight forward. 

    One option would be to just add an application timer instance to trigger a callback at a given interval. It also possible to use one of the RTCs directly, this might reduce the amount of code that you need to link in. 

    The application timer is widely used in the SDK examples, e.g. the ble_app_hrs example, so use one of the examples as a reference. 

    You can find a RTC example in the nRF5_SDK_15.0.0_a53641a\examples\peripheral\rtc folder. 

     

Reply
  • The nRF5x SDK Bootloader does not have dedicated task where one adds user specific code, but adding a small periodic task to the bootloader main.c and main() is fairly straight forward. 

    One option would be to just add an application timer instance to trigger a callback at a given interval. It also possible to use one of the RTCs directly, this might reduce the amount of code that you need to link in. 

    The application timer is widely used in the SDK examples, e.g. the ble_app_hrs example, so use one of the examples as a reference. 

    You can find a RTC example in the nRF5_SDK_15.0.0_a53641a\examples\peripheral\rtc folder. 

     

Children
No Data
Related