<?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>Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52903/using-nrf_serial_write-to-write-to-uarte1-prints-one-character-only-then-hard-faults-uarte0-works-fine</link><description>Hi, 
 We are trying to add serial comms to our project so that two boards can communicate with each other. 
 The code we have is as follows and works fine (prints to serial). 
 
 However, we want to use UARTE1 so that UARTE0 can be used by the NRF_LOG</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2019 18:28:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52903/using-nrf_serial_write-to-write-to-uarte1-prints-one-character-only-then-hard-faults-uarte0-works-fine" /><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213741?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 18:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb16224-1903-4b02-94e2-19d851a2b258</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;We are&amp;nbsp;aware of the &amp;quot;challenge&amp;quot; of missing defines in the sdk_config, it&amp;#39;s been reported, and I hope this will be addressed in future sdk&amp;#39;s either by supporting tools or otherwise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213670?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1268e19c-09f5-41fa-9218-f1656e2a7a5f</guid><dc:creator>awneil</dc:creator><description>[quote userid="80302" url="~/f/nordic-q-a/52903/using-nrf_serial_write-to-write-to-uarte1-prints-one-character-only-then-hard-faults-uarte0-works-fine/213668"]I don&amp;#39;t really understand why the sdk_config is different for every example [/quote]
&lt;p&gt;Clearly, it is going to be &lt;em&gt;different&lt;/em&gt; because the examples are different - so, naturally, they will have different configurations!&lt;/p&gt;
&lt;p&gt;Why they can&amp;#39;t all be &lt;em&gt;complete&lt;/em&gt; is another question ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45366/missing-defines-in-generic-sdk_config-h"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/45366/missing-defines-in-generic-sdk_config-h&lt;/a&gt;&lt;/p&gt;
[quote userid="80302" url="~/f/nordic-q-a/52903/using-nrf_serial_write-to-write-to-uarte1-prints-one-character-only-then-hard-faults-uarte0-works-fine/213668"]It would be nice if Nordic could provide a global config that contains all the options and we can just turn them on or off as required[/quote]
&lt;p&gt;Absolutely!&lt;/p&gt;
&lt;p&gt;See the above-mentioned thread!&lt;/p&gt;
&lt;p&gt;You might also want to feed back there ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213668?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee6c1d6c-4f20-432e-8368-faf4a8c2097a</guid><dc:creator>PRvdO</dc:creator><description>&lt;p&gt;I also assumed this but I would like to know what is causing the problem and how to fix it.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really understand why the sdk_config is different for every example so we have to&amp;nbsp;frankenstein multiple configs together and pray that it works. It would be nice if Nordic could provide a global config that contains all the options and we can just turn them on or off as required.&lt;/p&gt;
&lt;p&gt;Using the RTT isn&amp;#39;t really an option for us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213661?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 12:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcebfe33-1f4e-4d22-8aec-696407cb0a0e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Then I assume sdk_config.h is the problem&lt;/p&gt;
&lt;p&gt;Maybe you can consider using RTT for nrf_log instead, unless you need to use uart for logging&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213642?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 12:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6b71532-f615-46f0-9faf-07907624bd91</guid><dc:creator>PRvdO</dc:creator><description>&lt;p&gt;Yes, the code is copied from that example. The example works fine but it does not work in our project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf_serial_write() to write to UARTE1 prints one character only then hard faults. UARTE0 works fine.</title><link>https://devzone.nordicsemi.com/thread/213621?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a15bf1-b422-4365-b7b6-a70f11306079</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Did you take a look at&amp;nbsp;\nRF5_SDK_15.3.0_59ac345\examples\peripheral\serial_uartes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>