<?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>Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20432/unable-to-run-my-program-or-examples</link><description>Hi Nordic developers. 
 I am developing a custom board using 2 Rigado BMD-300, but I am unable to run my 100% operative program or examples. 
 At first time I was able to see the rigado DFU service working on thoses chips (it was working)
I used nrfjprog</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Mar 2017 08:12:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20432/unable-to-run-my-program-or-examples" /><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79666?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 08:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0244c00-2c04-462b-8412-ef41b8aecab1</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks! Could you check if it works to manually start the HFCLK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79663?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 15:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16a657c8-29ba-4e55-91a1-79288c1c5a3e</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;I tried again run in debug mode, but it get stuck when I call clock related fuctions as `ble_stack_init().&lt;/p&gt;
&lt;p&gt;The left module works fine - the right unstable&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Schematic&lt;/strong&gt;:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4762.schematic.jpg" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PCB&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20170317_5F00_103747.jpg" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Antenna soldering on Unstable module&lt;/strong&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20170317_5F00_104610.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79659?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 10:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ce4476-9f2d-4f4c-ab2b-2bfe737ceecd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In addition, could you upload a picture of the module?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79658?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 10:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d788e9f-518b-40fe-a747-3a8680c76d9f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When the device work fairly unstable. Could you run the chip in debug mode and check if something happens after 40-60 s?
Could you also check if the antenna is well connected, that there is no soldering problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79657?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2017 16:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c03ba44f-1f7c-47fd-b4b3-90f73dd1ef16</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;Yes, I am using the same clock source for all my modules. I tested the module again using diferent examples and it works on ones and not on others. Where the hex files are under 50kbs it &amp;quot;works&amp;quot;. I changed the optimization settings for my code and it work now, But fairly unstable. It works 40-60 seconds and it goes down. I tested the same files on other Rigado module and works fine.
I attached a graph using nRF connect the connection time comparing two modules, same hardware, same software.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/module_5F00_on_5F00_same_5F00_board.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79656?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2017 09:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31998b4c-a15b-4cd1-9042-7e1a1295900d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, so the examples in the SDK work on the &amp;quot;failing&amp;quot; board, but not your own application? And you are sure that the clock source has been changed to the correct one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79664?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 16:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91d21739-1480-4b64-b863-7229631f48b6</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;For testing I programmed the secure bootloader example (I changed the Board.h for the rigado module)  I wanted to know if the module was still alive and It works!! but I am &lt;strong&gt;not&lt;/strong&gt; able to run my own application on that module.&lt;/p&gt;
&lt;p&gt;I think it is so weird.&lt;/p&gt;
&lt;p&gt;update:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I programmed a quick the softdevice+bootloader to perform DFU to for test the modules.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Both modules are running the DFU secure service from the Nordic SDK examples.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;perform the DFU for the module 1 the APP works!(module that works fine )&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;perform the DFU for the module 2 the APP does not work ( module with the issue)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;erase all&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;repeat steps (1), (2), switch (4) and (3) - same result&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79665?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 15:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d0dd84-c043-4104-8725-b598d9938cf1</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;No, It does not. I noticed in debug mode it get stuck on ble_stack_init() also I noticed if I call uart_init() before the ble_stack_init() or any other clock related the debug mode get stuck there.&lt;/p&gt;
&lt;p&gt;I moved my &lt;code&gt;uart_init()&lt;/code&gt; after the &lt;code&gt;ble_stack_init()&lt;/code&gt; and it get stuck on the next clock related function in this case I got stuck now on &lt;code&gt;printf(&amp;quot;Start Program\r\n&amp;quot;)&lt;/code&gt;; -- It happens only on the affected module the others works with no issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79662?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 13:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc09e65-153a-45df-b933-5bc1c7ed4c54</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Does it work to run the chip in debug mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79661?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 12:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3935b441-7395-40c4-b8f6-0b7f82850887</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;Hi Kristin,&lt;/p&gt;
&lt;p&gt;Yes all the modules are identical, but one module get stuck there, same hardware and same software. The order as I programed each module is the following: Softdevice+Application.&lt;/p&gt;
&lt;p&gt;Could this be a defective module? The weird for me is... I am able to debugging it and when it arrives with the manufacter firmware it was working using a DFU service (I removed it to be able to reprogramming using the Nordic SDK)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79660?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 08:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4b6c5e-d30c-4ef7-94b9-3a2ed3f93e32</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;As LFCLK source, and with low power consumption in mind, I would recommend you to use NRF_CLOCK_LF_SRC_RC instead of NRF_CLOCK_LF_SRC_SYNTH. The reason is that the synthesized clock requires the HFCLK to run when it is in use (which is all the time when the softdevice is enabled).&lt;/p&gt;
&lt;p&gt;On the module that is failing, where in the ble_stack_init() does it fail? Is the chip of the same revision as the other chips?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to run my program or examples</title><link>https://devzone.nordicsemi.com/thread/79667?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 19:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d780809-7133-4557-825a-7ac82b346177</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;Hi guys. I found the &amp;quot;problem&amp;quot; It was related to the  NRF_CLOCK_LFCLKSRC I dont have an external LFCLCK because I dont use it on my software, but seems as the Softdevice uses it. I changed it to NRF_CLOCK_LF_SRC_RC or NRF_CLOCK_LF_SRC_SYNTH and all works pretty good almost the modules does start. The issue now I have is... all are identical hardware (rigado module), but one of thoses modules wont start and it get stuck on &amp;quot;ble_stack_init()&amp;quot; all the others modules works except for one that get stuck there&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>