<?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 Blocking mode and DWM1001</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57064/nrf52832-uart-blocking-mode-and-dwm1001</link><description>Hello, 
 I am using the DWM1001 board and would like to receive some bytes over UART to the nRF52832. 
 I want the device to wait for a certain number of bytes from UART and only then continue execution. 
 In the Documentation it says for the function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jan 2020 13:20:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57064/nrf52832-uart-blocking-mode-and-dwm1001" /><item><title>RE: nRF52832 UART Blocking mode and DWM1001</title><link>https://devzone.nordicsemi.com/thread/231413?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 13:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f8c14c-0d0e-4c70-ba8d-e2005beaf616</guid><dc:creator>awneil</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/57064/nrf52832-uart-blocking-mode-and-dwm1001/231412"]you don&amp;#39;t check any return values. The first thing you should do is to do that[/quote]
&lt;p&gt;+1&lt;/p&gt;
&lt;p&gt;I thought I had said that, but the post seems to have disappeared!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 UART Blocking mode and DWM1001</title><link>https://devzone.nordicsemi.com/thread/231412?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 13:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd83046-f15a-4be2-9f28-9998a1284d63</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The driver workes like you write, if you pass NULL (which is 0), the driver will work in non-blocking mode.&lt;/p&gt;
&lt;p&gt;Looking at your code snippet, you don&amp;#39;t check any return values. The first thing you should do is to do that. Perhaps one of the calls fail for some reason, you just don&amp;#39;t know it? I am also not sure about the logic of it, but perhaps I just see too little of your code.&lt;/p&gt;
&lt;p&gt;Note that if you just want a very simple&amp;nbsp;API for reading and writing characters on UART, then &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__uart.html"&gt;the UART module&lt;/a&gt;&amp;nbsp;may also be worth considering. It is demonstrated in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/uart_example.html"&gt;UART example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 UART Blocking mode and DWM1001</title><link>https://devzone.nordicsemi.com/thread/231356?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 10:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce23578f-f682-46fe-b330-14bc31b19c02</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;That is true. I guess mentioning it was unnecessary as I am concerned about the API function of the nRF52832.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 UART Blocking mode and DWM1001</title><link>https://devzone.nordicsemi.com/thread/231355?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 10:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b35bb827-eca3-43fa-9892-0900a1e73cd8</guid><dc:creator>awneil</dc:creator><description>[quote userid="86389" url="~/f/nordic-q-a/57064/nrf52832-uart-blocking-mode-and-dwm1001"]the DWM1001 board[/quote]
&lt;p&gt;The what ?&lt;/p&gt;
&lt;p&gt;That&amp;#39;s not a Nordic product - is it?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8688._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>