Distributing an application to perform DFU over USB using nrfutil

Our devices are updateable over a usb serial connection.

So far I have been using the "nrfutil dfu usb-serial" command.  

I have created an application that checks current firmware version, then does the update if necessary.  I had embedded the nrfutil app, but am finding on macos that this is very problematic - I can't sandbox it, or create a hardened runtime for it as it essential needs recompiling.

I can't be the first to do this. Is there a recommended approach?

Parents Reply
  • I am using the bootloader, but doing it over USB from a computer.  The question is about how to perform the dfu from an application on the computer (mac or windows)  For this I use nrfutil (command is "nrfutil dfu usb-serial ....")  Question is how can I embed that in an application on mac?  Within my app I am just using the nrfutil executable, saved in /usr/local/bin then running a commmand to run it.

    On windows it is simple as there are fewer security requirements.  On mac it requires nrfutil executable to be hardened runtime.

Children
Related