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

Parents
  • 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

Reply
  • 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

Children
No Data
Related