nrfutil for ARM and other platform

Hello !

I can see nrfutil is written in python and have a lot of dependencies and functionalities what typically need for x86 based host.

A lot of discussions about porting of it to RPi and other platforms as it is.

For light distributions , DFU via serial port can cover 99% of use cases.

I mean usage nrfutil like this :

nrfutil -v dfu usb-serial -p /dev/ttyACM0 -b 115200 -pkg dfu.zip  

Do you have other light sources or examples for nrfutil what can be easily used in simple systems ?

Or porting sources from main repo https://github.com/NordicSemiconductor/pc-nrfutil is only option for produce own light version of nrfutil ?

Regards,

Eugene

  • Hi Hiihtaja, 

    I'm afraid that we don't have any minimized source except for what we have on the github repo. 
    We now have very limited resource to work on "legacy" libraries and tool such as the DFU library for nRF5 SDK. The main focus now is on nRF Connect SDK. 

  • Hello !

    But nRF Connect SDK also should have some util for DFU flash of nordic's MCU. Is this so ?

    I need to update application only. SD and bootloader itself is no need,

    Please point me to it.

    Regards,

    Eugene

  • Hi Eugene, 

    Yes there is DFU in nRF Connect SDK but it's a new protocol (MCUBoot and SMPSVR). So it's not really related to the DFU protocol in the nRF5 SDK. 
    And if you install nrfutil from our website you will notice that it's now version 7 and doesn't support the "legacy" DFU out of the box. You would need to install the "legacy" nrf5sdk-tools.

    If you are interested in a very simple DFU master code, I have made one for UART and SPI that you can find here. It's for nRF52 to update nRF52, I'm not sure how useful it is for you if you want to do RPi  to nRF52. 

  • Hi Hung Bui !

    Can it be some combined solution ,becouse in any case we should move to nRF Connect SDK next year.

    DFU util and bootloader for nRF52 and nRF53 we can take from nRF Connect SDK ( no idea yet how it is simple) and use old Application what is compiled by using old nRF5 SDK.

    OR new bootloader/DFU utils are not compatible with old application at all ?

    Regards,

    Eugene

  • Hi Eugene, 

    It's possible to do a hybrid solution.

    However, I don't see much point of using old application from nRF5 on the MCUBoot bootloader from nRF Connect SDK. Could you explain what you plan to do ? 

    What is more realistic in my opinion is to use the legacy bootloader from nRF5 SDK and use nRF Connect SDK application on top of that, in case you want to update the product that's already deployed and don't want to move from nRF5 bootloader.

    It's the same solution we used in our nRF52840 dongle which shipped with nRF5 SDK bootloader to run nRF Connect SDK. Read about that here.

Related