<?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>Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50657/hard-fault-in-ipc_trace_handle-proprietary-nordic-library</link><description>My application just hit the following fault randomly: 
 
 I tracked back in the map file and that is inside the Nordic NRFX library in ipc_trace_handle, so I have no source code to help me decode what I might be doing wrong. 
 Specifically in my linking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2019 13:25:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50657/hard-fault-in-ipc_trace_handle-proprietary-nordic-library" /><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/212081?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 13:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17da5fe0-3ac8-4f9b-8529-b776ad0473be</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I have not been able to recreate this in the month+ since upgrading to the newer NRF and MFW.&amp;nbsp; I&amp;#39;m willing to say something in one of those helped resolve this...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/204132?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 14:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3228e1f-72a8-4ae9-a11a-bdf6e9edcf38</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Haven&amp;#39;t hit this one again since last week.&amp;nbsp; I&amp;#39;ve still got some extra debug code in place to hopefully provide more useful info if it happens again, but I can&amp;#39;t reproduce it at this point and I&amp;#39;m focusing on other things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/203951?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6eb115-d0e2-4870-ae83-b817230d5e5e</guid><dc:creator>EvenFL</dc:creator><description>&lt;p&gt;Have you had any progress with the issue?&lt;/p&gt;
&lt;p&gt;You can also try to capture a trace using the Trace Collector in the nRF Connect Desktop&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;www.nordicsemi.com/.../nRF-Connect-for-desktop&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/203668?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 16:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7339524-e816-4370-8705-f68ebb850710</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;My application is compiled in NS mode with UARTE1 setup as NS, so nothing should be writing to the secure address.&amp;nbsp; That&amp;#39;s an interesting bit of insight I missed.&amp;nbsp; Thank you.&lt;/p&gt;
&lt;p&gt;If the failure is related to the UARTE, then any printk or UART logging may not work.&amp;nbsp; &amp;nbsp;Thankfully, I just got the RTT logging back-end working!&amp;nbsp; So a LOG_ERR in immediate mode should at least produce something through there.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t hit this error in the past week, though, so it&amp;#39;s just a waiting game at this point...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/203487?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 07:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69baf510-6ca1-434a-8f07-8da407d88956</guid><dc:creator>EvenFL</dc:creator><description>&lt;p&gt;I know that the ipc trace handler is in a code path that may trigger any of these handler if an error is detected as it&amp;#39;s used in that parts of the BSD library. It may be that must run in a debug session and break inside this functions to be sure to capture the error code&lt;/p&gt;
&lt;p&gt;The 0x50008120 address is pointing the first UARTE instance on this devices, so I guesstimate that something is trying to print something on your console. However I am not sure why it fails, maybe because it&amp;#39;s trying to access a non-secure peripheral using the secure peripheral address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/203350?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 13:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a56dd4-7977-40ba-98e7-d0b56e43f06d</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I already have the error handlers implemented, but have them report via LOG_ERR instead of printk.&amp;nbsp; And (unfortunately) I run with deferred logging instead of immediate logging, so they might have been triggered but the hard fault went off before the logging thread had a chance to process/display them,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll stick a log_panic() in those handlers to force it into immediate mode on failures...&amp;nbsp; However, I can&amp;#39;t reproduce this fault reliably. It may be a while before I get anything.&lt;/p&gt;
&lt;p&gt;Why do you think a BSD error is likely to be related to a fault in the IPC handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault in ipc_trace_handle (proprietary Nordic library)</title><link>https://devzone.nordicsemi.com/thread/203228?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 08:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915a1f5f-58da-447c-b76e-090b076a137d</guid><dc:creator>EvenFL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try to implement these functions in your main application (for instance in main.c):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void bsd_recoverable_error_handler(uint32_t error)                                                                                                                                                                                                                             
{                                                                                                                                                                                                                                                                              
    printf(&amp;quot;Err: %lu\n&amp;quot;, (unsigned long)error);                                                                                                                                                                                                                            
}                                                                                                                                                                                                                                                                              

void bsd_irrecoverable_error_handler(uint32_t error)                                                                                                                                                                                                                           
{                                                                                                                                                                                                                                                                              
    printf(&amp;quot;Irrecoverable: %lu\n&amp;quot;, (unsigned long)error);                                                                                                                                                                                                                  
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And check if they are triggered before you get the HARD FAULT? I would like to know what the error parameter is set to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>