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

Can't select device in DFU mode using nRF Toolbox

Hi all,

I have a question to complete the tutorial 'Setting up device firmware update(DFU) on the nRF5 DK'.this

I have tried to set up my nRF51 Development Kit. Everything was Ok, but when I look for my device in DFU mode using nRF Toolbox, I can't find my kit.

All devices are always 'n/a'. Should I change my device's name in uVision to detect it? Or is there anything else I need to do?

Please give me some advice.

Thank you in advance.

  • If it doesn't show up as DfuTarg in the nRFToolbox then it is likely not in DFU mode.

    It is not clear from what you have stated that you ever flashed it with SD and DFU code and further that you have put it into DFU mode. Some of the DFU examples do buttonless DFU and others require that you initiate DFU mode with a button press.

    Since the link you referenced was for SDK11, I would recommend you try some of the precompiled DFU examples in the DFU folder of that SDK. in SDK/examples/dfu/bootloader/hex/ you will find dfu_dual_bank_ble_s130_pca10028.hex which is for nRF51. Just do an erase all from nRFGoStudio then use the application tab to flash this hex file only. It has both bootloader and SD, so it all you need. Once it reboots your DK will go straight into DFU mode since it doesn't have an app loaded.

  • Thank you! Your comment helps me understand what the problem was.

    1.I flashed that hex file using nRFGoStudio and tried to select, but I couldn't find my device.

    2.So I tried to download Keil project "..\examples\dfu\bootloader\pca10028\dual_bank_ble_s130\arm5_no_packs\dfu_dual_bank_ble_s110_pca10028" , but the following error has occurred.

    Reading flash area to program to guarantee it is erased. ERROR: The area to write is not erased.

    How can I fix it?

  • The DFU project is solely the bootloader. So if you mean you compiled the project and installed it then you would still need to load the SD130. Only the precompiled hex file I referred to has a complete image with SD and bootloader/dfu. As far as the error, not sure. Normally nRFGo just complains if the hex has code in already programmed space. Either way when you are programming it, you always best to start fresh and do and "erase all".

  • Thank you for your quick reply. Did you mean I don't need to download the project if I use the precompiled hex file (you referred to)?

    Then, is the following procedure correct in nRFgo Studio?

    1.Device Manager->nRF5x Programming->Erase all

    2.Device Manager->nRF5x Programming->(Program Application tap) select that hex file->Program

    And does this procedure make the device show up as DfuTarg? Because I followed above procedure, but I can't find my device. Please advise whether there is a problem in the procedure or an unexpected error.

  • @jm: Which SDK are you using ? If you are SDK v12 and above, you can follow this instruction.

Related