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

Combine DFU with NUS

Hi all ,

I am beginning with DFU . I complete bootloader_secure_ble and can update new firmware (application) to my NRF52832 kit via Android . And now, I have 2 kit NRF52 , I don't want to use buttton for start DFU , I want combine DFU with NUS , If I am sendding data from kit 1 to kit 2 normal , and if I send 1 data to kit 2 warning that kit 2 run DFU , then immediate kit 2 reset and run DFU . Pls show me a solution . Thank very much :)

Parents
  • Hi Giang, 

    Please study this example. It shows how to use DFU buttonless service to switch to DFU mode. Entering DFU is triggered by enter_bootloader() function.  If you don't want to use DFU buttonless service but want to use UART service, you need to adapt your code base on the code of the DFU buttonless. On the bottomline, the ble_dfu_buttonless_bootloader_start_finalize() function does the part to write the flag to GPREGRET and reset the chip. 

Reply
  • Hi Giang, 

    Please study this example. It shows how to use DFU buttonless service to switch to DFU mode. Entering DFU is triggered by enter_bootloader() function.  If you don't want to use DFU buttonless service but want to use UART service, you need to adapt your code base on the code of the DFU buttonless. On the bottomline, the ble_dfu_buttonless_bootloader_start_finalize() function does the part to write the flag to GPREGRET and reset the chip. 

Children
Related