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

How to start DFU while sending cmd "DFU" in ble_UART .

HI,

I am developing application based on healthcare. I am using nRF52832 with SDK15.3 in SES windows10.

I need to use bootloader  DFU .

In my hardware i have only one button. so, i can't go for button DFU. and also buttonless DFU. the DFU is always runs background of my application.

my questions are.

1. while running DFU bootloader in background of application. will it cause any increase in power consumption.

2. I need to link my application to enter into DFU mode. i.e- while giving command like "DFU_ON" using BLE_UAR NUS.

     the application takes function to DFU mode. Until the DFU bootloader should be in OFF state.

Parents
  • Hello,

    1: The bootloader in the SDK is not running in the background of the application, but it is running before the application starts. So the bootup time is a little longer (not noticeable), so to answer your first question, in theory it uses a bit more current, but that is negligible, so you do not need to worry about it.

    2: I suggest that you use the buttonless dfu service, like it does in the ble_app_buttonless_dfu example. You can use this example, and add your other services. 

    All the functionality to enter DFU mode is in the ble_dfu_evt_handler() in the ble_app_buttonless_dfu example. 

    If you for some reason need to port this into your NUS service, feel free, but I don't see any reasons to not just use the buttonless DFU service, as it doesn't require any more buttons. It seems to fit your need quite accurately.

Reply
  • Hello,

    1: The bootloader in the SDK is not running in the background of the application, but it is running before the application starts. So the bootup time is a little longer (not noticeable), so to answer your first question, in theory it uses a bit more current, but that is negligible, so you do not need to worry about it.

    2: I suggest that you use the buttonless dfu service, like it does in the ble_app_buttonless_dfu example. You can use this example, and add your other services. 

    All the functionality to enter DFU mode is in the ble_dfu_evt_handler() in the ble_app_buttonless_dfu example. 

    If you for some reason need to port this into your NUS service, feel free, but I don't see any reasons to not just use the buttonless DFU service, as it doesn't require any more buttons. It seems to fit your need quite accurately.

Children
No Data
Related