Command Line command to Program .zip file

Is there a command to program a .zip file onto a device via J-Link COM Port using the command prompt (cmd)?

I am able to program a .hex file no problem using: "nrfjprog --program C:\Users\jdavid\Desktop\SNT_main_app_V1.12.0.hex --verify --sectorerase" command. But cannot find an equivalent command to do the same but for a .zip file. 

Thanks,

JD

  • Hi James,

    There is the nRFutil DFU over UART functionality where .zip is used, but I don't think otherwise it's possible to program using zip files. I can confirm this once again internally with experts and will inform you.

    Best Regards,

    Priyanka

  • Hi James,

    No you have to use the hex file. The zip file can contain anything, so you can unzip it  and take the hex to program.

    -Priyanka

  • The utility tool is able to program a zip file manually without unzipping said file. There are more than just .hex files for the .zip file I am trying to program so it's not just as simple unzipping the .zip file. 

  • Hi James,

    In case you need to program the zip files for modem, you can always script it in python and program the hex file for the application at the same time from the command line. Please look at the following steps:

    1. Open a terminal that has Python installed, say, Windows command prompt / Powershell / bash from Toolchain Manager /Terminal within VS Code

    2. Create a project directory you’d like to work in, and then enter the following steps:

    3. List the attached devices:

    • python nrf9160-python-programmer/program_nrf9160.py --list

     Program nRF9160 with firmware:

    • python nrf9160-python-programmer/program_nrf9160.py --verify --application merged.hex --modem mfw_nrf9160_1.3.3.zip

    -Priyanka