<?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>Programmatically unwind callstack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25486/programmatically-unwind-callstack</link><description>Hello, 
 I&amp;#39;ve now been looking for a while but haven&amp;#39;t yet found anything working to programmatically unwind the call stack when working with the nRF51 or nRF52.
Basically what I want to do is to save a stacktrace in the app_error_fault or hard_fault</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jun 2018 17:33:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25486/programmatically-unwind-callstack" /><item><title>RE: Programmatically unwind callstack</title><link>https://devzone.nordicsemi.com/thread/136001?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 17:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79fc3dcf-ae6f-4530-b3cf-463f10fc56da</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Hi, sadly no. I gave up getting only the address right before the hard fault handler. at least that gives some indication. If you search for fruity mesh on git hub and go to the beta branch, you wil&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/263a.svg" title="Relaxed"&gt;&amp;#x263a;&lt;/span&gt; find my last version of that code, I think. If you manage to get it to work I am still interested &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/263a.svg" title="Relaxed"&gt;&amp;#x263a;&lt;/span&gt;️&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmatically unwind callstack</title><link>https://devzone.nordicsemi.com/thread/135999?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 17:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40398f3c-fd27-43aa-be4f-705c9fb1d925</guid><dc:creator>wael</dc:creator><description>&lt;p&gt;Hi Marius,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am facing the same problem and was wondering if you were able to figure it out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Wael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programmatically unwind callstack</title><link>https://devzone.nordicsemi.com/thread/100427?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 15:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aaa810a-cddc-4e80-bced-c59e3226e6d1</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;I managed to get a basic  stacktrace by using _Unwind_Backtrace from unwind.h together with -funwind-tables. But sadly, this doesn&amp;#39;t seem to be able to unwind the stacktrace past an Interrupt Service Routine. So, when the HardFaultHandler is called, i am not able to get the stacktrace. But this would be one of the most important places in my code where I would want a stacktrace. Any Ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>