<?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>Using uart0 and uart1 in the app cpu with BT enabled on the nrf5340dk?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103034/using-uart0-and-uart1-in-the-app-cpu-with-bt-enabled-on-the-nrf5340dk</link><description>Hello, I am trying to enable the use of both uart0 and uart1 in the app cpu while also using the board as a BLE central device. 
 Ultimately I would like to be able to connect USB to a host PC and to use use one uart for console/logs, and the other for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Aug 2023 12:13:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103034/using-uart0-and-uart1-in-the-app-cpu-with-bt-enabled-on-the-nrf5340dk" /><item><title>RE: Using uart0 and uart1 in the app cpu with BT enabled on the nrf5340dk?</title><link>https://devzone.nordicsemi.com/thread/443162?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 12:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b652e900-09bc-4a24-a470-a95aaed3761c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Daniel,&lt;/p&gt;
&lt;p&gt;I have been looking into your queries. I think your DK version is V1. If this swapping is for nRF5340 DK, it could be possible what you are asking about. Do you want to swap the COM port during runtime or in different build? I think it is on different build time.&amp;nbsp;&lt;/p&gt;
[quote user="danielhira"]Is there a way to use the &amp;quot;&lt;span&gt;The second (middle) COM routed to the P24 connector&lt;/span&gt;&amp;quot; to communicate with the application core without external wiring?[/quote]
&lt;p&gt;We think in this case, you need external wire.&amp;nbsp;&lt;/p&gt;
[quote user="danielhira"]Alternatively, is there a way to re-map the pins such that&amp;nbsp;gpio_fwd is able to use other&amp;nbsp;GPIO pins instead of the UART ones, and if so could you please give an example of how to do this?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use overlay to change this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692963800037v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You could set status = &amp;#39;&amp;#39;disabled&amp;#39;&amp;#39; or change the pins that are forwarded to the network core in an overlay.&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;Lastly, or also alternatively, is there a way to remap the pins to&amp;nbsp;change &amp;quot;The first COM port outputs the log from the network core (if available).&amp;quot; such that it also outputs logs from the app cpu? If this is possible, could you please provide an example of how to do this?&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;It is not possible as network core and application core has their different instances. These instances can not share the pins.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using uart0 and uart1 in the app cpu with BT enabled on the nrf5340dk?</title><link>https://devzone.nordicsemi.com/thread/442642?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 20:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c19e74-b98a-49ad-a4c4-331e507d430d</guid><dc:creator>danielhira</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thank you for the response. A few followup questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is there a way to use the &amp;quot;&lt;span&gt;The second (middle) COM routed to the P24 connector&lt;/span&gt;&amp;quot; to communicate with the application core without external wiring? (I see&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#nrf5340-dk-v1-0-0-com-ports),"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#nrf5340-dk-v1-0-0-com-ports&lt;/a&gt;&amp;nbsp;mentioning adding wiring)
&lt;ul&gt;
&lt;li&gt;If external wiring is required, what would be the best way to route those back to the app cpu? If pin mapping is required, could you share an example overlay for accomplishing this?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, is there a way to re-map the pins such that&amp;nbsp;gpio_fwd is able to use other&amp;nbsp;GPIO pins instead of the UART ones, and if so could you please give an example of how to do this?&lt;/li&gt;
&lt;li&gt;Lastly, or also alternatively, is there a way to remap the pins to&amp;nbsp;change &amp;quot;The first COM port outputs the log from the network core (if available).&amp;quot; such that it also outputs logs from the app cpu? If this is possible, could you please provide an example of how to do this?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;-Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using uart0 and uart1 in the app cpu with BT enabled on the nrf5340dk?</title><link>https://devzone.nordicsemi.com/thread/442602?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 13:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f751e0-e907-40d3-9bd4-9338c8135779</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When connected to a computer, the nRF5340 DK v1.0.0 emulates three virtual COM ports (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#id40"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#id40&lt;/a&gt;). In the default configuration, they are set up as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The first COM port outputs the log from the network core (if available).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The second (middle) COM port is routed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;P24&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;connector of the nRF5340 DK.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The third (last) COM port outputs the log from the application core.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Probably one of this COM port is used by network core when you add CONFIG_BT = y.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see here&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/2119df306f5c9104d479f96c4c8af00857094f83/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi#L108"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/2119df306f5c9104d479f96c4c8af00857094f83/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi#L108&lt;/a&gt;&amp;nbsp;how this is forwarded to network core.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>