<?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>Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8436/running-application-in-non-debug-mode---eclipse-gcc</link><description>Hello, 
 I have been able to get an application to build and run in debug mode using Eclipse GCC (Kepler) for the nRF51822. My application does not use a soft device. We are using some of the nRF files from nRF51 SKD 5.1.0. 
 I have an IAR license and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Aug 2015 15:03:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8436/running-application-in-non-debug-mode---eclipse-gcc" /><item><title>RE: Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/thread/30702?ContentTypeID=1</link><pubDate>Sun, 16 Aug 2015 15:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6a81b7-e2f0-4965-b69f-f2fd3812f748</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;the radioman stuffs are for semhosting.  If you wish to use semixosting, set the debug option for OpenOCD and in your code add the initialization.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;extern void initialise_monitor_handles(void);

int main(void) {
    initialise_monitor_handles();

    printf(&amp;quot;hello world!\n&amp;quot;);
 }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/thread/30701?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 07:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c6513b-fd59-4939-9283-fed6f45c3f3e</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;Semihosting environment requires debugger to be connected because it works as stdio input/output. So if any stdio function would be used without debugger connected the whole program has to hang. This problem relates only to GCC linking configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/thread/30703?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 19:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eef501af-351d-47e1-93b7-4fabdd9aeb83</guid><dc:creator>Jacob Portukalian</dc:creator><description>&lt;p&gt;I don&amp;#39;t know anything about Eclipse, but to get GDB to flash your chip you need to send it the &amp;#39;load&amp;#39; command.  I didn&amp;#39;t see load anywhere in your settings so I&amp;#39;m assuming that is the missing piece.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/thread/30700?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 18:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d151871-1a23-46e9-ac30-1ff33386164d</guid><dc:creator>Josh Blackann</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I took at look at your blog and I was able to get your examples to work.  Thanks.  I need to go through those more but I was able to get my code to work as well.&lt;/p&gt;
&lt;p&gt;I found that in the Properties for my project, under C/C++ Build-&amp;gt; Settings and then under the Tool Settings tabs -&amp;gt; Cross ARM C Linker - Miscellaneous-&amp;gt; Other flags I had the following:
--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Eclipse_5F00_GCC_5F002D00_cross_5F00_ARM_5F00_C_5F00_Linker_2D005F00_misc.png" alt="image description" /&gt;
I removed the --specs=rdimon.specs and I found that I could load my code and disconnect the debugger and when applying power the device would run.&lt;/p&gt;
&lt;p&gt;In the readme.txt file of  GNU Tools ARM, I found the following:&lt;/p&gt;
&lt;p&gt;Users can choose to use or not use semihosting by following instructions.
** semihosting
If you need semihosting, linking like:
$ arm-none-eabi-gcc --specs=rdimon.specs $(OTHER_LINK_OPTIONS)&lt;/p&gt;
&lt;p&gt;** non-semihosting/retarget
If you are using retarget, linking like:
$ arm-none-eabi-gcc --specs=nosys.specs $(OTHER_LINK_OPTIONS)&lt;/p&gt;
&lt;p&gt;Upon changing my code to --specs=nonsys.specs or removing that from my linker flags, I was able to then load my debug code and have the device run when power was applied.&lt;/p&gt;
&lt;p&gt;I hope this can help others if they have problems with getting a debug version working without the debugger attached.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running application in non debug mode - Eclipse GCC</title><link>https://devzone.nordicsemi.com/thread/30699?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 02:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b9e58a0-76b1-45f6-aa7e-97aa637bd49d</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have a look at &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;this blog&lt;/a&gt;.  It&amp;#39;s an Eclipse GCC setup.  There are many examples code &amp;amp; projects you can use.  It&amp;#39;s hard tell what is the problem without knowing what you have in your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>