<?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>UARTE multiple instance with new nrfx exam</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50902/uarte-multiple-instance-with-new-nrfx-exam</link><description>Hello, 
 
 I would like to use the two UARTEs available on nRF52840 with external asynchronous chips. 
 I&amp;#39;ve started a new development with the last sdk (15.3.0) and would like to know if there is a clear example on how to initialize the peripherals.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2019 09:42:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50902/uarte-multiple-instance-with-new-nrfx-exam" /><item><title>RE: UARTE multiple instance with new nrfx exam</title><link>https://devzone.nordicsemi.com/thread/204015?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 09:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:603657b7-37c4-4702-b21c-95a812cff98c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Jean-Yves&lt;/p&gt;
&lt;p&gt;The reason for this is that the SDK has a &amp;#39;legacy&amp;#39; layer, that converts the old pre-NRFX defines to the new NRFX defines.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the case of the UART this is the UART0_ENABLED and UART1_ENABLED define that you can also find in sdk_config.h&lt;/p&gt;
&lt;p&gt;If you disable UART0_ENABLED it should cause a build error, and if you enabled UART1_ENABLED you should be able to use both of the UART&amp;#39;s.&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: UARTE multiple instance with new nrfx exam</title><link>https://devzone.nordicsemi.com/thread/203895?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 16:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4786ba-e497-40d3-915b-06ad80029a65</guid><dc:creator>JYL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just realized I work with &lt;strong&gt;uart&lt;/strong&gt; example and not &lt;strong&gt;serial&lt;/strong&gt; example. Sorry for the mistake.&lt;/p&gt;
&lt;p&gt;In this example, modifications in &lt;strong&gt;sdk_config.h&lt;/strong&gt; still doesn&amp;#39;t seem&amp;#39;s to have any effect on the software behavior.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;JY&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE multiple instance with new nrfx exam</title><link>https://devzone.nordicsemi.com/thread/203829?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 13:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a9e0eed-e371-445f-bda5-7e25fcd82c8f</guid><dc:creator>JYL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for your answer.&lt;/p&gt;
&lt;p&gt;Yes, I had more than a look on the examples you mentionned but I&amp;#39;m turning arround.&lt;/p&gt;
&lt;p&gt;Shall I inspire myself from app_uart_fifo.c and rewrite it to be multi Uart ?&lt;/p&gt;
&lt;p&gt;During my tests, I discovered that the exmaple works the same whatever I configure in sdk_config.h.&lt;/p&gt;
&lt;p&gt;i.e:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
//==========================================================
#ifndef NRFX_UARTE_ENABLED
#define NRFX_UARTE_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_UARTE0_ENABLED - Enable UARTE0 instance 
#ifndef NRFX_UARTE0_ENABLED
#define NRFX_UARTE0_ENABLED 0
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE1_ENABLED - Enable UARTE1 instance 
#ifndef NRFX_UARTE1_ENABLED
#define NRFX_UARTE1_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
//==========================================================
#ifndef NRFX_UART_ENABLED
#define NRFX_UART_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_UART0_ENABLED - Enable UART0 instance 
#ifndef NRFX_UART0_ENABLED
#define NRFX_UART0_ENABLED 0
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this shall disable all UART functions no ?&lt;/p&gt;
&lt;p&gt;JY&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE multiple instance with new nrfx exam</title><link>https://devzone.nordicsemi.com/thread/203814?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 12:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b30c0f7-d68c-4365-9c70-067b438b61aa</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Jean-Yves&lt;/p&gt;
&lt;p&gt;Have you taken a look at the new nrf_serial driver in nRF5 SDK v15.3.0?&lt;/p&gt;
&lt;p&gt;It is well suited for asynchronous UART devices, and will use the nrfx_uarte driver under the hood.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is an example for this driver in the examples/peripheral/serial folder in the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While this example only uses a single UART, you should be able to register two instances of the driver as long as you enable the required peripherals 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></channel></rss>