<?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>Call stack window does not display local values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22798/call-stack-window-does-not-display-local-values</link><description>I&amp;#39;m running a debug session. 
 I set a break point inside of function services_init on line 201. 
 I ran the run up to break point command 
 
 The processor pauses on line 201 as expected. However, the stack window only displays variables local to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2017 21:02:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22798/call-stack-window-does-not-display-local-values" /><item><title>RE: Call stack window does not display local values</title><link>https://devzone.nordicsemi.com/thread/89630?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 21:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b532cd9c-d7c4-4068-996f-384149ca8166</guid><dc:creator>MichaelNordicUser</dc:creator><description>&lt;p&gt;Great thanks, I&amp;#39;m able to step over code now without &amp;quot;jumping&amp;quot;. In one of my projects however, the run command which runs the code to the nearest break point, doesn&amp;#39;t appear to be running. Any idea why? When I click on the run command icon, and it grays out without any apparent effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call stack window does not display local values</title><link>https://devzone.nordicsemi.com/thread/89629?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 20:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2280e2d-3b12-496e-baed-606c1994f305</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try going into project settings -&amp;gt; C/C++ tab, and set optimization level to -O0. Then re-compile and flash the firmware again.
When enabling higher optimization, the compiler looks for patterns in your all of your code, squishes similar sections together, and the outcome is not as streamlined as your source code. This is the reason why debugging with high optimization may give inconsistent &amp;quot;jumps&amp;quot; in code, and the call stack may not show all variables correctly.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>