<?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>OS Faulting instruction address (r15/pc): 0x000174c8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92868/os-faulting-instruction-address-r15-pc-0x000174c8</link><description>Hello, 
 I am getting the following error in Segger Embedded Studio v5.60 
 SEGGER Embedded Studio for ARM Release 5.60 Build 2021081102.47262 Nordic Edition Windows x64 
 * buffer overflow detected * [00:03:32.312,866] &amp;lt;err&amp;gt; os: r0/a1: 0x00000003 r1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Oct 2022 13:41:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92868/os-faulting-instruction-address-r15-pc-0x000174c8" /><item><title>RE: OS Faulting instruction address (r15/pc): 0x000174c8</title><link>https://devzone.nordicsemi.com/thread/392414?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 13:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fb92f7f-5488-490d-989f-3badab66318f</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;I see. Unfortunately there is no support in Zephyr for generating &lt;a href="https://en.wikipedia.org/wiki/Stack_trace"&gt;stack traces&lt;/a&gt;, but it &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/4416"&gt;has been requested before&lt;/a&gt;. Until this is implemented, we will have to do with an external debugger.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OS Faulting instruction address (r15/pc): 0x000174c8</title><link>https://devzone.nordicsemi.com/thread/391862?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 11:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8fef091-12c0-49c1-934c-1313ab0961cb</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;As suspected, the root cause of the crash was a stray array index getting out of range. It is fixed now.&lt;/p&gt;
[quote userid="117489" url="~/f/nordic-q-a/92868/os-faulting-instruction-address-r15-pc-0x000174c8/391749"]Could you run your code with a debugger, and take a look at your stack frame when it crashes? You&amp;#39;ll see the function that was calling into libc-hooks.[/quote]
&lt;p&gt;I think I did try to use the Call stack in the debugger but it did not help. SES debugger did not show the complete call stack all the way back to my application code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My point was the error message could have been more helpful by pointing to an address in the application code.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OS Faulting instruction address (r15/pc): 0x000174c8</title><link>https://devzone.nordicsemi.com/thread/391749?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 20:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b89d20-5180-433a-ac1a-0f254f605df8</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;I also suspect that the problem lies with your code; it&amp;#39;s not unlikely that it&amp;#39;s just a C programming error, where you&amp;#39;re writing past the bounds of an array (sorry if this sounds obvious).&lt;/p&gt;
&lt;p&gt;Could you run your code with a debugger, and take a look at your stack frame when it crashes? You&amp;#39;ll see the function that was calling into libc-hooks.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have the capacity to help with debugging every kind of C problem, but I hope this gets you started for now.&lt;/p&gt;
&lt;p&gt;Let me know if there&amp;#39;s more you&amp;#39;re wondering about!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OS Faulting instruction address (r15/pc): 0x000174c8</title><link>https://devzone.nordicsemi.com/thread/391126?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 09:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e403503-9ef3-4317-bc6c-1edc4b1427c8</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll be looking into this soon. Sorry to let you wait.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>