<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command Line command to Program .zip file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101326/command-line-command-to-program-zip-file</link><description>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: &amp;quot;nrfjprog --program C:\Users\jdavid\Desktop\SNT_main_app_V1.12.0.hex --verify --sectorerase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jul 2023 05:58:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101326/command-line-command-to-program-zip-file" /><item><title>RE: Command Line command to Program .zip file</title><link>https://devzone.nordicsemi.com/thread/434089?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 05:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ca8e2e-7894-4e9e-8fe1-087fb7254ae6</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1. Open a terminal that has Python installed, say, Windows command prompt / Powershell / bash from Toolchain Manager /Terminal within VS Code&lt;/p&gt;
&lt;p&gt;2. Create a project directory you’d like to work in, and then enter the following steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;git clone&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/mgolu/nrf9160-python-programmer.git"&gt;https://github.com/mgolu/nrf9160-python-programmer.git&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;pip3 install -r nrf9160-python-programmer/requirements.txt&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;3. List the attached devices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;python nrf9160-python-programmer/program_nrf9160.py --list&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;Program nRF9160 with firmware:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;python nrf9160-python-programmer/program_nrf9160.py --verify --application merged.hex --modem mfw_nrf9160_1.3.3.zip&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line command to Program .zip file</title><link>https://devzone.nordicsemi.com/thread/433769?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 16:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93903614-2f0c-4166-9bd5-411db64466f1</guid><dc:creator>jdavid</dc:creator><description>&lt;p&gt;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&amp;#39;s not just as simple unzipping the .zip file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line command to Program .zip file</title><link>https://devzone.nordicsemi.com/thread/433591?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 07:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f016b37-f7a4-4163-9e60-29a6085baddc</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;No you have to use the hex file. The zip file can contain anything, so you can unzip it&amp;nbsp; and take the hex to program.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line command to Program .zip file</title><link>https://devzone.nordicsemi.com/thread/433581?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 06:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f876c8-8b82-4a8d-b992-ffa32da1e63b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;There is the&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutils/UG/nrfutils/nrfutil_prog_nordicdfu.html?cp=11_7_4_1_1"&gt; nRFutil DFU over UART functionality&lt;/a&gt; where .zip is used, but I don&amp;#39;t think otherwise it&amp;#39;s possible to program using zip files. I can confirm this once again internally with experts and will inform you.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>