<?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>nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6606/nrf51-crashes-on-startup-in-eclipse</link><description>Hi all, 
 I&amp;#39;ve spent 4 days now (!!) on getting a &amp;quot;Hello World&amp;quot; project to work in eclipse with GCC. I guess something around the startup-code is setup wrong in my very simple project but I don&amp;#39;t know what. 
 Every time I start debugging the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Apr 2015 17:49:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6606/nrf51-crashes-on-startup-in-eclipse" /><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23109?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 17:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa19070e-78b7-4de1-9f10-0716d3a959ab</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try this,  do a full flash erase first.  Then try your project again, see if it stop in Reset_Handler.  You can use the nRFProg to erase all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23105?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 14:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7455d038-1697-41c0-9f24-b3b12d9b8a9e</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;No I had not added the -g3 compiler option. But I just tried, and no difference :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23104?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 14:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3012f475-09ad-4b3d-9d4c-0a8c44ec5f05</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The debug symbols appear to be missing. Did you add the -g3 to the compiler options? &lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html"&gt;Debugging options&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23110?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 13:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a6a751-27ba-4a7c-b18f-6a42797e839a</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;I never hit the Reset_Handler if I set a breakpoint in gcc_startup_nrf51.S Please check edit in the question. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23107?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 12:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5abd0eb-0625-4de9-8269-ab3195a3740a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;It is not require to have all the stuff there.  Bare metal, what you need are CMSIS lib (has precompiled lib), add reset vector source and linker script and of course the require Path.  You can leave the rest of it out.  The startup code is compiled in the CMSIS lib.  All the projects has been upgraded to Mars.  You&amp;#39;ll need to create yours on Kepler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23112?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 11:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7198c5c4-f048-4ac2-b1c7-b6e0c75d15fc</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;What is a &amp;quot;Mon reset&amp;quot;?.. I&amp;#39;ll look at the new tutorial later today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23108?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 11:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c3d769-02ed-499d-b2c4-8c7beb07eca2</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;I am using Eclipse Kepler, and I&amp;#39;ll try setting a breakpoint in the Reset_Handler in startup_nrf.S later today. I&amp;#39;ve seen the blog, and tried it out, but I would like a bare metal project to begin with, and then build my own structure :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23111?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 11:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a210dc21-37e8-40c5-bb5c-14ad5ab4a915</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you doing a &amp;#39;mon reset&amp;#39; after you load the files, before continue?&lt;/p&gt;
&lt;p&gt;Also, we released a new tutorial for development using Eclipse now. &lt;a href="https://devzone.nordicsemi.com/tutorials/7/development-with-gcc-and-eclipse/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 crashes on startup in Eclipse?</title><link>https://devzone.nordicsemi.com/thread/23106?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2015 20:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e339d33-3342-478f-8dd3-239dd4d19074</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try to put a breakpoint at the beginning of Reset_Handler function, see if it stops there.&lt;/p&gt;
&lt;p&gt;You can also follow &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html?showComment=1429554877381"&gt;this blog&lt;/a&gt; for Eclipse GCC dev.  It has example projects you can use.  All pure Eclipse projects no make files.&lt;/p&gt;
&lt;p&gt;BTW.:  Eclipse Luna has bugs in debug mode.  It does not work properly.  You need to get Mars version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>