<?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>Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16363/have-a-problem-with-compile-under-gcc</link><description>Hey everyone, I&amp;#39;m trying to compile blinky example, using ARM on Mac OS X. I use st-link 2 to flash it. So, the first when I do &amp;#39;make&amp;#39; command I&amp;#39;ve got errors 
 Makefile:220: Cannot find include folder: ../../../config/ble_app_hrs_pca10028_s130
Makefile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 12 Nov 2017 10:48:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16363/have-a-problem-with-compile-under-gcc" /><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62618?ContentTypeID=1</link><pubDate>Sun, 12 Nov 2017 10:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:042cd68c-3a2d-4fa1-8932-2a9ef128c2bd</guid><dc:creator>jdog</dc:creator><description>&lt;p&gt;You are a lifesaver. Thanks so much, this sorted out the issue for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62617?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 22:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b21d3db-d28d-429f-bfae-0ced4c082fe2</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;The&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;TARGETS           := nrf51422_xxac
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;line in the makefile is effectively just a name, it is not used to determine which files are included etc and its not a compiler pre-processor define either.&lt;/p&gt;
&lt;p&gt;The HRS peripheral example can definitely be made to work on QFAA just by changing the linker file&lt;/p&gt;
&lt;p&gt;Try SDK 11&lt;/p&gt;
&lt;p&gt;\examples\ble_peripheral\ble_app_hrs\pca10028\s130\armgcc\&lt;/p&gt;
&lt;p&gt;and change ble_app_hrs_gcc_nrf51.ld&lt;/p&gt;
&lt;p&gt;to these settings&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
  RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0x1f80
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;, and give it a try on your QFAA . It worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62616?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 10:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705391bb-d41e-4c77-8b3d-3255df248a8f</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;It seems to me SDK 12 works only with QFAC chips, cause makefile has the next line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;TARGETS          := nrf51422_xxac
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And SDK 11 too, what is the latest version of SDK for suitable for QFAA package?&lt;/p&gt;
&lt;p&gt;UPD: I just checked QFAC, it was compiled well and flashed without errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62619?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 10:01:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd9c994a-43e6-41ba-af93-d4ae3c96334f</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;QFAA = 256 flash, 16k RAM
QFAB = 128k flash 16k RAM
QFAC = 256k flash 32k RAM&lt;/p&gt;
&lt;p&gt;This information was posted recently in response to another similar question.
Its also in the nRF51822 product specification document&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why it used to work in SDK 6, I suspect the linker file was different.&lt;/p&gt;
&lt;p&gt;Just modify you linker file and reduce the RAM size by 0x4000 if you want to try to build for the QFAA&lt;/p&gt;
&lt;p&gt;Note. Some examples will not build with only 16k and you will get a linker error. e.g. The proximity example would not build for me when I changed the linker file to support QFAA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62615?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 09:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:362c9232-0290-4af2-bfe0-f763506529da</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;I didn&amp;#39;t try QFAC, will do it a lil bit later. So if I can&amp;#39;t compile QFAA by gcc, how can I compile it? Or maybe I have to change linker settings for this purposes? As far as I remember I did well it with sdk 6 and it used gcc too. Is there a document where I can find the differences between QF packages?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62614?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 06:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1eae80f-cd47-4d6f-bfb4-68c0862994ff</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;The gcc files won&amp;#39;t run on the QFAA as the linker settings are for the QFAC and the stack ends up outside  the RAM.&lt;/p&gt;
&lt;p&gt;Does it definitely not work on QFAC ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62613?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 05:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d69dd1-f798-451e-b437-f3cb62db7fde</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;Nrf51822 QFAAH0 and nrf51822 QFACA1 I tried with QFAAH0 previously&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62612?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 05:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3852707a-054c-4292-b7eb-4dbf3e83beab</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;If it works with the precompile files its a linker RAM size / location issue.&lt;/p&gt;
&lt;p&gt;Is your device nRF51822QFAA ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62611?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 05:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12b7b5bf-92a8-478e-a009-828cc2992d4f</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;Thanks for your reply. My board was flashed by s130, I checked twice. And you mentioned my board could be too old, but I can flash it with pre compiled files from hex folder which were downloaded together with SDK.&lt;/p&gt;
&lt;p&gt;I checked, I have 2 chips, the first one is QFAAH0 and the second is QFACA1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have a problem with compile under GCC</title><link>https://devzone.nordicsemi.com/thread/62610?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 23:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31d990d4-30d6-4c2c-8af7-80e10359fce7</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;The Makefile errors are a issue in SDK 12. Nordic are aware of this (as I reported it) and I believe it will get fixed in a later release of the SDK.&lt;/p&gt;
&lt;p&gt;You can ignore those errors or just remove those lines from the Makefile&lt;/p&gt;
&lt;p&gt;Re: Code not running&lt;/p&gt;
&lt;p&gt;The SDK code is targetted at the QFAC device with 32k RAM. If you are using an nRF51822QFAA it will not work&lt;/p&gt;
&lt;p&gt;This can be fixed for the Blink example by changing the linker file and reducing the RAM size by 0x4000&lt;/p&gt;
&lt;p&gt;However, the other possible cause is that your nRF51822 device is too old if its a QFAA&lt;/p&gt;
&lt;p&gt;You need to have QFAAH0 or newer to use V12 of the SDK with the S130 SD&lt;/p&gt;
&lt;p&gt;Another possible cause of problems is that you have not actually managed to upload the code or the soft device&lt;/p&gt;
&lt;p&gt;I presume you have pre-flashed the S130 V2.0 SD to the device and also you have read back the chip to confirm that the SD is installed.&lt;/p&gt;
&lt;p&gt;Then you need to do the same thing with the application code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also recommend you think about using some other method to upload, e.g. BlackMagic Probe - as I think that can be flashed to the STlink hardware&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>