This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can nrf_bootloader_dfu_timers be used as GP LED timer during DFU?

I'm working on a custom DFU bootloader using the Secure Bootloader example in the nRF5 15.2 SDK.  My board only has one LED and, during DFU, I'd like to using blinking duty cycle and frequency to indicate current DFU state.  In an app I'd use the app_timer driver, but, with the DFU, I don't think this is appropriate. 

Looking at the DFU bootloader code, it seems as if the nrf_bootloader_dfu_timers.c file has pretty much all that's needed for this IF I modify the code to add one more RTC channel (only two of the four channels appear to be used).  This would allow me to instantiate a third timer for LED flashing purposes.  Is this a reasonable approach or does anyone have an alternate suggestion?

Thanks in advance.

Processor: nRF52832

Parents Reply Children
Related