<?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>How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35662/how-to-set-up-both-uarts-and-not-use-virtual-com-port</link><description>We are currently developing on the PCA10056 as we wait for our development boards. We would like to implement UART0 as a debug port, that we can output the log messages to, and use UART1 to communicate with an RS485 IC that will host a network interface</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jul 2018 18:36:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35662/how-to-set-up-both-uarts-and-not-use-virtual-com-port" /><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/138600?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 18:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87da969-2ebc-47cf-a29e-3523365b583e</guid><dc:creator>Chuppster</dc:creator><description>&lt;p&gt;The link you gave me for the files to add in order to allow for me to select UART1 on the app_uart did the trick!&amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/138507?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 12:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1345cd-caa0-4d58-b61a-e44cf8b4aca1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Attached is a project that uses one UART (0) for NRF_LOG and one UART (1) as a default UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;upzip so you get the same path as the other examples. The project is for SDK 15.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f0c3bd1d689d4679bada7439e7af74e6/ble_5F00_app_5F00_hrs_5F00_and_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hrs_5F00_and_5F00_uart.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that there also are some files outside the project folder that needs change. These changes are described &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33558/use-2-uarte-with-sdk15"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/138425?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 06:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db46de6-3526-44fe-aee8-7740e9e84f6d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Adrian,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply. I am sorry for the late reply. I have tested your project, but I was getting some hard faults. There were quite a lot of possible sources for this, the biggest one being that we don&amp;#39;t have any official support for the Mesh SDK in IAR. I don&amp;#39;t know whether that is the problem, but it may be a possible source.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try to set up a project that uses one UART as logging and another as a &amp;quot;standard&amp;quot; UART.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137930?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 14:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0c66c4-c544-4cb4-a7d9-2d048c3248e7</guid><dc:creator>Chuppster</dc:creator><description>&lt;p&gt;We will be developing using IAR.&amp;nbsp; Our other devices feature a debug port that is used post-development, and we would like to implement them in these new devices, so using a UART for logging would be ideal, for the sake of consistency.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using IAR version 8.22.2&lt;/p&gt;
&lt;p&gt;Extract the code and erase a PCA10056. Program SD140 V6.0.0.&amp;nbsp; Then set a breakpoint in the file com.c (in the Com group)&amp;nbsp;on line 97 and follow that code on from there.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a problem where I have to erase and flash SD140 every time I debug.&amp;nbsp; So if you restart the debugger you&amp;#39;ll have to erase the board.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/UART-Interface.zip"&gt;devzone.nordicsemi.com/.../UART-Interface.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137807?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 07:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0092e3af-d09f-4af1-812e-b503352b420f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Just zip the project folder and attach it here. Use Insert -&amp;gt; Insert image/video/file -&amp;gt; File Upload.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please also describe what I should be looking for when trying your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not tested using one UART as logging and one for communication for another device before, so I don&amp;#39;t know if there are any known issues here. But if you only intend to use the logging UART during development, have you considered using the RTT Backend instead of the UART backend for the NRF_LOG? You can view RTT logging in either RTT viewer from SEGGER or if you are using Segger Embedded Studio, you should be able to see it directly in the IDE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137722?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e13fd8-de9a-470a-9e70-f545da1695eb</guid><dc:creator>Chuppster</dc:creator><description>&lt;p&gt;Sure.&amp;nbsp; How?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137718?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c461a039-0a82-498c-8a42-c00a6854769f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you send your project, and I can take a look?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137485?ContentTypeID=1</link><pubDate>Mon, 25 Jun 2018 14:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c568559-bf3a-4a0d-a6a9-b27e3c9de948</guid><dc:creator>Chuppster</dc:creator><description>&lt;p&gt;Okay, I understand the &amp;quot;Virtual Com Port&amp;quot; now.&amp;nbsp; I have been trying to instantiate an instance of APP_UART while logging is using UART0.&amp;nbsp; What happens is I initialize logging and that goes through just fine.&amp;nbsp; Then, I call APP_UART_INIT().&amp;nbsp; it gets to nrfx_uart_init() in nrfx_uarte.c.&amp;nbsp; When it&amp;nbsp;checks the state of the&amp;nbsp;driver it is already initialized, so it&amp;nbsp;throws an error.&amp;nbsp;&amp;nbsp;I can&amp;#39;t seem to find a way to use a different instance of the app for my (non-log)&amp;nbsp;UART application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The link you posted is for SDK14 and we would like to use the SDK15 app if possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up both UARTs and not use virtual Com port</title><link>https://devzone.nordicsemi.com/thread/137406?ContentTypeID=1</link><pubDate>Mon, 25 Jun 2018 09:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0dddb19-fd6e-4457-8ec9-7602c043e7d5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What do you mean by setting up a UART that does not use the virtual COM port?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand you correct, you want the UART as RX and TX pins, and not the microUSB cable, is that correct? That does not require any changes. When you set up the UART with pin 6 and pin 8 (default UART pins in sdk_config), you will use these pins as standard UART pins. It is actually the Segger On Board (OB) that translates these pins to the COM port. You don&amp;#39;t need to use this. If you just attach a UART device to pins 6 and 8, it will operate as a standard UART device.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding setting up two UARTs on the PCA10056, can you please read through &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14"&gt;this post&lt;/a&gt;, as it explains how to set up two UARTs on the PCA10056.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>