changing assigned dfu button in secure bootloader example SDK17.1

good day,

is it possible to change the assigned DFU button (Button4) to other button or gpio in the secure bootloader example? if yes, where do i need to do it?

thanks

Parents
  • HI Kristian,

    You will need to implement some timer/delay check in the code to do this.. you can use a delay of say 1s and run the loop 5 time, and after the 5 loops, it can return true (button pressed for 5 s).. This is the simple way to do this, but can cause higher power consumption since the CPU does not go into sleep in those5 sec.. If you want the CPU to go to sleep while waiting, you will need to use the timer

    Best Regards,

    Swathy

Reply
  • HI Kristian,

    You will need to implement some timer/delay check in the code to do this.. you can use a delay of say 1s and run the loop 5 time, and after the 5 loops, it can return true (button pressed for 5 s).. This is the simple way to do this, but can cause higher power consumption since the CPU does not go into sleep in those5 sec.. If you want the CPU to go to sleep while waiting, you will need to use the timer

    Best Regards,

    Swathy

Children
Related