<?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>nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7000/nrf51822-makefile-on-windows-ble-nano</link><description>Hi everybody, 
 I have a mistake with my makefile on windows 7 platform and Eclipse C edition.
The error is quite rapid =&amp;gt; 
 20:42:38 **** Build of configuration Default for project nrf51Demo ****
make all 
rm -rf _build
process_begin: CreateProcess</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2015 23:27:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7000/nrf51822-makefile-on-windows-ble-nano" /><item><title>RE: nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/thread/24676?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 23:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a979e38d-0cec-43a5-bd87-6b8dea573495</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;you don&amp;#39;t have a main. You&amp;#39;re only compiling the three startup files, there&amp;#39;s no file with main in it. You basically have no program code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/thread/24675?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 18:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:324d5262-1f4e-4710-b54d-011082e038bc</guid><dc:creator>joke75</dc:creator><description>&lt;p&gt;I updated the error, sry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/thread/24674?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 15:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c407cf9c-a12e-4890-97c4-0db8a7c0a0d2</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;is there a bit more context to that error message? Not quite sure what phase of compilation you&amp;#39;re in here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/thread/24673?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 15:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdef071-faf4-4dad-a61e-2d4996023b6d</guid><dc:creator>joke75</dc:creator><description>&lt;p&gt;Thanks for your answer. I don&amp;#39;t speak windows too, and i try to speak makefile =)
Bien que je parle français couramment.&lt;/p&gt;
&lt;p&gt;I modified the cmd command (view joined pieces) and i still have an error, it&amp;#39;s an other this time :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;08:01:44 **** Incremental Build of configuration Default for project nrf51Demo ****
make all 
rd /s /q _build
md  _build
&amp;quot;C:/BLE_NANO/gcc-arm-none-eabi-4_9-2015q1-20150306-win32/bin/arm-none-eabi-gcc&amp;quot; -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51  --std=gnu99   -Wall -Werror -mfloat-abi=soft -DNDEBUG -O3 -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/link&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include/gcc&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/src&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_ext&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/ble&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/device&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/libraries&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_nrf&amp;quot; -M C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/system_nrf51.c -MF &amp;quot;_build/system_nrf51.d&amp;quot; -MT _build/system_nrf51.o
&amp;quot;C:/BLE_NANO/gcc-arm-none-eabi-4_9-2015q1-20150306-win32/bin/arm-none-eabi-gcc&amp;quot; -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51  --std=gnu99   -Wall -Werror -mfloat-abi=soft -DNDEBUG -O3 -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/link&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include/gcc&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/src&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_ext&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/ble&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/device&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/libraries&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_nrf&amp;quot; -c -o _build/system_nrf51.o C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/system_nrf51.c
&amp;quot;C:/BLE_NANO/gcc-arm-none-eabi-4_9-2015q1-20150306-win32/bin/arm-none-eabi-gcc&amp;quot; -x assembler-with-cpp -DNDEBUG -O3 -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/link&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/include/gcc&amp;quot; -I&amp;quot;C:/Users/joke/Downloads/nrf51Demo-master/nrf51Demo-master/src&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_ext&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/ble&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/device&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/libraries&amp;quot; -I&amp;quot;C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/drivers_nrf&amp;quot; -c -o _build/gcc_startup_nrf51.o C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc/gcc_startup_nrf51.s
&amp;quot;C:/BLE_NANO/gcc-arm-none-eabi-4_9-2015q1-20150306-win32/bin/arm-none-eabi-gcc&amp;quot; -Xlinker -Map=_build/main_s110_.map -mcpu=cortex-m0 -mthumb -mabi=aapcs -L C:/BLE_NANO/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc/ -Tnrf51_xxaa.ld   _build/system_nrf51.o _build/gcc_startup_nrf51.o  -o _build/main_s110_.out
c:/ble_nano/gcc-arm-none-eabi-4_9-2015q1-20150306-win32/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/crt0.o: In function `_start&amp;#39;:
(.text+0x4e): undefined reference to `main&amp;#39;
collect2.exe: error: ld returned 1 exit status
make: *** [_build/main_s110_.out] Erreur 1

08:01:57 Build Finished (took 12s.258ms)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/projet_5F00_eclipse.zip"&gt;projet_eclipse.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe an error on my or Makefile ? project ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Makefile on windows (BLE nano)</title><link>https://devzone.nordicsemi.com/thread/24677?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 01:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e7cfa7-1aba-4499-bec2-467763d3c9cd</guid><dc:creator>RK</dc:creator><description>&lt;pre&gt;&lt;code&gt;rm -rf _build
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;is that a windows command? I don&amp;#39;t speak windows and I don&amp;#39;t speak French but it looks to me like that error message is telling you it can&amp;#39;t run the &amp;#39;rm&amp;#39; command because it doesn&amp;#39;t exist.&lt;/p&gt;
&lt;p&gt;You probably need to install a package of tools to install an &amp;#39;rm&amp;#39; on your system. And looking at the tutorial link you pointed to, indeed that says you need to install GNU Make and RM command-line tools. I suspect either you haven&amp;#39;t done it or you haven&amp;#39;t done in properly such that rm isn&amp;#39;t in the path. I&amp;#39;d go check that piece of the tutorial again, until you can type &amp;#39;rm&amp;#39; at the command line and get something other than a failure to find it, make&amp;#39;s not going to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>