<?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>Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2033/eclipse-gcc-pure-project-for-dfu-bootloader-nrf51</link><description>Hi, 
 I have created Eclipse project to compile nRF51 DFU loader. This is a pure Eclipse project, no makfile. It has compile configurations for combination of Single/Dual bank and BLE/Serial. This project require installed nRF51 SDK 5.2 in the same work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 03 Aug 2014 05:40:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2033/eclipse-gcc-pure-project-for-dfu-bootloader-nrf51" /><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8724?ContentTypeID=1</link><pubDate>Sun, 03 Aug 2014 05:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c48cbb4-d5f2-4d55-a4f0-ae0821541432</guid><dc:creator>sandeep</dc:creator><description>&lt;p&gt;can you push this project to github ? it will be very, very useful to a lot of people.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8748?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 13:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83330b63-68cc-4c2e-91a9-0688f25d3f77</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;If can help, with objdmp -h $build.hex&lt;/p&gt;
&lt;p&gt;/dfu_nrf51.hex:     file format ihex&lt;/p&gt;
&lt;p&gt;Sections:
Idx Name          Size      VMA               LMA               File off  Algn
0 .sec1         0000336b  0003c800  0003c800  00000011  2&lt;strong&gt;0
CONTENTS, ALLOC, LOAD
1 .sec2         00000040  0003fb6c  0003fb6c  000090b2  2&lt;/strong&gt;0
CONTENTS, ALLOC, LOAD
2 .sec3         00000400  0003fc00  0003fc00  00009173  2&lt;strong&gt;0
CONTENTS, ALLOC, LOAD
3 .sec4         00000004  10001014  10001014  00009cd5  2&lt;/strong&gt;0
CONTENTS, ALLOC, LOAD&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8747?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 13:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f27be91b-4ab1-4db8-bced-de7c444bd623</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Only an idea : try to extract only sections from hex.&lt;/p&gt;
&lt;p&gt;objcopy -Iihex -Obinary --only-section .sec1 $Build.hex $Build.bin&lt;/p&gt;
&lt;p&gt;if section is not right try with .sec2 or .sec3.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8746?ContentTypeID=1</link><pubDate>Sun, 18 May 2014 11:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4e8d31-1ceb-403d-b7e2-9ec3e67e226b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Thanks, it is good to know.  There is however one little problem I haven&amp;#39;t figured it out.  Don&amp;#39;t know if you can find out.  When generating a .bin file, the size is over 2MB due to the relocation.  How can it be strip down to normal size.  The .bin conversion is done by adding this line&lt;/p&gt;
&lt;p&gt;arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin;&lt;/p&gt;
&lt;p&gt;To the post-build in settings/build steps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8745?ContentTypeID=1</link><pubDate>Sun, 18 May 2014 08:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c12536-dc26-4e89-86f1-23d90dbabf52</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;C99 __asm vs gnu99 asm.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve made a test and is possible to use both (C99 and gnu99) setting :&lt;/p&gt;
&lt;p&gt;Set
with gnu99  --&amp;gt;  asm
with C99    --&amp;gt; __asm&lt;/p&gt;
&lt;p&gt;the compiled file are the same in text, data, bss, dec and hex sizes.&lt;/p&gt;
&lt;p&gt;C99
Invoking: Cross ARM GNU Print Size
arm-none-eabi-size --format=berkeley &amp;quot;dfu_nrf51.elf&amp;quot;
text	   data	    bss	    dec	    hex	filename
13219	   1036	   2004	  16259	   3f83	dfu_nrf51.elf&lt;/p&gt;
&lt;p&gt;gnu99
arm-none-eabi-size --format=berkeley &amp;quot;dfu_nrf51.elf&amp;quot;
text	   data	    bss	    dec	    hex	filename
13219	   1036	   2004	  16259	   3f83	dfu_nrf51.elf&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8744?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 06:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aecb759-23d9-47be-9a6b-23b2eda45b40</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;You did an amazing job removing asm code, really nice.
-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8743?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 06:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d59e01-28d9-42e3-9cd4-09cc7c7aaf6c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;An other thing I forgot.  StartupnRF51.c works with C++. gcc_startup_nrf51.S does not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8742?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 06:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d0080d-1f3a-4817-9b5c-c540bc35e7e2</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I forgot your question about using the gcc_startup_nrf51.S.  Yes you can use it.  You will need to use the linker script from the SDK too.  I made few changes in the linker script for my startup code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8723?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 06:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11dba6b0-f3c6-42ca-a0a6-faf919f1a7a5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The compiler_abstraction.h is not my code.  It&amp;#39;s the SDK and there is an error in that file.  Then inline assembly in GNU compile is __asm(...) not asm(...).  You need to change it.&lt;/p&gt;
&lt;p&gt;The StartupnRF51.c is not a translation of the .s file.  It was ported form my other ARM processor.  I write multi-platform code.  It does not depend on the SDK.  It is generic for GNU compiler and ARM processors.  Now a day writing code in assembly is only for special optimization.  Otherwise not recommended.  It is a maintenance nightmare.&lt;/p&gt;
&lt;p&gt;The dfu code is still all Nordic code.  I only make few changes to make it compiles with GNU.  mainly asm stuff.  So yes App needs to start at 0x14000.  No change to that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8741?ContentTypeID=1</link><pubDate>Sat, 17 May 2014 04:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:490d47d4-7284-4f7b-a4b2-c0ca3f085205</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;C99 or gnu99 ?&lt;/p&gt;
&lt;p&gt;Hi Nguyen, there in a strange behavior  in your code, infact, if i compile with -std=gnu99 all goes ok but if I set -std=C99 (your preferred choice and , as you said, needed by SDK to be compiled) these errors was raised :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:73:30: error: expected &amp;#39;=&amp;#39;, &amp;#39;,&amp;#39;, &amp;#39;;&amp;#39;, &amp;#39;asm&amp;#39; or &amp;#39;__attribute__&amp;#39; before &amp;#39;asm&amp;#39;

