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

How to handle the DFU in 51822 SDK

Hi,

I want to know how to do the OTA,so I refer to the device_firmware_updates project in SDK.Now I can use the command

line to program the bootloader.hex to 51822(The chip has no application).Then I refer to ble_dfu_send_hex project and I have downloaded the setup as "readme" say.But my computer cann't support .Net Framework 4.5 and IntelHex v1.5 cann't be installed sucessfully(see the attachment).I donn't know why,could u give me some advice?The systerm is WIN XP 32.Could I do the DFU on my computer?

Besides,I have read the "Chm SDK documentation",but I still don't know how to handle the DFU in SDK. Are there any detailed document about how to handle the DFU in SDK? Thanks.

Look forward to your reply.Thank you very much.

Best regards, Alice

intelhex-1.5.JPG

  • Had the same problem. Use the zip, not the Windows installer. Worked for me.

  • As Morten said, the zip should be used. Unzip to e.g. C:\

    Open cmd.exe as administrator, navigate to the folder where you unzipped IntelHex(C:\intelhex-1.5), use the following command to install IntelHex:

    ipy setup.py install

    If ipy is not a recognized command, add a variable named PATH with value C:\Program Files (x86)\IronPython 2.7\ to the Environment Variables.

    We are working on improving the SDK documentation, but I will try to explain how to apply DFU OTA(BLE).

    1. Open nRFgo Studio, erase the flash and program the SoftDevice.

    2. Open the bootloader project in C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\device_firmware_updates\bootloader using Keil, and load it using nrfjprog.exe(see SDK, DFU Flashing).

    3. Open Master Control Panel, see that your device is advertising(DfuTarg), and remember its 12 byte device address.

    4. Close Master Control Panel, the dongle needs to be available while updating.

    5. Open the ble_app_hrs project, compile, and copy ble_app_hrs.hex found in C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\ble\ble_app_hrs\arm_build to C:\NewFirmware\

    6. In cmd, navigate to C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\device_firmware_updates\experimental\ble_dfu_send_hex. Then run the command(the last 12 bytes should be your device address):

    ipy main.py -f C:\NewFirmware\ble_app_hrs.hex -n DfuTarg -a CDB53D6D16B6

    1. Open Master Control Panel, and see that your device is not adverising as Nordic_HRM.

    Please let me know if anything is unclear or if you have any other questions.

    This post has been edited.

  • Hi Petter,

    Thank you very much for your detailed reply.

    I have done 1 to 5 as u said and I can see the address advertising.But the IntelHex cann't be installed successfully by using command. I have downloaded three files frompypi.python.org/.../IntelHex and I have build the folder in C:(C:\intelhex).pls see the intelhex picture. u said "the zip should be used. Unzip to e.g. C:\interhex",But I donn't know which zip or file would be placed at C:\intelhex.

    I have unzip intelhex-1.5 to C:\interhex,then use "ipy.exe C:\intelhex\setup.py install"command to install IntelHex,but the command line indicates "setup.py doesn't exist". However,I can find the setup.py file in C:\interhex\intelhex-1.5.

    Besides,the PC is WIN XP 32,and is there any problem for this?

    BR Alice

    intelhex.JPG

    setup not exist.JPG

    setup.py.JPG

  • Hi Alice

    Then you should change the command to:

    ipy.exe C:\intelhex\intelhex-1.5\setup.py install

    I'm not aware of any problems using a 32-bit windows XP.

  • From your picture, you should unzip intelhex-1.5. This is actually intelhex-1.5.zip, but it seems you have hidden known file extensions on your computer.

Related