Creating DFU package with latest nrfutil tool v7

Hello

I'm now downloaded and try to use the new nrfutil tool to create DFU package. The problem is that the manifest file miss the "init_packet_data" section. This is how my command looks like on the old nrfutil:

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

Form the maifest file:

{
    "manifest": {
        "application": {
            "bin_file": "MMP063_CMSP_038_MER_F1M_F1M.bin",
            "dat_file": "MMP063_CMSP_038_MER_F1M_F1M.dat",
            "init_packet_data": {
                "application_version": 4294967295,
                "device_revision": 65535,
                "device_type": 65535,
                "firmware_crc16": 36869,
                "softdevice_req": [
                    65534
                ]
            }
        },
        "dfu_version": 0.5
    }
}
This how I try to make the command with the new nrfutil v7:
nrfutil pkg generate --hw-version 51 --sd-req 0x00 --application-version 0 --application MMP063_CMSP_038_OXE_EAM_F2M.hex CKSP_038_OXE_EAM_F2M.zip
The manifest file looks like this:
{
    "manifest": {
        "application": {
            "bin_file": "MMP063_CMSP_038_OXE_EAM_F2M.bin",
            "dat_file": "MMP063_CMSP_038_OXE_EAM_F2M.dat"
        }
    }
}
I understands that I have to fill in some more in the command string, but what? The new nrfutil dont accept the --dev-revision and --dev-type. What shall it be replaced with? 
nRF Toolbox App want accept the new .zip file, or it is my old booloader that want accept it.. Please, any solution for this? 
BR Pål
Parents
  • Hello,
    Could you try something like this: nrfutil pkg generate --hw-version 52 --sd-req=0xFFE  --application test_app.hex --application-version 1 test_app.zip as mentioned in the blog post I pointed before?

    Kind Regards,

    Abhijith

  • Yes:

    I use this command:

    nrfutil pkg generate --hw-version 51 --sd-req=0xFFE  --application test_app.hex --application-version 1 test_app.zip

    This works with no errors, but my Minifest file still missing the "init_packet_data"

    I'm using an old dfu, and I can't change to a newer one..

    {
        "manifest": {
            "application": {
                "bin_file": "test_app.bin",
                "dat_file": "test_app.dat"
            }
        }
    }

    To me, it looks like the "new" nrfutil tool is not back comaptible with older DFU's.. 

Reply
  • Yes:

    I use this command:

    nrfutil pkg generate --hw-version 51 --sd-req=0xFFE  --application test_app.hex --application-version 1 test_app.zip

    This works with no errors, but my Minifest file still missing the "init_packet_data"

    I'm using an old dfu, and I can't change to a newer one..

    {
        "manifest": {
            "application": {
                "bin_file": "test_app.bin",
                "dat_file": "test_app.dat"
            }
        }
    }

    To me, it looks like the "new" nrfutil tool is not back comaptible with older DFU's.. 

Children
No Data
Related