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

Using timer interrupt and flash storage in nRF51

Hi,

I am using ble_app_uart sample code. In that I want to run a timer based on the commands received in BLE. i.e., if command received is 'one' , LED1 should ON for one hour and the timing values should be written into flash storage. If any power reset is there, particular LED should run for remaining time. The timer counter value should be updated for every one hour into flash.

How it can be done. any sample code is there for similar kind?