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
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
Hi Kristian,
Yes, it is possible to change the DFU button.. You will need to define a different NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN in sdk_config.h in the bootloader to do this.
Best Regards,
Swathy
thanks, can now enter dfu mode
is there also a way to add a delay in entering dfu mode? let's say i want to enter dfu mode 5 seconds after holding the dfu button. if its less than 5 sec, then continue with the app
Hi Kristian,
Did you mean enter dfu mode only after pressing and holding the dfu button for 5 seconds and continue with the application if it is not pressed for 5s or enter dfu 5s after pressing the dfu button.?
Regards,
Swathy
pressing and holding the dfu button for 5 seconds and continue with the application if it is not pressed for 5s
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