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

DFU is a real mess on OSX

Hi,

I've spent the last few days trying to get this going and getting super frustrated.

After having no luck getting the nrfutil to work on Python (another thread) even switched to another machine. That didn't work either another series of Python faults.

Gave up on using OSX for this.

Switched to a Windows machine, that wouldn't install the nrfutil tools.

Switched to ANOTHER windows VM, finally got it installed.

Created a zip file using the tool.

Trying to use the latest Android NRF tools to do the DFU upgrade.

Just gets stuck with the update.zip (created using the NRFutil tool on windows VM), shows nothing in the NRF Logger. Just after selecting blips straight back.

Try sending the application.hex separately, it requires the .dat file, so I extracted that from the update.zip and used that.

The tool just keeps looping and showing the same modal about selecting the .dat file. Since theres a drop shadow on that modal I see it getting darker and darker and it's just stacking up modals.

The whole scenario is totally messed up and not working at all.

This is the worst experience I've had with Nordic stuff over the last 3 years just wasting days and days on pointless stuff that should be no problem at all.

The boot loader is the latest boot loader, SDK 11, using the DFU 0.8

  • Hi,

    Looks like you've had some bad luck, a lot of odd problems going on here...

    As a sanity check, have you tried to run through the DFU example, and verified that your toolchain is working? There's a short tutorial on it here.

    Depending on what parameters you feed to nrfutil you will get a different init file. Start off by making a generic dfu file that does not do any version checks, etc, callnrfutil dfu genpkg --application application.hex my_dfu_application.zip.

    The app will not upload files that it considers invalid, and the device will not accept files it considers invalid.

    Best regards,

    Øyvind

  • Hey Øyvind

    My bootloader/DFU is working fine. For some reason the Android app was stuck in a loop as I mentioned continually popping modals and it somehow managed to upload to my board so I've had a success with it all. This proves nothing wrong with the boot loader or code I'm running but problems with the Android app.

    I deleted and re-installed the Android app (can't remember the name of it, but your main one for exploring services/DFU'ing etc) and now at least it doesn't get stuck in modal popup hell.

    It still won't take the zip that I generated. I used your exact command above so nothing wrong there.

    The RFLogger doesn't show anything in its logs as a problem.

  • As for the other thread on a clean mac install it still had problems. At least I could run nrfutil and it would n't crash but I got other errors trying to generate the file using that example command above..

    I've just given up on OSX for doing that part at the moment which is a pain as we've swapped over to OSX and the gcc toolchain as opposed to VMs with Keil.

    Will tackle it all again at some point, for now I'll live with the Win 10 VM to get this sorted...

  • Hi,

    Could you upload the zip file? If you are not comfortable sharing code we have also have a closed support portal , MyPage.

    How did you install nrfutil on the windows VM? I'd recommend downloading the command line tools executable. And then adding nrf.exe from \Program Files (x86)\Nordic Semiconductor\nrf5x\bin to PATH.

  • Hiya,

    I'll upload it privately as it's release code. Installed the nrfutil by running mastercontrolpanel.3.10.0.14.x86.msi

Related