<?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>Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59903/cannot-step-through-c-code-source-only-disassembly</link><description>I cannot step through source c code, only disassembly. This only applies to custom source, such as main, that appear not in the SDK file folder but the code that resides in the same relative file folder as with all the examples, that is, 3 levels below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Apr 2020 07:01:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59903/cannot-step-through-c-code-source-only-disassembly" /><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/244325?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 07:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:332ebbfe-cd3f-4dea-bd60-2109a3df7ec7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I know, the segger jumps into disassembly, if it was not able to figure out where the source files for that part of the code section is.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case, if you are stepping one line in the same source file, then it is a bit strange that it jumps into&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;disassembly&lt;/span&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure that there are no unintentional breakpoints set in the disassembly code.&lt;/li&gt;
&lt;li&gt;Understand what lies at the address of the disassembly code where the execution jumps to.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;If the assembly instruction does not show any jump to the code section of the disassembly section, then it could be a segger IDE bug, please contact them through&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.segger.com/index.php/Board/9-SEGGER-Embedded-Studio-related/"&gt;forum&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;do understand more.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/244115?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 15:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:904488b9-a0bb-40c1-993d-abecb19c87f1</guid><dc:creator>apdobaj</dc:creator><description>&lt;p&gt;OK, please look as soon as you can, debugging is a real pain without being able to step through the c code.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/244055?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 11:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2402c26a-894d-479e-8104-05f0cd7fee5e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Anthony,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sorry for the delay, The staffing is reduced during easter due to holidays and I will be gone this week, but I will be back Tuesday next week and will look at your ticket then.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/243943?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 16:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb49537-1237-4db9-ab7a-42ee82b1baa3</guid><dc:creator>apdobaj</dc:creator><description>&lt;p&gt;Yes, of course. would it even get compiled otherwise?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/243805?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 07:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eecdc82d-ad52-4935-a339-203c40307f09</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Anthony,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you add the&amp;nbsp;&lt;span&gt;custom source (.c file) into the folder in the Project Explorer frame?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/243740?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 16:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2a26746-aff9-4c3d-bcb7-68d15bc9d441</guid><dc:creator>apdobaj</dc:creator><description>&lt;p&gt;If you mean set &amp;quot;include debug information&amp;quot; in the options dialog for the file itself the answer is yes. Also, debug level is set to 3 in the project options dialog (code generation tab). However there is no debug symbols file specified in the project options dialog (Debugging tab).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot step through c code source, only disassembly</title><link>https://devzone.nordicsemi.com/thread/243622?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 11:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1cf6804-6097-4613-b9cf-c2eeb60ae48b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you enabled &lt;strong&gt;Debug information&lt;/strong&gt; ?&lt;/p&gt;
&lt;p&gt;(should be enabled by default in a &amp;#39;&lt;strong&gt;Debug&lt;/strong&gt;&amp;#39; configuration; may well not be enabled in a &amp;#39;&lt;strong&gt;Release&lt;/strong&gt;&amp;#39; configuration)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>