<?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 multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48803/using-multiple-uart-instances-on-the-nrf52840</link><description>Hello, 
 Here&amp;#39;s my current setup: 
 I am using the nrf52840 SoC for development, which as I understand, has 2 UART instances available. One instance is being used for a third party chip. This means I am no longer able to use UART for logging (I had to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jun 2019 08:56:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48803/using-multiple-uart-instances-on-the-nrf52840" /><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/194032?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 08:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a54c801f-31f9-421a-b346-484c1a70c1e6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Timothy&lt;/p&gt;
&lt;p&gt;Are you able to assign UARTE1 to your third party chip rather than UARTE0?&lt;/p&gt;
&lt;p&gt;Then it should be quite straight forward to enable logging on UARTE0 like normal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For this to work you have to enable both UART&amp;#39;s in the sdk_config.h file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193872?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214cf8fe-9f48-441f-a405-7da89d69ec40</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Presumably, in what you currently have for your&amp;nbsp;&lt;span&gt;&amp;quot;custom chip&amp;quot; comms, there must be a &amp;quot;UART init&amp;quot; somewhere early on ... ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193871?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d532d0-bb1b-4607-a0be-d716fa654594</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;Maybe I wasn&amp;#39;t very clear - what I&amp;#39;m really asking is how to enable/initialize both instances and have them running at the same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193867?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9036fa2-3734-44ce-a5e9-2f12bf89fed9</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;That makes perfect sense;&amp;nbsp; but it&amp;#39;s not exactly obvious how to select the other UART instance. &lt;br /&gt;Thanks anyways for backing me up (that&amp;#39;s why I responded to your thread).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193864?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6666b1f9-4364-46c3-bcb6-bd3cc2a1c5ad</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I don&amp;#39;t know - I&amp;#39;m following this thread to find out!&lt;/p&gt;
&lt;p&gt;I guess the easiest approach would probably to use the default UART for the NRF_LOG, and then select the &lt;em&gt;other&lt;/em&gt; one for your &amp;quot;custom chip&amp;quot; comms ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193861?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4959cf9-fc6b-474d-88b5-22e59a2c794f</guid><dc:creator>Tim Adu</dc:creator><description>&lt;p&gt;Precisely!&lt;br /&gt;And I&amp;#39;m currently using the nrf52840 development kit, but will eventually move to a custom board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193860?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18fed1d-d6aa-4391-a81b-fc695f6921af</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I think you&amp;#39;ve missed the point - I think he&amp;#39;s asking how he can use the &lt;em&gt;&lt;strong&gt;two&lt;/strong&gt;&lt;/em&gt; UARTs on the nRF52840 &lt;em&gt;at the same time&lt;/em&gt;...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UART instances on the nrf52840</title><link>https://devzone.nordicsemi.com/thread/193857?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 10:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f79b16-faeb-4734-8c03-56e510ab0b55</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You are using the nRF52840 chip or you are using Nordic&amp;#39;s development board based off the chip? Two rather different things. If you are using the chip in a custom design you can do whatever you want, if you are using the nRF52840 dev kit&amp;nbsp;then yes one of the two UARTs is presented via a USB-CDC device as a serial port. You can just open that serial device on your PC/linux box/mac and read it as a .. serial device and you can log via the UART backend. That&amp;#39;s the point of the logging interface, you can select whether it&amp;#39;s presented via RTT or through the UART. And if you want to connect directly to the UART with a UART you can cut the solder bridges (see the manual).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you&amp;#39;re overcomplicating it - yes one UART goes via a third party chip, however it does that in order that you can open it as a serial device on your computer, it&amp;#39;s not stolen from you, it&amp;#39;s made available to you in a consumable form. I think that&amp;#39;s what you actually want.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>