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

  • Hi Petter,

    Thank you for your help.

    I have tried it,but the command line still indicates "setup.py doesn't exist". I also try to unzip intelhex-1.5.tar,but the result is the same.

    Could u help me do the test by using a 32-bit windows XP?I think many、many ohter customer will use windows XP and will meet the same problem as I said.

    Besides,.Net Framework 4.5 cann't be installed successfully on my computer,will this have an impact on this issue?

    BR Alice

  • I see now that I had a typo in my previous post, it should have been C:\intelhex not C:\interhex. Try this command:

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

    Or change the foldername to C:\intelhex and use this command:

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

    Regarding the .Net Framework, you can try an earlier version, like .NET Framework 4.

  • I do as u say,it can run the install,but it indicates package direstory intelhex does not exist.I don't know why.

    Is there any problem when you test it?

    1.JPG

  • Hi Alice

    I think I have a solution for you.

    -First add the IronPython executable to the enviroment variables:
    Right-click My Computer, and then click Properties. Click the Advanced tab. Click Environment variables. Under user variables: Click New and: Variable name: PATH Variable value: C:\Program Files\IronPython 2.7\

    Then in cmd.exe, navigate to C:\interhex\intelhex-1.5 and try this command:

    ipy setup.py install

    Hopefully this will work. Sorry for the confusion, I had IronPython and intelhex in the same folder, making without the steps mentioned above.

  • Hi Petter,

    Thank you very much for your strong support.Now I can run the ipy setup.py install
    

    .But when I run the command:ipy.exe E:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\device_firmware_updates\experimental\ble_dfu_send_hex\main.py -f C:\NewFirmware\ble_app_hrs.hex -n DfuTarg -a A67864586912,it indicates "cann't not load MasterEmulator.dll",but I can find two MasterEmulator.dll in my computer while the version is not the same.

    I use the Dongle 2.1 and Master Control Pannel 3.5.

    Could u give me some advice?

    BR Alice

    Cann't not load.JPG

    materemulator.JPG

Related