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

Best way to Enter DFU Mode from software.

Hi there, 

I would like to set my dongle into DFU mode from software, I am using the USB-CDC-ACM class, and the softdevice as a central device. 

Ideally I would send a command to the dongle and it will jump into reset and then go into DFU mode, the same way it does when the reset buttons is pressed.

What would be the best approach to do this ? 

Cheers, 

Parents Reply
  • Hi Amanda, 

    Thanks for your quick reply, I had a look at the library and found exactly what I needed. 

    In my application in cdc_acm_user_ev_handler. 

    When I receive a given command, I just clear the pin that is wired to the reset pin( BSP_SELF_PINRESET_PIN ) . and it effectively goes into bootloader mode so I can update the firmware without having to press the button.

    Cheers,

Children
Related