This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dfu sample can't run successful

Hi,all i study DFU step by step according this link devzone.nordicsemi.com/.../a00076.html,but failed at step 8.my peripheral advertising as Nordic_HRM not dfuTag. Can someone give me some advise? Thanks for your reply!

  • First,thanks a lot for your reply! i paste the document as follow:


    Application with DFU Service support

    This page describes how to include and use the possibility of including the DFU BLE Service into an application so that Bootloader/DFU mode can be automatically entered. After entering Bootloader/DFU mode then a DFU Over-The-Air update can be performed.

    An example application based on Heart Rate Application has been created for testing this feature. The project file for this example is located together with the existing Heart Rate example.

    The source code and project file for supporting BLE DFU Service can be found in the \Nordic\nrf51822\Board\nrf6310\s110\ble_app_hrs folder.

    Open the project file ble_app_hrs_dfu.uvproj with Keil for testing and examine the BLE DFU Service functionality in a BLE example. Testing

    The DFU BLE Service support Heart Rate Application can be tested using the Master Control Panel as follows:

    1. Compile and program the application. Observe that the Advertising LED is lit.
    2. Connect to the device from Master Control Panel (the device will be advertising as 'Nordic_HRM'), then perform service discovery. Observe that the Connected LED is lit, and the Advertising LED is off.
    3. Enable 'DFU Notifications' by writing the value '0100' to the cccd in DFU Control Point.
    4. Writing 'Start DFU', i.e. the value '01' to the 'DFU Control Point'
    5. Notice that the connection to the BLE device is lost. Will write 'SERVER: Received Link Loss' in the log window
    6. Press 'Back' in Master Control Panel' to enter the 'Discovered devices' overview.
    7. Clear the discovered devices and 'Start discovery'
    8. Verify that the device is now advertising as 'DfuTarg'
    9. Perform a DFU update with any test image or application you like

    i failed at step 8:the device is now advertising as 'DfuTarg',my device is advertising as 'Nordic_HRM'.

  • I don't know the answer but suspect that the first question for you will be about SoftDevice version you are using, type of compiler and bootloader

  • are you running on nrf6310 board as indicated by the path your example code lies?

  • i used sdk version is s110_nrf51822_6.2.1,soft-device is s110_nrf51822_7.0.0_softdevice,running on pca10001.example path is C:\Users\leo\Desktop\nrf51822——samsung\nrf51822\Board\nrf6310\s110\ble_app_hrs\arm\ble_app_hrs_duf.uvproj

Related