<?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>nRF52840 and SDK 15.3, want to use UARTE1 but NRFX_UARTE_INSTANCE(1) does not compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46338/nrf52840-and-sdk-15-3-want-to-use-uarte1-but-nrfx_uarte_instance-1-does-not-compile</link><description>I&amp;#39;m new to development with the Nordic SDK for the nRF52840 and during evaluation I run into the following problem with the UART ports, which I cannot resolve after hours. I&amp;#39;m using Segger Studio 4.16, the Nordic nRF52840 DK ( PCA10056), Nordic SDK 15</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2019 11:32:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46338/nrf52840-and-sdk-15-3-want-to-use-uarte1-but-nrfx_uarte_instance-1-does-not-compile" /><item><title>RE: nRF52840 and SDK 15.3, want to use UARTE1 but NRFX_UARTE_INSTANCE(1) does not compile</title><link>https://devzone.nordicsemi.com/thread/183763?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 11:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e68c38-549a-459f-8d6d-e30190b3a71c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that it worked, thanks for the update.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and SDK 15.3, want to use UARTE1 but NRFX_UARTE_INSTANCE(1) does not compile</title><link>https://devzone.nordicsemi.com/thread/183595?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 18:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b7f951-b085-4e10-b042-a6861727a380</guid><dc:creator>rodims</dc:creator><description>&lt;p&gt;Thanks, setting&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;UART1_ENABLED&lt;/strong&gt; in sdk_config solved the problem. Afterwards the code compiles without errors and I can use both UARTE0 and UARTE1 in parallel.&amp;nbsp; I tested it by enabling using UARTE0 for NRF_LOG stuff (NRF_LOG_BACKEND_UART_ENABLED) and UARTE1 for my own serial communication.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and SDK 15.3, want to use UARTE1 but NRFX_UARTE_INSTANCE(1) does not compile</title><link>https://devzone.nordicsemi.com/thread/183347?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 08:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da11ab9a-f9d4-4902-8b79-346825b7d31d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to set&amp;nbsp;&lt;strong&gt;UART1_ENABLED&amp;nbsp;&lt;/strong&gt;to 1 in your sdk_config.h file. Th&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
//==========================================================
#ifndef UART_ENABLED
#define UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef UART_DEFAULT_CONFIG_HWFC
#define UART_DEFAULT_CONFIG_HWFC 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_PARITY  - Parity
 
// &amp;lt;0=&amp;gt; Excluded 
// &amp;lt;14=&amp;gt; Included 

#ifndef UART_DEFAULT_CONFIG_PARITY
#define UART_DEFAULT_CONFIG_PARITY 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_BAUDRATE  - Default Baudrate
 
// &amp;lt;323584=&amp;gt; 1200 baud 
// &amp;lt;643072=&amp;gt; 2400 baud 
// &amp;lt;1290240=&amp;gt; 4800 baud 
// &amp;lt;2576384=&amp;gt; 9600 baud 
// &amp;lt;3862528=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7716864=&amp;gt; 28800 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15400960=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30801920=&amp;gt; 115200 baud 
// &amp;lt;61865984=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;121634816=&amp;gt; 460800 baud 
// &amp;lt;251658240=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 1000000 baud 

#ifndef UART_DEFAULT_CONFIG_BAUDRATE
#define UART_DEFAULT_CONFIG_BAUDRATE 30801920
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
#endif

// &amp;lt;q&amp;gt; UART_EASY_DMA_SUPPORT  - Driver supporting EasyDMA
 

#ifndef UART_EASY_DMA_SUPPORT
#define UART_EASY_DMA_SUPPORT 1
#endif

// &amp;lt;q&amp;gt; UART_LEGACY_SUPPORT  - Driver supporting Legacy mode
 

#ifndef UART_LEGACY_SUPPORT
#define UART_LEGACY_SUPPORT 1
#endif

// &amp;lt;e&amp;gt; UART0_ENABLED - Enable UART0 instance
//==========================================================
#ifndef UART0_ENABLED
#define UART0_ENABLED 1
#endif
// &amp;lt;q&amp;gt; UART0_CONFIG_USE_EASY_DMA  - Default setting for using EasyDMA
 

#ifndef UART0_CONFIG_USE_EASY_DMA
#define UART0_CONFIG_USE_EASY_DMA 1
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; UART1_ENABLED - Enable UART1 instance
//==========================================================
#ifndef UART1_ENABLED
#define UART1_ENABLED 1
#endif
// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;gt;

// &amp;lt;/h&amp;gt; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the NRFX_UARTE1_ENABLED define will be overridden by the UART1_ENABLED value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>