<?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>Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86614/simple-uart-using-dk-nrf52832</link><description>I am new to Zephyr and I have been trying to get hold of a tutorial or a sample app that would indicate how I can use the UART on the nRF52832 for communications with another device. 
 I am using v1.9.99 nRF Connect SDK. 
 
 I have been looking at the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Apr 2022 14:24:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86614/simple-uart-using-dk-nrf52832" /><item><title>RE: Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/thread/362135?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 14:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6ae4f5-1bac-4ef5-9740-a1b6da489a1a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;When using UART, one of the APIs needs to be chosen. For example, choosing async API requires CONFIG_UART_ASYNC_API=y configuration option (in addition to CONFIG_SERIAL=y). An UART peripheral is defined using struct device &lt;br /&gt;&lt;span style="background-color:rgba(238, 238, 238, 1);color:rgba(75, 79, 88, 1);float:none;font-family:Monaco, Consolas, &amp;#39;Andale Mono&amp;#39;, &amp;#39;DejaVu Sans Mono&amp;#39;, monospace;font-size:15px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:pre-wrap;"&gt;const struct device *uart= device_get_binding(DT_LABEL(DT_NODELABEL(uart0)));&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In this example uart is the pointer which interacts with UART API. In the devicetree, uart0 would be the name of the devicetree node used which represents UART hardware controller on the chip. You can read more about the devicetree &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK_dev/doc/PR-5063/zephyr/guides/dts/howtos.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/thread/361925?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 22:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae6c07c-2e85-4d97-85ad-cab888bf2a97</guid><dc:creator>AF</dc:creator><description>&lt;p&gt;Thanks for the detailed reply. I have been looking into Zephyr documentation and it has information I am after.&lt;/p&gt;
&lt;p&gt;As a follow up question, how does the UART definition in the DTS/Overlay map to the UART APIs? I see in the documentation there are configuration APIs for pin mapping and strucutures for configuration of the UART itself, which duplicates the DTS configurations&lt;/p&gt;
&lt;p&gt;In the Simple UART example the call to device_get_binding() passes a string to a UART, I am guessing it then uses the UART configuration in the DTS file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/thread/361821?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 12:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3998e3ed-6bea-422c-9752-69fa466feedd</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Zephyr uses 3 main methods for accessing UART peripheral - through polling, interrupts and asynchronously.&lt;br /&gt;You can read more about &lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/uart.html"&gt;Zephyr UART&lt;/a&gt;, &lt;a href="https://docs.zephyrproject.org/2.6.0/reference/peripherals/uart.html"&gt;Zephyr UART API reference,&lt;/a&gt; &lt;a href="https://docs.zephyrproject.org/apidoc/latest/group__uart__interface.html"&gt;Zephyr UART interface&lt;/a&gt;&lt;a href="https://docs.zephyrproject.org/2.6.0/reference/peripherals/uart.html"&gt;.&lt;/a&gt; and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/drivers/index.html"&gt;Zephyr device driver model&lt;/a&gt;.&lt;br /&gt;Zephyr UART driver example can be found &lt;a href="https://github.com/Riphiphip/zephyr-uart-driver-example"&gt;here&lt;/a&gt;.&lt;br /&gt;In the first above-mentioned link, you can read about available configuration options for the standard UART driver.&lt;br /&gt;&lt;br /&gt;The low power UART driver is implemented on top of the standard UART driver. As described in the documentation, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/drivers/uart_nrf_sw_lpuart.html"&gt;low power UART driver&lt;/a&gt; implements 2 control lines ()request - REQ and ready - RDY) instead two HW flow control lines thereby enabling low power mode. The same documentation provides the link to the configuration options which are available for low power UART driver.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/thread/361805?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 10:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa10e5e-0c82-4622-820d-fa00e283945f</guid><dc:creator>AF</dc:creator><description>&lt;p&gt;Hi Dejan&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;That link for the UART example is helpful.&lt;/p&gt;
&lt;p&gt;Wanted to know the difference between the UART driver and the NCS UART driver in the KConfig file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple UART using DK nrf52832</title><link>https://devzone.nordicsemi.com/thread/361780?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63d6b91-394d-44ce-8441-959e14d5011a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There is one &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58502/simple-uart-example-nrf9160dk"&gt;simple UART example&lt;/a&gt; that could help you to get started.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>