<?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>s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12347/s110-firmware-working-only-in-debug-mode</link><description>I&amp;#39;m struggling to understand this strange issue. I have a firmware based on S110 SD on nRf51822-QFABA0, this firmware is still based on version 7.1.0. The application is based on a application timer firing every 1s. The timer handler performs some GPIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2016 16:17:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12347/s110-firmware-working-only-in-debug-mode" /><item><title>RE: s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/thread/46705?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:806a238e-980a-4b0c-834f-5903112c926d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You are running a revision 1 chip according to your information and the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html?cp=2_0_1"&gt;compatibility matrix&lt;/a&gt;. This may not work with SoftDevice 7.1.0, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51422_nRF51822_ic_rev_sdk_%20sd_comp_matrix.html?cp=2_0_3"&gt;here&lt;/a&gt;, and may be the cause of your issues. I would recommend to get hold of a revision 3 chip instead, or else you will have to roll back to an earlier SD + SDK. You are also running the 128KB flash and 16KB RAM version, are you sure you have set the correct memory sizes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/thread/46704?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 15:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:141184b5-e8be-4d7a-a639-f9f601e23e48</guid><dc:creator>George</dc:creator><description>&lt;p&gt;one solution that does seem to work is adding an nrf_delay_ms(20) right after advertising_start(). advertising interval is set to 2s and timeout to 1s so I am assuming that the 20ms delay keeps the firmware in active mode long enough for the advert to be transmitted. If I simply reduce the delay it starts hanging up again. So definitely the issues is caused by advertising during sleep. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/thread/46703?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 10:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d5e5db-e34d-49ce-8a6c-7176fb4d4446</guid><dc:creator>George</dc:creator><description>&lt;p&gt;Actually it seems I was wrong that reducing compiler optimization solved the issue. Same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/thread/46702?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 12:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b4e70e-7bb1-4f10-a532-9368cc496ed3</guid><dc:creator>George</dc:creator><description>&lt;p&gt;Hi Ole, one thing I have noticed today is that reducing the compiler optimization seems to solve the problem. Not sure if it makes it happen less often or solves it completely but so far it has been stable. However I would still prefer to solve the root cause of the issue. I will try to determine if it really is a hard fault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s110 firmware working only in debug mode</title><link>https://devzone.nordicsemi.com/thread/46701?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 12:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87a02f3-6208-45ae-8962-37ca394aded2</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Seems strange. Can you check if it is actually a hardfault or something else, see for example this: &lt;a href="https://devzone.nordicsemi.com/blogs/821/an-introduction-to-error-handling-in-nrf5-projects/."&gt;devzone.nordicsemi.com/.../.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The added 1mA is because the chip is in debug mode. Resetting the chip will start it in &amp;quot;normal&amp;quot; mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>