<?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>Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34517/serial-uarte-with-s140-soft-device</link><description>Does the serial function operate with a soft device. Whenever i have an include statement for serial.h in a file with a softdevice I get a No such file or directory compilation error. In the main file can open declaration etc. Can also specifically add</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 02:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34517/serial-uarte-with-s140-soft-device" /><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/133721?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 02:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c3b3a9-5b1d-47f6-8d31-35d9e3fdff39</guid><dc:creator>David Challender</dc:creator><description>&lt;p&gt;I have added serial functions. Need to ensure that config file is correct.&amp;nbsp; Start with working serial example as highlighted in link. Add paths in S140 Make File.&amp;nbsp; Check S140 Config file and update to match serial example for UART /UARTE .&amp;nbsp; If file has uart logging disable if using UART 0 as will be set for logging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/133346?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 07:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3269d465-b90a-4e4e-9f04-c5e8fcde8950</guid><dc:creator>David Challender</dc:creator><description>&lt;p&gt;I have edited the makefile to include the required paths.&amp;nbsp; Functions can now be included.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/132690?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 09:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716d7985-28a0-4ffc-bc39-09433e0c58ec</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you made sure you have the include path correctly ? Could you take a screenshot of the User Include Directories that show the&amp;nbsp;/components/libraries/serial included in your project (inside&amp;nbsp;Option -&amp;gt; Select Common configuration)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/132639?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 06:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b00329c-66f9-4c69-ac7a-20ff1d3d1cc0</guid><dc:creator>David Challender</dc:creator><description>&lt;p&gt;I have attached a screenshot of the issue.&amp;nbsp; I have compiled and successfully run the serial example in SDK revision 15 using the updated files in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14/126390#126390"&gt;&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14/126390#126390"&gt;NRF52840 UART1 not working in SDK 14&lt;/a&gt;&amp;nbsp;and have ensured that the configuration file in the buttonless DFU config for UARTE/UART is equivalent to the&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
//==========================================================
#ifndef NRFX_UARTE_ENABLED
#define NRFX_UARTE_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRFX_UARTE0_ENABLED - Enable UARTE0 instance 
#ifndef NRFX_UARTE0_ENABLED
#define NRFX_UARTE0_ENABLED 1
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE1_ENABLED - Enable UARTE1 instance 
#ifndef NRFX_UARTE1_ENABLED
#define NRFX_UARTE1_ENABLED 1
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_DEFAULT_CONFIG_PARITY  - Parity
 
// &amp;lt;0=&amp;gt; Excluded 
// &amp;lt;14=&amp;gt; Included 

#ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
#define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_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;8388608=&amp;gt; 31250 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15007744=&amp;gt; 56000 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 NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &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 NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;e&amp;gt; NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
#define NRFX_UARTE_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_UARTE_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
#define NRFX_UARTE_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_UARTE_CONFIG_INFO_COLOR
#define NRFX_UARTE_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_UARTE_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
//==========================================================
#ifndef NRFX_UART_ENABLED
#define NRFX_UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRFX_UART0_ENABLED - Enable UART0 instance 
#ifndef NRFX_UART0_ENABLED
#define NRFX_UART0_ENABLED 1
#endif

// &amp;lt;o&amp;gt; NRFX_UART_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
#define NRFX_UART_DEFAULT_CONFIG_HWFC 0
#endif

// &amp;lt;o&amp;gt; NRFX_UART_DEFAULT_CONFIG_PARITY  - Parity
 
// &amp;lt;0=&amp;gt; Excluded 
// &amp;lt;14=&amp;gt; Included 

#ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
#define NRFX_UART_DEFAULT_CONFIG_PARITY 0
#endif

// &amp;lt;o&amp;gt; NRFX_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;3866624=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7729152=&amp;gt; 28800 baud 
// &amp;lt;8388608=&amp;gt; 31250 baud 
// &amp;lt;10309632=&amp;gt; 38400 baud 
// &amp;lt;15007744=&amp;gt; 56000 baud 
// &amp;lt;15462400=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30924800=&amp;gt; 115200 baud 
// &amp;lt;61845504=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;123695104=&amp;gt; 460800 baud 
// &amp;lt;247386112=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 1000000 baud 

#ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
#endif

// &amp;lt;o&amp;gt; NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &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 NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;e&amp;gt; NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_UART_CONFIG_LOG_ENABLED
#define NRFX_UART_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_UART_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_UART_CONFIG_LOG_LEVEL
#define NRFX_UART_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_UART_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_UART_CONFIG_INFO_COLOR
#define NRFX_UART_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_UART_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_UART_CONFIG_DEBUG_COLOR
#define NRFX_UART_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;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 7
#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 0
#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;&lt;/p&gt;
&lt;p&gt;config in the updated serial example. In my check config file I have&amp;nbsp; set&amp;nbsp;&lt;span&gt;&amp;nbsp;NRFX_UARTE_ENABLED = 1.&amp;nbsp; NRF_SERIAL_ENABLED = 1 was not in the buttonless code but was in the serial example I have added&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;q&amp;gt; NRF_SERIAL_ENABLED  - nrf_serial - Serial port interface


#ifndef NRF_SERIAL_ENABLED
#define NRF_SERIAL_ENABLED 1
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/132634?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 06:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb671bf-d6a6-46ba-9e84-a148e7141bd8</guid><dc:creator>David Challender</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/800x600/__key/communityserver-discussions-components-files/4/Serial-Error.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial / UARTE with S140 soft device</title><link>https://devzone.nordicsemi.com/thread/132510?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 13:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04251dd9-9a5e-40ae-ac34-36f6d8094949</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you take a screenshot of the problem when you try to compile ? Make sure you include all the needed .c file and path to .h file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sure you updated sdk_config.h to enable UART (set NRFX_UARTE_ENABLED = 1) and NRF_SERIAL_ENABLED = 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Serial library uses drv_uart as the backend, you can have multiple instance. There are 2 instance of UARTE on the NRF52840.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>