<?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>nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60927/nrf5340-debug-network-core</link><description>Hello, 
 I am working on a little app running on nrf5340 app core. Now I want also to program the network core, to be able to exchange data via shared memory as little demo. 
 How can I attach the debugger to the network core? 
 To attach to the app core</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 May 2020 10:12:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60927/nrf5340-debug-network-core" /><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248130?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 10:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:248236f8-001e-4147-aecc-5a635c8f11d0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear it worked out&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; Let me know if you have more questions/issues.&lt;/p&gt;
&lt;p&gt;Stay safe and take care!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248128?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 10:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c8c35aa-317e-40c2-8336-708363f4e8d9</guid><dc:creator>skxo</dc:creator><description>&lt;p&gt;It works like a charm!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JLinkGDBServer -device nRF5340_xxAA_NET -autoconnect 1 -if SWD -speed 4000 -port 2331 -swoport 2332 -telnetport 2333&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and I can do my multicore debug now, thanks!&lt;/p&gt;
&lt;p&gt;on SEGGER J-Link GDB Server V6.70g Command Line Version&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;take care&lt;/p&gt;
&lt;p&gt;sk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248122?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 10:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cc999f-4ee5-4c0d-a1c7-bf81b668b4fc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="skxo"]I need SES for that and I am sorry but I don&amp;#39;t want to use it. I prefer to just use command line to keep it simple.[/quote]
&lt;p&gt;You input this to the GDB server:&lt;/p&gt;
&lt;p&gt;JLinkGDBServer -device &amp;lt;device&amp;gt; -if swd -otheroptions&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this isn&amp;#39;t a valid device, please update your segger drivers. I&amp;#39;m running 6.64b.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248106?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 09:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9ec3a8-3cab-4307-934b-87d2d0a3adf4</guid><dc:creator>skxo</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;Try connecting to devices&amp;nbsp;nRF5340_xxAA_APP and&amp;nbsp;nRF5340_xxAA_NET, and it should select the appropriate core for you.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I need SES for that and I am sorry but I don&amp;#39;t want to use it. I prefer to just use command line to keep it simple.&lt;/p&gt;
&lt;p&gt;Is there any other solution please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248104?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 09:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a08cbee2-22e2-49d7-9648-5dd557ed856c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="skxo"]It works well but how can you specify to connect to the second core? Even if you open 2 sessions, it connect to the app core (I can verify that by single stepping in one window, then I switch to the second session and my PC is updated)[/quote]
&lt;p&gt;Try connecting to devices&amp;nbsp;nRF5340_xxAA_APP and&amp;nbsp;nRF5340_xxAA_NET, and it should select the appropriate core for you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="skxo"]Does Nordic can provide JLinkScriptFile to connect to the second core of the nrf5340 please?[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;ll report this internally as a feature request.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248097?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 08:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dcb7685-8cf1-418b-a387-c5a39046b72a</guid><dc:creator>skxo</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;thank you for your support.&lt;/p&gt;
&lt;p&gt;I tried with JLinkExe playing this command:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;JLinkExe -device Cortex-M33 -autoconnect 1 -if SWD -speed 4000&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It works well but how can you specify to connect to the second core? Even if you open 2 sessions, it connect to the app core (I can verify that by single stepping in one window, then I switch to the second session and my PC is updated)&lt;/p&gt;
&lt;p&gt;I saw JLinkExe can add parameter like JLinkScriptFile to specify CoreSightAdress and other parameters.&lt;/p&gt;
&lt;p&gt;Does Nordic can provide JLinkScriptFile to connect to the second core of the nrf5340 please?&lt;/p&gt;
&lt;p&gt;Even if I open 2 sessions (for example):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;JLinkGDBServer -device Cortex-M33 -autoconnect 1 -if SWD -speed 4000 -port 2331 -swoport 2332 -telnetport 2333&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;JLinkGDBServer -device Cortex-M33 -autoconnect 1 -if SWD -speed 4000 -port 2334 -swoport 2335 -telnetport 2336&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I connect two session on the same core.&lt;/p&gt;
&lt;p&gt;I need a way to specifically attach the second core, maybe using core id parameter ?&lt;/p&gt;
&lt;p&gt;It would be great if Nordic can provide multi-cores debugging support four his multi-core SoC :-)&lt;/p&gt;
&lt;p&gt;Cheers Stay healthy!&lt;/p&gt;
&lt;p&gt;sk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/248079?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 08:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0067532-fb08-4ace-a957-93e44d24eb32</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi sk,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We use segger jlink debuggers (in combination with Segger embedded studio nordic edition, Segger Ozone, or gdb directly). I had a chat with R&amp;amp;D, and it should be possible to debug both at the same time (I&amp;#39;m unfortunately not able to test this right now, as my nRF5340 kit is not within reach).&lt;/p&gt;
&lt;p&gt;To debug both cores at the same time, you should be able to do so by opening two debug sessions (one for each core).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/247837?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 11:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290f7293-12a9-4460-ad56-cb4f08c7d265</guid><dc:creator>skxo</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for this information.&lt;/p&gt;
&lt;p&gt;what setup/tool do you recommend to debug the two cores simultaneously please in that case?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;sk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 debug network core?</title><link>https://devzone.nordicsemi.com/thread/247776?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 07:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca3f36d-de8a-4591-9e25-8d57fb3ac20d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The CPU cores are both Cortex M33 on the nRF5340, which is the same core as the nRF9160.&lt;/p&gt;
&lt;p&gt;We do not support openocd, and it doesn&amp;#39;t seem like the project officially supports neither nRF9160 or nRF5340?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The network core is started up from the application core, so you need to first boot up the net core via this register:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/reset/doc/reset.html?cp=3_0_0_3_7_10_1#register.NETWORK.FORCEOFF"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/reset/doc/reset.html?cp=3_0_0_3_7_10_1#register.NETWORK.FORCEOFF&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you flash the app core with a simplistic firmware (zephyr/samples/hello_world), it will automatically boot up the net core via this file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/boards/arm/nrf5340_dk_nrf5340/nrf5340_cpunet_reset.c#L55"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/boards/arm/nrf5340_dk_nrf5340/nrf5340_cpunet_reset.c#L55&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>