<?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>Can&amp;#39;t compile NRF52 examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21366/can-t-compile-nrf52-examples</link><description>Following this tutorial : devzone.nordicsemi.com/.../ 
 I type &amp;#39;make&amp;#39; and it compiles for a bit and then I get a bunch of errors that say this: 
 [278]: *** [_build/nrf52840_xxaa.out] Error 2
make[277]: *** [_build/nrf52840_xxaa.out] Error 2
make</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jun 2018 03:31:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21366/can-t-compile-nrf52-examples" /><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/136638?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 03:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08d96613-d9ee-4692-a226-f8c1eb6d52ef</guid><dc:creator>paul0208</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Success now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83714?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 17:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfbfcfde-ef67-4b0a-bfc8-65587fcb83be</guid><dc:creator>zolotiyeruki</dc:creator><description>&lt;p&gt;I (think I) fixed it, by adding the following line to the makefile:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SHELL=cmd.exe
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83711?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 16:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14ee4012-c952-4c54-b641-e582bcdf750e</guid><dc:creator>zolotiyeruki</dc:creator><description>&lt;p&gt;I&amp;#39;m hitting the same problem.  Here&amp;#39;s the full error:&lt;/p&gt;
&lt;p&gt;../../../../../../components/toolchain/gcc/Makefile.common:26: *** Cannot find: &amp;quot;C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q1-update/bin/arm-none-eabi-gcc&amp;quot;..  Stop.
The failing line in the makefile is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(if $(shell $(CC) --version),,$(info Cannot find: $(CC).) \
  $(info Please set values in: &amp;quot;$(abspath $(TOOLCHAIN_CONFIG_FILE))&amp;quot;) \
  $(info according to the actual configuration of your system.) \
  $(error Cannot continue))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I thought it might be an issue with spaces in the path, but a different location didn&amp;#39;t help.  Am I missing the &lt;em&gt;shell&lt;/em&gt;?  When I commented out the lines above, I got a different error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;      0 [main] sh 32748 sync_with_child: child 9328(0x3AF4) died before initialization with status code )xC0000142
   3027 [main] sh 32748 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83712?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 14:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee509745-e2ff-49df-b4b5-f266fcc9df1f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I just downloaded the latest GNU toolchain, Version 6-2017-q1-update and I did not have any issues compiling the SDK examples. I have posted the contents of my Makefile.windows below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update
GNU_VERSION := 6.3.1
GNU_PREFIX := arm-none-eabi
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83713?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 05:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:befa9826-317d-43c8-a241-eaf6936e39ff</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;did that issue solved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83710?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 17:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de933f67-d5f8-4c35-bc3b-8a29c004a7f3</guid><dc:creator>spet</dc:creator><description>&lt;p&gt;same issue it compiles up to system_nrf52.c then says &amp;quot;Makefile.common:25: *** cannot continue. Stop.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83709?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 17:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6484c731-e07d-40ac-97e1-7f6e8e9aab5f</guid><dc:creator>spet</dc:creator><description>&lt;p&gt;sdk 13.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83708?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 16:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ada937e-db57-484b-b854-a8b7f2f2b115</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;which SDk you ar using&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83707?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 16:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cef9f61-f8c4-4ee9-ba9b-2dfaf1eba7ee</guid><dc:creator>spet</dc:creator><description>&lt;p&gt;it is. It wouldn&amp;#39;t start compiling otherwise&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83706?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 16:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73e0129-552a-403a-bd11-06cffbf39b9c</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;make sure that in your SDK components/toolchain/gcc/makefile.posix, makefile.windows&lt;/p&gt;
&lt;p&gt;your installed gcc-arm-none-eabi path and version is correct like this below.&lt;/p&gt;
&lt;p&gt;GNU_INSTALL_ROOT := /Users/XXXXXXX/Desktop/gcc-arm-none-eabi-5_4-2016q2&lt;/p&gt;
&lt;p&gt;GNU_VERSION := 5.4.2&lt;/p&gt;
&lt;p&gt;GNU_PREFIX := arm-none-eabi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83705?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 16:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed57dea4-7a5e-4129-b115-19ddf356aa64</guid><dc:creator>spet</dc:creator><description>&lt;p&gt;Using windows. Not using eclipse this is just the basic step of using make to compile an example via the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't compile NRF52 examples</title><link>https://devzone.nordicsemi.com/thread/83704?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 16:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c327a05-d55a-4aca-8c1a-22a784674a74</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;hey, did you install GCC ARM Toolchain in your system and also which version of eclipse your using and also which SDK your using. make sure that your  gcc tool chain path in your make file is correct.&lt;/p&gt;
&lt;p&gt;otherwise, follow this&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gnuarmeclipse.github.io/windows-build-tools/"&gt;gnuarmeclipse.github.io/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;like&lt;/p&gt;
&lt;p&gt;TEMPLATE_PATH = ../../../../../components/toolchain/gcc&lt;/p&gt;
&lt;p&gt;ifeq ($(OS),Windows_NT)&lt;/p&gt;
&lt;p&gt;include $(TEMPLATE_PATH)/Makefile.windows&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;include $(TEMPLATE_PATH)/Makefile.posix&lt;/p&gt;
&lt;p&gt;endif&lt;/p&gt;
&lt;p&gt;and also make sure that in your SDK components/toolchain/gcc/makefile.posix&lt;/p&gt;
&lt;p&gt;your installed gcc-arm-none-eabi path and version is correct like this below.&lt;/p&gt;
&lt;p&gt;GNU_INSTALL_ROOT := /Users/XXXXXXX/Desktop/gcc-arm-none-eabi-5_4-2016q2&lt;/p&gt;
&lt;p&gt;GNU_VERSION := 5.4.2&lt;/p&gt;
&lt;p&gt;GNU_PREFIX := arm-none-eabi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>