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

Creating zip file for DFU in linux, nRF5 SDK11.

How can I create zip package for DFU in Linux. I'm using nRF5 SDK version 11. I'm working in Linux(Ubuntu 14.04).

I'm trying to zip package file for DFU in linux. When I create zip in linux and unzip it, manifeste.json file is looked like this.

$ cat manifest.json {
    "manifest": {
        "application": {
            "bin_file": "MY_APP.bin",
            "dat_file": "MY_APP.dat"
        }
    } 
}

But, if I generate it in Windows, using below command, unziped manifest.json is like this.

"c:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf\nrfutil.exe" dfu genpkg --application MY_APP.bin --application-version 0xFF --dev-revision 0x1 --dev-type 0x1 --sd-req 0x80,0xfffe MY_APP.zip

{
    "manifest": {
        "application": {
            "bin_file": "MY_APP.bin",
            "dat_file": "MY_APP.dat",
            "init_packet_data": {
                "application_version": 255,
                "device_revision": 1,
                "device_type": 1,
                "firmware_crc16": 61844,
                "softdevice_req": [
                    128,
                    65534
                ]
            }
        },
        "dfu_version": 0.5
    }
}

How can I create zip package in Linux.

Related