<?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>nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23797/nrf52-uart-problems-with-errors-4-and-8</link><description>Hi, 
 I have a Rigado BDM-300 (nRF52832) on a small custom board.
Using SDK 13.1 with SD132 v4.0.2. 
 I&amp;#39;ve taken a template project and adjusted it to my needs. I can get my services there, connect to the board with mobile device, etc...so I know board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Aug 2017 12:16:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23797/nrf52-uart-problems-with-errors-4-and-8" /><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93611?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 12:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ee56eab-8f68-45c7-a3a5-f005546d787f</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Dropped this project, rewrote code on DK, uart works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93609?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 08:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:628f43a9-1779-4200-81b9-a21e3b0202bc</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Ble UART example is not working for me at the moment, it stops at Segger_RTT.c at line 304: p-&amp;gt;aDown[0].WrOff = 0u; RTT version is 6.16j. For default version of Segger RTT which comes with SDK, code hangs at line number 187.
Tried to disable RTT but then it stops at SD initialization, which is weird. Anyways, we&amp;#39;ll probably just change PCBs and use some other pins which are not 0 and 1, which will solve our problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93610?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 13:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:746062b5-bfd9-41e7-9851-5f706344577c</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Managed to get it working on pins 23 and 24! Still no luck on 0 and 1. Which UART example? ble_uart or uart without ble? I can try them, sure, but loopback will work if there are bytes sent/received, and I can&amp;#39;t get that to work on pins 0 and 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93606?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 11:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e1233a-8c2b-4faf-9e04-c28ebf944d63</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When I test using UART on pin 0 and 1 here it works without any problems. Could you run the UART example in the SDK --&amp;gt; ENABLE_LOOPBACK_TEST and check if it works if the RX/TX pins are set to 0 and 1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93607?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000c270f-c5de-4a17-b7a8-8838c6b33e52</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Still nothing. I&amp;#39;ve managed to add Segger RTT to logging @ template project. After that I added UART stuff from UART ble example. When pins 0 and 1 are used for UART I still get error 4 and 8. When using pins 23 and 24 no such errors. In both cases I don&amp;#39;t have a working UART. I&amp;#39;t not sending anything. I can compile the program and run it, there are no compile errors or execution errors, but when using &amp;quot;app_uart_put&amp;quot; function I get nothing out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93608?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 12:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42982ece-fd7d-4a77-9120-68e578027b19</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Nope, nothing on pins 0 and 1. Must something be configured before I can use them as tx, rx for uart?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93605?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 10:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d968c2d4-2c05-46cd-b226-998eb255e729</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;I don&amp;#39;t have, but I must check in Rigado datasheet, maybe they do, hmmm...
Just a note, when I tried to use pin 23 and 24 I don&amp;#39;t get those errors.&lt;/p&gt;
&lt;p&gt;You mean like this?
nrf_clock_lf_cfg_t clock_lf_cfg = { NRF_CLOCK_LF_SRC_RC, 16, 2, 0 };
SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);
That&amp;#39;s the code I use from the beginning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93604?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 09:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c6e73e1-7fed-448e-a7a6-874117b5ac95</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If there is no 32 kHz crystal connected to pin 0 and 1, there shouldn&amp;#39;t be any problem to use those pins as GPIOs.&lt;/p&gt;
&lt;p&gt;In your code, do you have set the LFCLK crystal source to the internal RC oscillator?  If not, could you do so, and check if it changes anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 uart problems with errors 4 and 8</title><link>https://devzone.nordicsemi.com/thread/93603?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 11:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2037ac48-ace4-4594-804e-5ae44f022583</guid><dc:creator>mbozic</dc:creator><description>&lt;p&gt;Btw, my UART pins are pins 0 and 1. Those are XL1 and XL2. Maybe that&amp;#39;s the issue? Must I reconfigure them somehow?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>