<?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>UART communication on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105222/uart-communication-on-nrf52840-dongle</link><description>I recently buy a NRF52840 dongle. I quickly find out that UART communication is not accessible by default . How sad ! I wanted to interact with another board trough uart protocol and the dongle is small meaning perfect to do the job. I am really disapointed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2023 15:44:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105222/uart-communication-on-nrf52840-dongle" /><item><title>RE: UART communication on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/453346?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 15:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb55fbf-acf6-4f2d-9da3-b59a29eae758</guid><dc:creator>kitewinder</dc:creator><description>&lt;p&gt;Done ! thanks a lot Einar. It took me some times to figure out that the solution you propose was not working 100% right. I affect Rx to pin 29 and Tx to pin 31. Sending a string with printf will work great, no problem with that. However , If I try to run the UART example, as it is, app uart_get and app_uart_put functions will send me straight to the UART error handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;those lines of code :&lt;/p&gt;
&lt;p&gt;while (app_uart_get(&amp;amp;cr) != NRF_SUCCESS);&lt;br /&gt; while (app_uart_put(cr) != NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;Any idea what is happening ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/453271?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 12:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0195819c-0322-4c85-a211-447a52ba2f0c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF52840 Dongle differs from the DK in several ways, most importantly that it does not have an onboard debugger. The debugger is also used as a USB-UART bridge, so this means that it is not possible to demosntrate UART with the dongle by itself, and therefore there are no examples.&lt;/p&gt;
&lt;p&gt;That said, UART works just as well with the dongle as with any other nRF52840 board, you just need to connect the pins ans adjust the configuration accordingly. If you refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/uart_example.html"&gt;UART example&lt;/a&gt;,&amp;nbsp; you&amp;nbsp;can see how the pin numbers are provided defines. These does not exits in the board file for the nRF52840 Dongle, but you can replace with your of definitions or simply insert the number of the pins you have chosen.&lt;/p&gt;
&lt;p&gt;Regarding how to adapt the project to the dongle, you can take a look at the &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;&amp;nbsp;(the most important here is to adjust the flash and RAM start addresses).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>