<?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>Transition from SDK 15.0 to 17.2; Endless loop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76346/transition-from-sdk-15-0-to-17-2-endless-loop</link><description>Hi all, 
 I am trying transition from SDK 15.0 to 17.2 and having a branch instruction to itself (an infinite loop) which I think has something to do with the adjustment of the Flash and RAM macros. Current development on a nrf52 DK but will transition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jun 2021 22:26:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76346/transition-from-sdk-15-0-to-17-2-endless-loop" /><item><title>RE: Transition from SDK 15.0 to 17.2; Endless loop</title><link>https://devzone.nordicsemi.com/thread/315491?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 22:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5a2f35-6ecd-4afd-a803-5d4ad2116de2</guid><dc:creator>Riley_mcc</dc:creator><description>&lt;p&gt;Thank you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; This was a good lesson on compilers haha. It works now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Transition from SDK 15.0 to 17.2; Endless loop</title><link>https://devzone.nordicsemi.com/thread/315367?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af5b990e-87f3-4a76-ad0b-2abbc7861f8b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The memory settings appear to be correct. But were you building the SDK 17 version with or without compiler optmization enabled? It sounds like the code to check the &amp;#39;main_state&amp;#39; state flag in your &amp;quot;while&amp;quot; loop might be optimized away by the compiler. The compiler may do this if you define this state flag globally without the the &amp;#39;volatile&amp;#39; keyword.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;static &lt;strong&gt;volatile&lt;/strong&gt; &amp;lt;variable type&amp;gt;&amp;nbsp; main_state;&lt;/p&gt;
&lt;p&gt;Please try with &amp;#39;volatile&amp;#39; if you haven&amp;#39;t done it already.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>