<?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 PDK network core UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56251/nrf5340-pdk-network-core-uart</link><description>I am porting RF evaluation code to the nRF53 NCS/zephyr/Segger Embedded Studio toolchain, using only the network core to start. 
 How do you recommend configuring the network core UART for debugging on the nRF5340 PDK? Is it possible to set it up to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jan 2020 23:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56251/nrf5340-pdk-network-core-uart" /><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/230453?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 23:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d99f9aa-a657-48bf-babe-3cfa991975d9</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;The simplest answer to this is to leave the pin assignments as is and connect P0.25 TO RxD and P0.26 to TxD. It&amp;#39;s not necessary to reassign the pins if you just want the output on another of the virtual COM ports (for me, the third instance in Device Manager).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/228445?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 23:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55e69e2-8c3b-47b5-944d-40f4b108e982</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;To&amp;nbsp;see registers other than the CPU group&amp;nbsp;in SES,&amp;nbsp;I had to manually specify the .svd register definition file downloaded separately via the MDK. Is that a necessary step or should SES have some knowledge of these already?&lt;/p&gt;
&lt;p&gt;While the&amp;nbsp;pin and baud registers are set correctly,&amp;nbsp;I immediately see UART0 ERRORSRC=0xC after setting a breakpoint on the printk line of main.&amp;nbsp;I don&amp;#39;t see this when I build the same code for cpuapp. HWFC is not set in either case.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to burn too much time on this simple example, I was just looking to get familiar with the PDK before trying to bring up the UART properly on the net core. Maybe I will just proceed to that. Are there any examples other than HCI RPMsg that have been&amp;nbsp;proven out for cpunet?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/228367?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 13:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a35dd83-3a2e-4d82-861b-6709ebb9902f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You can try to scope the pins with a digital analyzer and see if there&amp;#39;s anything at all, maybe the UART settings for baud rate and HWFC is not correct.&lt;br /&gt;&lt;br /&gt;But, have you compiled and flashed the new fw for the application core as well? If it&amp;#39;s still using the default UART pins you wont be able to use them from the network core.&lt;br /&gt;&lt;br /&gt;Can you read out the registers of UARTE0 @41013000, after you&amp;#39;ve initialized the UART?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/228206?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 16:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba7eab20-446b-40be-be42-4b06b4d991a0</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;I&amp;nbsp;copied the second uart0 entry above from hello_world&amp;#39;s .dts_compiled built for cpuapp. I wanted to show that the pins were being assigned the same in both cases (meaning the cpunet overlay is working).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I made sure to nrfjprog.exe --recover prior to flashing the cpunet firmware to make sure the app core wouldn&amp;#39;t interfere.&amp;nbsp;I did confirm that if I don&amp;#39;t change the pins I get the expected output on the default uart0 pins (checked with a logic analyzer), but nothing when I try to switch to virtual COM.&amp;nbsp;I&amp;#39;ll see if debugging with SES turns up any clues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/228146?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 13:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051dc739-5140-4130-b316-b3d8715772fb</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That&amp;#39;s strange, there should not be any uart from the cpuapp since you assigned it to different pins. Are you sure you flashed the new FW to cpuapp as well as cpunet? Maybe the old fw on cpuapp is still using the default uart pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/227979?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 17:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69827def-9c32-463a-bfc9-fd374d299290</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;Thanks! I actually tried this on zephyr&amp;#39;s hello_world sample..&amp;nbsp;my only change was to add the overlay below and build for the cpunet target instead of cpuapp.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrf5340_dk_nrf5340_cpunet.overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;20&amp;gt;;
	rx-pin = &amp;lt;22&amp;gt;;
	rts-pin = &amp;lt;19&amp;gt;;
	cts-pin = &amp;lt;21&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Resulting in this entry in&amp;nbsp;nrf5340_dk_nrf5340_cpunet.dts_compiled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart0: uart@41013000 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	reg = &amp;lt; 0x41013000 0x1000 &amp;gt;;
	interrupts = &amp;lt; 0x13 0x01 &amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	label = &amp;quot;UART_0&amp;quot;;
	current-speed = &amp;lt; 0x1c200 &amp;gt;;
	tx-pin = &amp;lt; 0x14 &amp;gt;;
	rx-pin = &amp;lt; 0x16 &amp;gt;;
	rts-pin = &amp;lt; 0x13 &amp;gt;;
	cts-pin = &amp;lt; 0x15 &amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is similar to the entry for the cpuapp target:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart0: uart@8000 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	reg = &amp;lt; 0x8000 0x1000 &amp;gt;;
	interrupts = &amp;lt; 0x08 0x01 &amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	label = &amp;quot;UART_0&amp;quot;;
	current-speed = &amp;lt; 0x1c200 &amp;gt;;
	tx-pin = &amp;lt; 0x14 &amp;gt;;
	rx-pin = &amp;lt; 0x16 &amp;gt;;
	rts-pin = &amp;lt; 0x13 &amp;gt;;
	cts-pin = &amp;lt; 0x15 &amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I see&amp;nbsp;serial output for cpuapp (both over virtual COM and using an analyzer on the pins) but not for cpunet. I didn&amp;#39;t see any&amp;nbsp;differences&amp;nbsp;related to UART when I compared the&amp;nbsp;generated\configs.c files. What did I miss?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 PDK network core UART</title><link>https://devzone.nordicsemi.com/thread/227890?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 12:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6531788-bf74-45ed-b675-321e0e772d60</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You should be able to use the&amp;nbsp;&lt;a title="Virtual COM port" href="https://infocenter.nordicsemi.com/topic/ug_nrf5340_pdk/UG/nrf5340_PDK/vir_com_port.html?cp=3_0_3_3_1"&gt;Virtual COM port&lt;/a&gt;&amp;nbsp;by swapping the GPIO pins for the two processor cores. You will need to enable debugging over UART for the network core and change the GPIOs in an overlay file.&lt;br /&gt;&lt;br /&gt;You&amp;#39;ll need to use a baud rate other than &lt;span&gt;921 600, and preferably use HWFC.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>