<?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>Keil &amp;quot;skipping&amp;quot; commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6085/keil-skipping-commands</link><description>I am working on a nrf51822 UART bootloader using Keil 5.14 (though I had the same problem with 5.1). If I start with the pack example dfu_dual_bank_serial_s110_pca10028 with the 8.0sdk, and try to add some additional commands (such as setting some IO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Mar 2015 21:31:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6085/keil-skipping-commands" /><item><title>RE: Keil "skipping" commands</title><link>https://devzone.nordicsemi.com/thread/21302?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2015 21:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d3c429-3db7-4124-89ee-22390b0d4c45</guid><dc:creator>Zach</dc:creator><description>&lt;p&gt;I hadn&amp;#39;t gone all the way to Level 0 optimization mainly because then the example code wouldn&amp;#39;t fit in the allocated ROM space.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil "skipping" commands</title><link>https://devzone.nordicsemi.com/thread/21301?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2015 12:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0955cbe9-8129-421e-84ee-8e5acc74db45</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This will happen when you have high optimization set. For debugging purposes, I always recommend using -O0 to avoid compiler magic.
See this thread for more info:
&lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil "skipping" commands</title><link>https://devzone.nordicsemi.com/thread/21300?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2015 11:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c4ae013-830f-49f6-9ecd-e34790374740</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;Strange. The only other thing I can think of is if the compiler determines that the code has no effect and therefore does not compile it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dfu_start = false; No code because the location is zero initialized.&lt;/li&gt;
&lt;li&gt;app_reset = (NRF...); Set the variable to the determined value.&lt;/li&gt;
&lt;li&gt;if (app_reset)  No instruction; does it mean app_reset is always true?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you look at what nrf_gpio_ functions there might be a similar explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil "skipping" commands</title><link>https://devzone.nordicsemi.com/thread/21299?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 22:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe12851-89f9-442d-ba2b-563753eeb8b8</guid><dc:creator>Zach</dc:creator><description>&lt;p&gt;Thanks, but no, the debugger is not in simulator mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil "skipping" commands</title><link>https://devzone.nordicsemi.com/thread/21298?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 21:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac95746-3ea4-4359-94de-f0ce015ceecd</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;Are you running the debugger on target or are you using the simulator? Could be that the debugger is set to simulator, in which the IO registers don&amp;#39;t do anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>