<?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>Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21197/blink-an-led-in-emulated-system-off</link><description>Hi,
I would like to be able to provide a visual indicator such as a blinking LED when the chip is in the Emulated System OFF mode. Note that if the chip is in DEBUG mode and a System OFF command is issued, then the chip will go into emulated System OFF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Apr 2017 09:21:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21197/blink-an-led-in-emulated-system-off" /><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82944?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2f6b18-bb50-4086-b20c-04b534b3c6e3</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Kmoto&lt;/p&gt;
&lt;p&gt;I apologize for the late reply, we had holidays here all of last week.&lt;/p&gt;
&lt;p&gt;I have dug further into this, and it seems it is related to the same problem as in the link I provided you earlier.&lt;/p&gt;
&lt;p&gt;I have tested with both the old nrf_delay.h file that comes with SDK9, and the new one supplied in the link I provided. With the old file the chip will eventually enter a hardfault, but with the new file I have successfully blinked a led while in emulated system off, using both nrf_delay_ms and nrf_delay_us.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82946?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 18:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd646aab-39ce-4516-a376-b19e89823752</guid><dc:creator>kmoto</dc:creator><description>&lt;p&gt;Hi Jorn, I am using nrf51822, and SDK version 9 with armgcc, not an IDE.  Your link does not seem to be the same problem because I am using nrf_delay_ms() in other parts of the code and it works fine in those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82943?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 13:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:907b17b8-fc67-4b62-8c07-3aa2eecd341c</guid><dc:creator>kmoto</dc:creator><description>&lt;p&gt;Also, I am not using an IDE. I am using armgcc with a Makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82949?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 06:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef09676-0c3d-4ef6-9541-aa1bbf6f5780</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;What IDE are you programming with? Please see this link, and check if that solves your problem &lt;a href="https://devzone.nordicsemi.com/question/126260/iar-810-produce-bugs-when-compiling-nrf_delay_us/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82948?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 03:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5e62c33-3d10-4cc5-8ede-a163a0548189</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well if the GPIOs are accessible and the processor is running the nrf_delay_ms will work, so you need to work out why it&amp;#39;s not. It doesn&amp;#39;t &lt;em&gt;do&lt;/em&gt; anything except execute no-ops in a loop so there&amp;#39;s no way it can&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82947?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 02:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5864cdc-ff53-4e66-ae05-eb90e916ac3d</guid><dc:creator>kmoto</dc:creator><description>&lt;p&gt;Actually I can still turn on the LED right after the System OFF command (or turn it off if it was previously on). So either GPIO is still working or there is a delay in activation of the System OFF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blink an LED in Emulated System OFF ??</title><link>https://devzone.nordicsemi.com/thread/82945?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 02:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981cd194-2f2d-4a9e-a267-128e1bc71d15</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Nowhere in that list does it say that GPIO is active in emulated system off mode so nrf_delay_ms will work but you may not be able to actually change the state of an IO line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>