<?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>Serial console freezes and the program enters Hardfault handler.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32908/serial-console-freezes-and-the-program-enters-hardfault-handler</link><description>Hello, 
 I have interfaced MPU accelerometer on i2c and GPS on UART. Have enabled UART and using printf to display both sensor data. To begin with, both work fine individually. On clubbing them together, the console hangs after 15secs approx. Upon debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 14:22:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32908/serial-console-freezes-and-the-program-enters-hardfault-handler" /><item><title>RE: Serial console freezes and the program enters Hardfault handler.</title><link>https://devzone.nordicsemi.com/thread/127086?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 14:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2e8ec7-3f1e-4d1e-8080-2a9038ee239b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you check the call stack when debugging to see which function causes the hardfault?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s important that you set the optimization level to 0 when debugging to get the proper call graph.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still cannot find the source of the fault condition, could you post more code so I can have a look?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>