<?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>About Flashing firmware of nrf5340 with nrfjprog.exe</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86811/about-flashing-firmware-of-nrf5340-with-nrfjprog-exe</link><description>I used mergehex.exe to generate a merge.hex with firmware appcore.hex and firmware netcore.hex. 
 and use nrfjprog.exe flash merge.hex to nrf5340. 
 
 Prompt error: 
 
 How to solve the error.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Apr 2022 00:21:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86811/about-flashing-firmware-of-nrf5340-with-nrfjprog-exe" /><item><title>RE: About Flashing firmware of nrf5340 with nrfjprog.exe</title><link>https://devzone.nordicsemi.com/thread/363082?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 00:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9773db6f-d89b-4bf3-9806-8256b90c1c4d</guid><dc:creator>mingjkl</dc:creator><description>&lt;p&gt;Thank you very much for your patient and professional reply. I have understood it. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About Flashing firmware of nrf5340 with nrfjprog.exe</title><link>https://devzone.nordicsemi.com/thread/362976?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 09:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc52d810-3585-4ddc-8972-72f4c7f25e54</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;West flash does use nrfjprog to program the nRF5340, but the command is not equivalent with nrfjprog --program as it does some more handling before running nrfjprog --program.&amp;nbsp; So it is possible to use west flash to flash a merged hex file, as you can see in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_nrf5340.html#multi-image-builds"&gt;Working with nRF5340 DK » Multi-image builds&lt;/a&gt; and&amp;nbsp;under Multi-image build in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_nrf5340.html#id2"&gt;Working with nRF5340 DK » Building and programming a sample&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;but when you use it to program multi-image builds to the different cores it actually runs nrfjprog --program for each core just as in my previous reply.&lt;/p&gt;
&lt;p&gt;When you run west commands you are actually executing scripts located in zephy/scripts/west_commands. These will parse information and use this information when running nrfjprog --program. However, when the device family is NRF53 it will do some extra handling before creating and running nrfjprog --program in order to handle the two cores. What it does is actually to generate two new hex files, one for each core, based on the input hex file and then flash them individually. So it flashes both cores separately just as you would do yourself with nrfjprog. If you are curious and want to know more about this you can look at the function program_hex_nrf53() in west_commands/runners/nrfjprog.py.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About Flashing firmware of nrf5340 with nrfjprog.exe</title><link>https://devzone.nordicsemi.com/thread/362927?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 00:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191668cd-a9e5-4ee1-98b4-e343f11feebf</guid><dc:creator>mingjkl</dc:creator><description>&lt;p&gt;Flash using West is also completed by calling nrfjprog, so the firmware flashing of nrf5340 must be carried out separately from two cores, and one merge hex cannot be used for flash at one time. Is that right？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About Flashing firmware of nrf5340 with nrfjprog.exe</title><link>https://devzone.nordicsemi.com/thread/362840?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 11:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15814c70-6e15-40aa-85df-1605fdc65881</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You cannot use nrfjprog to program multi-image builds for different cores. You must either use west, or you must program the cores separately with nrfjprog:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;nrfjprog&lt;/span&gt; &lt;span&gt;-&lt;/span&gt;&lt;span&gt;f&lt;/span&gt; &lt;span&gt;NRF53&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;coprocessor&lt;/span&gt; &lt;span&gt;CP_NETWORK&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;program&lt;/span&gt; &lt;span&gt;zephyr&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;zephyr&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;hex&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;chiperase&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;nrfjprog&lt;/span&gt; &lt;span&gt;-&lt;/span&gt;&lt;span&gt;f&lt;/span&gt; &lt;span&gt;NRF53&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;program&lt;/span&gt; &lt;span&gt;zephyr&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;zephyr&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;hex&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;chiperase&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>