<?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>nrf5x eclipse in linux again</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27396/nrf5x-eclipse-in-linux-again</link><description>this issue might also be one of others than myself 
 my main development environment is based on linux ... firmware, QT, android and whatever comes along ... i used to write firmware starting with the 8085, z80, 68k and for the last 10 years on arm from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Nov 2017 12:00:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27396/nrf5x-eclipse-in-linux-again" /><item><title>RE: nrf5x eclipse in linux again</title><link>https://devzone.nordicsemi.com/thread/108200?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 12:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef2e44dd-c4d4-44ff-8b36-8a7b7b9355bb</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi efiLabs. Like TY mentioned, I would give Segger Embedded Studio a try if I were you. It is free for Nordic SDK users (even for commercial products). Try the Blinky example in the 14.1 SDK quickly using SES. You should be able to add an answer &amp;amp; update the answer later, as you have not posted an answer yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5x eclipse in linux again</title><link>https://devzone.nordicsemi.com/thread/108199?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 17:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca54ec3d-54c3-4450-93c3-fcd3ae909207</guid><dc:creator>efiLabs</dc:creator><description>&lt;p&gt;the undefined reference &amp;quot; nrf_delay_ms (500) ; &amp;quot; goes away once i remove all of the system files generated and linked by the eclipse based create new C++ project, which is a good sign&lt;/p&gt;
&lt;p&gt;but now the &amp;quot;text&amp;quot; size in the project map printout during the link process went to 0 possibly caused by the, now lack of a startup file (environment) not calling &amp;quot;main&amp;quot; any longer&lt;/p&gt;
&lt;p&gt;where does nordic hide their startup environment files or what do i have to include, link to my project to get &amp;quot;so to speak&amp;quot; started&lt;/p&gt;
&lt;p&gt;yes, i read all, at least 4 or more, eclipse install tutorials of how to install eclipse and additional needed plug-ins, toolchains and utilities ... followed them where appropriate, but all only support a makefile only controlled project style&lt;/p&gt;
&lt;p&gt;i have tried it, but got a bunch of errors and the makefile is very very complex and complicated, so i decided there has to be a way to create a small and simple &amp;quot;eclipse managed project&amp;quot; just flipping one gpio bit and that&amp;#39;s it&lt;/p&gt;
&lt;p&gt;doing so i started very small and i&amp;#39;m aware that i might have to provide a lot more &amp;quot;settings -&amp;gt; compiler -&amp;gt; includes&amp;quot; entries but as far as it seems from the main.cpp file its dependencies are met ... no more undefine references and a clean compile&lt;/p&gt;
&lt;p&gt;just no startup files which would eventually call &amp;quot;main ()&amp;quot; and thereby causing to include the code portion of main.cpp&lt;/p&gt;
&lt;p&gt;well actually i found now some startup files in the nrf51 sdk 10 ... initially i just looked at all the gcc related folders, but there are some in every keil &amp;quot;arm5_no_packs&amp;quot; folder&lt;/p&gt;
&lt;p&gt;putting system_nrf51.c and arm_startup_nrf51.s into my project src directory didn&amp;#39;t solve the linker map &amp;quot;text&amp;quot; size being 0 yet, but arm_startup_nrf51.s calls SystemInit  and &amp;quot;__main&amp;quot; in the Reset_Handler&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;            LDR     R0, =SystemInit
            BLX     R0
            LDR     R0, =__main
            BX      R0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;still need to resolve the __main to &amp;quot;main ()&amp;quot; discrepancy, which should finally fix the linker map &amp;quot;text&amp;quot; size being 0 ... shouldn&amp;#39;t be the mem.ld since i had a &amp;quot;text&amp;quot; size of about 500 when i was still using the eclipse based startup environment ... maybe the C++ name mangling in main.cpp has something to do with it&lt;/p&gt;
&lt;p&gt;found out that i had the wrong startup file which was for the keil assembler and not the gcc assembler ... so for now i&amp;#39;m trying gcc_startup_nrf51.S ... also needed a capitol S as an extension to be correctly recognized&lt;/p&gt;
&lt;p&gt;doesn&amp;#39;t seem to be the right one either since it calls _start instead of main&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;LDR     R0, =SystemInit
BLX     R0
LDR     R0, =_start
BX      R0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;so the search continues&lt;/p&gt;
&lt;p&gt;also this forum seems to allow only one answer by the person who asked the question ... weird ... now i can&amp;#39;t explain the steps it takes to resolve my issue as i discover some solutions&lt;/p&gt;
&lt;p&gt;the memory mapping is also still an open question&lt;/p&gt;
&lt;p&gt;but for now i&amp;#39;ll post this and keep on trying to resolve my issues&lt;/p&gt;
&lt;p&gt;cheers efiLabs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5x eclipse in linux again</title><link>https://devzone.nordicsemi.com/thread/108198?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 08:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60edca27-517b-4d96-87e6-1bc5e2bcd9b4</guid><dc:creator>TY</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&amp;quot; nrf_delay_ms (500) ; &amp;quot; throws an undefined reference:
Have you tried adding the sources to nrf_delay() into the eclipse project manager?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I&amp;#39;ve spend days on setting eclipse up on windows, I really recommend looking into the eclipse tutorial in the Nordic Blog. Once you got that running you understand better how the eclipse plugin works.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Same as 2)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Give Segger Embbeded Studio a try (It&amp;#39;s free for Nordic Devices). I&amp;#39;ve just moved my project and I really like it so far.
You just have to open the SES Project File in one of the examples and everything runs out of the box.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>