<?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 custom board: uart code giving hardfault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22697/nrf52832-custom-board-uart-code-giving-hardfault</link><description>Hi, 
 I am able to program my custom board using nrf52dk (only 32 Mhz osc populated on custom board), and I can also see the output of SEGGER_RTT_WriteString() though JLinkRTTClient command. But I am getting hardfaults when I have uart in use. 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2017 09:30:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22697/nrf52832-custom-board-uart-code-giving-hardfault" /><item><title>RE: nrf52832 custom board: uart code giving hardfault</title><link>https://devzone.nordicsemi.com/thread/89231?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 09:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d42b3f70-c1ad-4d11-8261-1f7a370016e8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What does your &lt;code&gt;uart_init()&lt;/code&gt; function look like? Are you cheking any function calls for errors? I see you call &lt;code&gt;NRF_LOG_INIT()&lt;/code&gt;, is NRF_LOG enabled in your sdk_config.h file? If it is, and the backend is set to use UART, it might conflict with your uart_init function. Make sure you check every return value using &lt;code&gt;APP_ERROR_CHECK(err_code)&lt;/code&gt;, and use &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;this method&lt;/a&gt; (if using Keil) to check which function is failing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 custom board: uart code giving hardfault</title><link>https://devzone.nordicsemi.com/thread/89233?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 03:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f35b362a-b874-4c8e-8d9a-1e72f7780ad1</guid><dc:creator>Aurabindo</dc:creator><description>&lt;p&gt;Thanks for pointing it out. But this isnt causing hardfault&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 custom board: uart code giving hardfault</title><link>https://devzone.nordicsemi.com/thread/89232?ContentTypeID=1</link><pubDate>Sun, 11 Jun 2017 22:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bab3342-3927-48f1-a394-6079371ae6ea</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;This line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SEGGER_RTT_printf(0,&amp;quot;Error (id,pc,info): %x,%x,%x\n&amp;quot;);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;will not print anything useful. Note the missing arguments for the printf, it will read &amp;quot;random&amp;quot; values from the stack instead.&lt;/p&gt;
&lt;p&gt;You probably wanted:
&lt;code&gt;SEGGER_RTT_printf(0,&amp;quot;Error (id,pc,info): %x,%x,%x\n&amp;quot;, id, pc, info);&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>