<?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>please clarify UART / UART0 in SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83783/please-clarify-uart-uart0-in-sdk</link><description>in sdk_config.h it says this 
 
 
 
 
 on page 24 of the nRF52832 datasheet, it seems that UART and UARTE cannot both be used (they share the same ID). Is this correct? effectively only one UART on this device? and then what do UART and UART0 refer to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jan 2022 09:49:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83783/please-clarify-uart-uart0-in-sdk" /><item><title>RE: please clarify UART / UART0 in SDK</title><link>https://devzone.nordicsemi.com/thread/348652?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 09:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08511ad2-7bdd-40a2-a161-04bd080ceaba</guid><dc:creator>danmcb</dc:creator><description>&lt;p&gt;ok! I will take that advice! thank you! all the best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: please clarify UART / UART0 in SDK</title><link>https://devzone.nordicsemi.com/thread/348651?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 09:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1960a80-a70e-4b30-b37c-bb4571d2110e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I understand the confusion, but no these defines aren&amp;#39;t exactly the same. As the driver ENABLE define won&amp;#39;t specify what instance to use in the UART drivers/libraries of the SDK. Both NRFX_UART_ENABLED and NRFX_UART0_ENABLED should be set to 1.&lt;/p&gt;
&lt;p&gt;Our example projects in the nRF5 SDK use the UART_ENABLED and UART0_ENABLED defines by default, as they use the nrf_drv_uart driver&amp;nbsp;to enable the UART and UART instance by default.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: please clarify UART / UART0 in SDK</title><link>https://devzone.nordicsemi.com/thread/348490?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 12:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f7fda6-5ae4-4a0f-ac3c-6f6b34871013</guid><dc:creator>danmcb</dc:creator><description>&lt;p&gt;thank you Simon. What do you mean by &amp;quot;NRFX_UART_ENABLED define only enables the UART peripheral driver, while NRFX_UART0_ENABLED must be set to 1 to enable the instance as well&amp;quot;?&lt;/p&gt;
&lt;p&gt;what do you mean by the &amp;quot;driver&amp;quot;and the &amp;quot;instance&amp;quot; - are they not basically the same thing? (Ok typically you create an instance in your code and instantiate it in the driver?)&lt;/p&gt;
&lt;p&gt;but the botttom line is both should be enabled? (we have code running that has only one, it does seem to work, although we have some issues we are working on ...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: please clarify UART / UART0 in SDK</title><link>https://devzone.nordicsemi.com/thread/348291?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 13:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4153202e-780c-4173-ab64-0b742b3618c9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, the nRF52832 only has one UART/UARTE instance available, so you will have to choose one or the other. The reason there is both NRFX_UART_ENABLED and NRFX_UART0_ENABLED is that we have SoCs that have more instances, and the NRFX_UART_ENABLED define only enables the UART peripheral driver, while NRFX_UART0_ENABLED must be set to 1 to enable the instance as well, as the UART_ENABLED define does not set this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>