/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:73:30: warning: implicit declaration of function &amp;#39;asm&amp;#39; [-Wimplicit-function-declaration]

/nrf51822/Include/compiler_abstraction.h:74:16: error: &amp;#39;sp&amp;#39; undeclared (first use in this function)

/nrf51822/Include/compiler_abstraction.h:74:16: error: &amp;#39;sp&amp;#39; undeclared (first use in this function)


&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;More interesting is the fact you do not use the asm file &lt;code&gt;gcc_startup_nrf51.S&lt;/code&gt; but a translation from asm to c file &lt;code&gt;StartupnRF51.c&lt;/code&gt; .&lt;/p&gt;
&lt;p&gt;Can you tell me more about ? Is it possible to compile using using the original asm file or changes are  needed ?&lt;/p&gt;
&lt;p&gt;Does this file be compatible with all SDK (old and news) or must be rewritten ad hoc for every SDK?&lt;/p&gt;
&lt;p&gt;If I would compile hrf example to be used with boot loader generated from you eclipse project I need to change specific address memory flashing with jlinkexe (os x version) or the firmware starts at the same address (0x014000) ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8740?ContentTypeID=1</link><pubDate>Fri, 16 May 2014 17:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347080a6-10c8-417c-9fe8-564687c0952e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You only need to set the include path to the location of pstorage_platform.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8737?ContentTypeID=1</link><pubDate>Fri, 16 May 2014 17:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e61519cb-4547-4ca0-84be-ea5cfc9cb1dc</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Yes, I did change it.  It is set with the project settings.  The SDK require C99 to compile. It is also my preferred settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8739?ContentTypeID=1</link><pubDate>Fri, 16 May 2014 07:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37267d1e-6c1d-4c7a-9b5e-ec5018327329</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Try first to change language standard using original pastorage.h&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8736?ContentTypeID=1</link><pubDate>Fri, 16 May 2014 07:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dbc85e6-d45f-4949-b7f0-ca71ae98f33e</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi,
I remember a similar issue, have you changed language standard from -std =C99 to -std=gnu99 ?
You can do it in Settings.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8729?ContentTypeID=1</link><pubDate>Fri, 16 May 2014 06:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3ad727a-f50a-48ce-9e21-ba2f7281a45d</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Thanks Nguyen, now it works.&lt;/p&gt;
&lt;p&gt;Invoking: Cross ARM GNU Print Size
arm-none-eabi-size --format=berkeley &amp;quot;dfu_nrf51.elf&amp;quot;
text	   data	    bss	    dec	    hex	filename
13219	   1036	   2004	  16259	   3f83	dfu_nrf51.elf
Finished building: dfu_nrf51.siz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8738?ContentTypeID=1</link><pubDate>Wed, 14 May 2014 18:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6c9d7f1-3a88-4d36-b199-d6e5d0c56468</guid><dc:creator>Rasit Eskicioglu</dc:creator><description>&lt;p&gt;Got it, thanks!..&lt;/p&gt;
&lt;p&gt;Now, the build stops with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Building file: /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/pstorage.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g3 -DPSTORAGE_RAW_ACCESS -DNRF51 -DDEBUG_NRF_USER -DNRF51822_QFAA_GC -DBLE_STACK_SUPPORT_REQD -DBOARD_PCA10001 -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include&amp;quot; -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include/ble_transport&amp;quot; -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/sd_common -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/ble -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/s110 -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/ble/ble_services -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/app_common -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/gcc -std=c99 -MMD -MP -MF&amp;quot;src/nrf51_sdk/pstorage.d&amp;quot; -MT&amp;quot;src/nrf51_sdk/pstorage.o&amp;quot; -c -o &amp;quot;src/nrf51_sdk/pstorage.o&amp;quot; &amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/pstorage.c&amp;quot;
In file included from /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/pstorage.c:13:0:
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/app_common/pstorage.h:28:31: fatal error: pstorage_platform.h: No such file or directory
compilation terminated.
make: *** [src/nrf51_sdk/pstorage.o] Error 1

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I guess, it depends which soft devise I&amp;#39;m using, or no?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8735?ContentTypeID=1</link><pubDate>Wed, 14 May 2014 06:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c586282-9a73-45b2-98fd-af1adfbfeeaa</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;in compiler_abstraction.h file, at line 73.  replace asm(&amp;quot;sp&amp;quot;) with __asm(&amp;quot;sp&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8734?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 21:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01e78260-e004-4c48-969e-523baa590c91</guid><dc:creator>Rasit Eskicioglu</dc:creator><description>&lt;p&gt;Thanks, the problem is solved... However, I now get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Building file: /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g3 -DPSTORAGE_RAW_ACCESS -DNRF51 -DDEBUG_NRF_USER -DNRF51822_QFAA_GC -DBLE_STACK_SUPPORT_REQD -DBOARD_PCA10001 -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include&amp;quot; -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include/ble_transport&amp;quot; -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/sd_common -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/ble -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/s110 -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/ble/ble_services -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/app_common -I/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/gcc -std=c99 -MMD -MP -MF&amp;quot;src/nrf51_sdk/app_gpiote.d&amp;quot; -MT&amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; -c -o &amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; &amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c&amp;quot;
In file included from /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/nrf.h:44:0,
                 from /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/app_common/app_gpiote.h:43,
                 from /Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c:13:
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/compiler_abstraction.h: In function &amp;#39;gcc_current_sp&amp;#39;:
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:73:30: error: expected &amp;#39;=&amp;#39;, &amp;#39;,&amp;#39;, &amp;#39;;&amp;#39;, &amp;#39;asm&amp;#39; or &amp;#39;__attribute__&amp;#39; before &amp;#39;asm&amp;#39;
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:73:30: warning: implicit declaration of function &amp;#39;asm&amp;#39; [-Wimplicit-function-declaration]
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:74:16: error: &amp;#39;sp&amp;#39; undeclared (first use in this function)
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Include/compiler_abstraction.h:74:16: note: each undeclared identifier is reported only once for each function it appears in
make: *** [src/nrf51_sdk/app_gpiote.o] Error 1

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;what am I missing this time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8733?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 20:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9105ff2-d0c0-41aa-b0ad-60a95e43fd3c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;you should have these include path set like this for the SDK&lt;/p&gt;
&lt;p&gt;&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/ble/ble_services}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/sd_common}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/ble}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/s110}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/app_common}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include/gcc}&amp;quot;
&amp;quot;${workspace_loc:/nrf51_sdk/nrf51822/Include}&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8732?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 20:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27167b6e-40c1-494c-bb95-0cdf42c86b03</guid><dc:creator>Rasit Eskicioglu</dc:creator><description>&lt;p&gt;Thanks for the prompt reply. I did exactly what you recommended. Here is the directory structure:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
raspberry:workspace rasit$ ls -la
total 16
drwxr-xr-x   8 rasit  staff   272 12 May 21:25 .
drwx------+ 12 rasit  staff   408 12 May 21:25 ..
-rw-r--r--@  1 rasit  staff  6148 12 May 21:49 .DS_Store
drwxr-xr-x   7 rasit  staff   238 12 May 20:42 .metadata
drwxr-xr-x@ 13 rasit  staff   442 12 May 21:08 Common
drwxr-xr-x   3 rasit  staff   102 12 May 20:42 RemoteSystemsTempFiles
drwxr-xr-x@ 13 rasit  staff   442 12 May 21:54 dfu_nrf51
drwx------@  6 rasit  staff   204 12 May 21:12 nrf51_sdk
raspberry:workspace rasit$ 
raspberry:workspace rasit$ ls -ls nrf51_sdk/
total 0
0 drwxr-xr-x@ 9 rasit  staff  306 12 May 21:11 Documentation
0 drwxr-xr-x@ 6 rasit  staff  204 12 May 21:11 nrf51422
0 drwxr-xr-x@ 8 rasit  staff  272 12 May 21:49 nrf51822

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the missing header files is in app_common directory, under .nrf51822/Include.&lt;/p&gt;
&lt;p&gt;The properties-&amp;gt;c/C++ General-&amp;gt;Paths and Symbols--Languages-&amp;gt;GNU C&lt;/p&gt;
&lt;p&gt;has the following Include directories:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
/${ProjName}/src/include
/${ProjName}/src/include/ble_transport
/nrf51sdk_/nrf51822/Include/app_common
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;m not sure what am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8731?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 20:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adabbbb4-5bad-40d0-9d5a-6b5717e58bd9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;you need to change the include path for the SDK to the location where you put it.  I put the Nordic SDK nrf51822 in nrf51_sdk.  When compiler complains about a .h file, check for the include path of the C &amp;amp; C++ settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8730?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 19:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90ec4072-db11-4d6b-9418-f6a43bf9b224</guid><dc:creator>Rasit Eskicioglu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I followed your steps above and installed eclipse, arm cross compiler, etc. I also added the directories to my workplace. However, I&amp;#39;m getting the following when I try to build any of the targets:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -DPSTORAGE_RAW_ACCESS -DNRF51 -DDEBUG_NRF_USER -DNRF51822_QFAA_GC -DBLE_STACK_SUPPORT_REQD -DBOARD_PCA10001 -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include&amp;quot; -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include/ble_transport&amp;quot; -std=c99 -MMD -MP -MF&amp;quot;src/nrf51_sdk/app_gpiote.d&amp;quot; -MT&amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; -c -o &amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; &amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c&amp;quot;
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c:13:24: fatal error: app_gpiote.h: No such file or directory
compilation terminated.
make: *** [src/nrf51_sdk/app_gpiote.o] Error 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sorry for the repeat. I could not delete my comment above;-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8722?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 19:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1b0698-5bd5-4c66-943a-61f4e1e9dc0d</guid><dc:creator>Rasit Eskicioglu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I followed your steps above and installed eclipse, arm cross compiler, etc. I also added the directories to my workplace. However, I&amp;#39;m getting the following when I try to build and of the targets:
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g3 -DPSTORAGE_RAW_ACCESS -DNRF51 -DDEBUG_NRF_USER -DNRF51822_QFAA_GC -DBLE_STACK_SUPPORT_REQD -DBOARD_PCA10001 -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include&amp;quot; -I&amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/dfu_nrf51/src/include/ble_transport&amp;quot; -std=c99 -MMD -MP -MF&amp;quot;src/nrf51_sdk/app_gpiote.d&amp;quot; -MT&amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; -c -o &amp;quot;src/nrf51_sdk/app_gpiote.o&amp;quot; &amp;quot;/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c&amp;quot;
/Volumes/UsersX9/rasit/Documents/workspace/nrf51_sdk/nrf51822/Source/app_common/app_gpiote.c:13:24: fatal error: app_gpiote.h: No such file or directory
compilation terminated.
make: *** [src/nrf51_sdk/app_gpiote.o] Error 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8728?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 17:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dbcd6f7-fff1-47a8-85a5-3ff588a7d3f6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The bootloader needs to be compiled with optimization for space.  Compile in debug by default has no optimization.  Try to compile it in release mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse GCC pure project for DFU Bootloader nRF51</title><link>https://devzone.nordicsemi.com/thread/8727?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 17:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb8dea88-f0c6-482d-bdb5-35f2c47e3b79</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Setting/linker/general is selected.
I&amp;#39;m going crazy.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>