<?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>nRF52832 UART problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59919/nrf52832-uart-problem</link><description>Hello, 
 I&amp;#39;ve been trying to write my own library that uses UART. 
 I went through the &amp;quot;uart&amp;quot; example and wrote this piece of code. 
 uart.c 
 
 
 gpio.c 
 
 
 main.c 
 
 
 I modified the example to work without DMA and I get the same values in the registers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Apr 2020 10:28:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59919/nrf52832-uart-problem" /><item><title>RE: nRF52832 UART problem</title><link>https://devzone.nordicsemi.com/thread/243859?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 10:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a89c589-85e0-40f2-a92c-6fe02242e85c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="giorgos3924"]I found the mistake.[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m glad to hear!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="giorgos3924"]&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div style="height:12px;width:100%;"&gt;&lt;div&gt;&lt;div style="height:36px;margin-top:0px;width:40px;"&gt;&lt;div style="height:12px;"&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div style="display:none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="bottom:0px;left:40px;right:0px;"&gt;&lt;div style="height:36px;margin-left:0px;margin-top:0px;width:953px;"&gt;&lt;div&gt;&lt;div style="left:484.025px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="padding:0px 4px;"&gt;&lt;div style="height:12px;"&gt;&lt;span&gt;NRF_UART0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_STARTTX&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="height:12px;left:4px;top:0px;width:6.00031px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="bottom:0px;display:none;width:20px;"&gt;&lt;div style="height:12px;width:20px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="display:none;height:20px;left:40px;right:0px;"&gt;&lt;div style="height:20px;width:953px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font:inherit;height:auto;left:0px;overflow:hidden;top:0px;white-space:pre;width:auto;"&gt;&lt;div style="font:inherit;height:auto;left:0px;overflow:visible;top:0px;white-space:pre;width:auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family:inherit;font-size:inherit;font-style:inherit;height:auto;left:0px;line-height:inherit;overflow:visible;top:0px;white-space:pre;width:auto;"&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="overflow:auto;"&gt;&lt;pre style="display:none;"&gt;NRF_UART0-&amp;gt;TASKS_STARTTX = 1;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also, why do I have to access the events with pointer dereference?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It should be fine to access it directly: while (NRF_UART0-&amp;gt;EVENTS_TXDRDY == 0);&lt;/p&gt;
&lt;p&gt;What happens on your end? Compiler gives a warning?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 UART problem</title><link>https://devzone.nordicsemi.com/thread/243738?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 16:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ad5966-2504-4192-91d7-3850864a0382</guid><dc:creator>George555</dc:creator><description>&lt;p&gt;I found the mistake.&lt;/p&gt;
&lt;p&gt;I should have start the transceiver with&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_UART0-&amp;gt;TASKS_STARTTX = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, why do I have to access the events with pointer dereference?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;while(*(uint32_t*)NRF_UART0-&amp;gt;EVENTS_TXDRDY == 0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>