<?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>strange behaviour of nrf5340 dk and zephyr sdk.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76390/strange-behaviour-of-nrf5340-dk-and-zephyr-sdk</link><description>Hi I have recently started to use nrf5340dk for a &amp;#39;pet&amp;#39; project. I have developed some code for both app and net. 
 Then I started to note have some trouble on the serial output from the net code. 
 So I have started to expand my studies on both the zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jun 2021 08:51:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76390/strange-behaviour-of-nrf5340-dk-and-zephyr-sdk" /><item><title>RE: strange behaviour of nrf5340 dk and zephyr sdk.</title><link>https://devzone.nordicsemi.com/thread/315539?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 08:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8149a809-691c-48b6-86a6-0292711a4c79</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfjprog will default to the application core unless you explicitly target the network core with the argument:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;--coprocessor CP_NETWORK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You also need to add a sectorerase when you program the core, and I recommend that you follow-up the command with a pinreset:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program $BUILD/zephyr/zephyr.hex --sectorerase --coprocessor CP_NETWORK
nrfjprog --pinreset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;west flash&amp;quot; handles all of this.&lt;/p&gt;
&lt;p&gt;When you recover a core, its flash is erased and a small program is written to it to keep the debug port open. However, when you recover the network core the flash of both cores is erased, but only the network core gets the program written to it. This means that the cores will be locked after a pin reset or power cycle, unless you recover the application core afterwards:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover --coprocessor CP_NETWORK
nrfjprog --recover&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps you resolve your issues, and let me know if you run into any other problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>