<?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>Debugging problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39150/debugging-problem</link><description>I have downloaded SDK software nRF5_SDK_15.2.0_9412b96. I am using segger studio as my IDE on windows. 
 I tried compiling the Example code for SAADC. There were no errors reported and code is running. 
 But, when I try to debug the control flow goes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 13:55:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39150/debugging-problem" /><item><title>RE: Debugging problem</title><link>https://devzone.nordicsemi.com/thread/151493?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 13:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65dd839-6292-474b-86a2-1addd450ac45</guid><dc:creator>Sreelakshmi</dc:creator><description>&lt;p&gt;Works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging problem</title><link>https://devzone.nordicsemi.com/thread/151490?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 13:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9759102f-1723-4791-8f59-28e8d0d38c4f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;quot;the control flow goes to different of the code and is not sequential.&amp;quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;It sounds like you have compiler optimization turned on. Try to set the build configuration to &amp;quot;Debug&amp;quot;. That will turn off optimization and make debugging easier.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c814c73213d545bbbdeda1f90b50d2ff/pastedimage1538574607553v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>