<?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>LED not blinking</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65925/led-not-blinking</link><description>for (int i = 0; i &amp;lt; LEDS_NUMBER; i++) { bsp_board_led_off(0); nrf_delay_ms(500); bsp_board_led_on(0); 
 } 
 in this code only the first command gets executed. 
 It turns off and remains in that state, if bsp_board_led_off(0) is replaced with bsp_board_led_on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Sep 2020 00:22:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65925/led-not-blinking" /><item><title>RE: LED not blinking</title><link>https://devzone.nordicsemi.com/thread/269490?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 00:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96bb2986-0658-4600-bab9-ed6ce16b38dd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you used an oscilloscope or logic analyser to see what&amp;#39;s happening on the pin?&lt;/p&gt;
&lt;p&gt;By &amp;quot;emulator&amp;quot; do you mean a pure software simulator, or a debug probe - such as a J-Link.&lt;/p&gt;
&lt;p&gt;Even with a&amp;nbsp;&lt;span&gt;pure software simulator, you should be able to&amp;nbsp;single-step - and see what you&amp;#39;re missing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But, In this day and age, there is really no reason not to be using a proper debugger with the debug facilities of the chip - even on Linux.&lt;/p&gt;
&lt;p&gt;Segger Embedded Studio (SES) runs&amp;nbsp;&lt;span&gt;on Windows, macOS, and Linux.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;try &amp;quot;unrolling&amp;quot; the loop ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ie, write out longhand the sequence of statements that actually gets executed&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED not blinking</title><link>https://devzone.nordicsemi.com/thread/269489?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 23:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1223194-4b61-4a78-9f51-574d8f659f83</guid><dc:creator>RJD</dc:creator><description>&lt;p&gt;Hello Awneil,&lt;/p&gt;
&lt;p&gt;I have not used the debugger. I use a linux emulator and gnu arm compiler.&lt;/p&gt;
&lt;p&gt;what would be a way to check the debugged code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED not blinking</title><link>https://devzone.nordicsemi.com/thread/269486?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 22:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c0d489-755e-4ff4-9552-e833de049e99</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It wouldn&amp;#39;t compile if there were!&lt;/p&gt;
&lt;p&gt;But that&amp;#39;s not what I asked.&lt;/p&gt;
&lt;p&gt;Have you used the &lt;strong&gt;debugger&lt;/strong&gt; in the running code? ie, have you stepped through the code to see what is actually happening in the chip?&lt;/p&gt;
&lt;p&gt;I think you have a logical error (omission) - what you&amp;#39;ve written isn&amp;#39;t actually (quite) what you want ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED not blinking</title><link>https://devzone.nordicsemi.com/thread/269485?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 22:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a196428-8777-4445-8e95-bfea0e947375</guid><dc:creator>RJD</dc:creator><description>&lt;p&gt;there are no errors in the code, syntactical&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED not blinking</title><link>https://devzone.nordicsemi.com/thread/269477?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 20:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eecf2f-4a36-4e96-851c-9e084b7cbd95</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So have you used the &lt;strong&gt;debugger&lt;/strong&gt; to see what&amp;#39;s actually happening ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7120._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>