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

Syntax for SDK (insecure) DFU package generation of SD+APP+BL?

Hi

I'm trying to create a DFU package for a SDK11 (insecure) DFU

For just the bootloader I have this syntax in my makefile

nrfutil dfu genpkg --bootloader $(OUTPUT_BINARY_DIRECTORY)/$<.hex --application-version 0xffffffff --dev-type 0x023a --dev-revision 0x0064 --sd-req 0xfffe $(OUTPUT_BINARY_DIRECTORY)/$<.zip

But I need to include the updated SDK 11 SD 2.0.1 and also a replacement Application binary

But I don't know where the docs are for this old version of nrfutil that seems to be needed for SDK11

Can someone tell me the location of the docs for the old SDK11 compatible nrfutil.exe or tell me the items I need to add to the command line to add the SD and the Application

Thanks

  • Hi Roger,

    the documentation for nrfutil v0.5.2 or older can be found here, but its very limited.

    The correct syntax should be:

    nrfutil dfu genpkg --application application.hex --application-version 0xFFFFFFFF --softdevice softdevice.hex --bootloader bootloader.hex --dev-type 0xFFFF --dev-revision 0xFFFF --sd-req 0xFFFE distribution_packet.zip

    You will of course have to modify the --dev-type and --dev-revision options to match the ones in your question.

    Best regards

    Bjørn

  • Bjørn

    Thankyou

    I changed my makefile rule to

    dfu: my_application
    	@echo Creating DFU package: $(OUTPUT_BINARY_DIRECTORY)/$<.zip
    	nrfutil dfu genpkg --softdevice hex/s132_nrf52_2.0.0_softdevice.hex --bootloader $(OUTPUT_BINARY_DIRECTORY)/$<.hex --application  hex/application.hex --application-version 0xffffffff --dev-type 0x023a --dev-revision 0x0064 --sd-req 0xfffe $(OUTPUT_BINARY_DIRECTORY)/$<.zip
    

    And it worked fine

    Thanks again

    Roger

Related