<?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>Compiler Identifier Name in SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38013/compiler-identifier-name-in-sdk</link><description>Hello, 
 I am using SDK 15.0.0 and GNU Tools for ARM Embedded Processors to compile the Application Program. 
 I faced a problem to understand compiler abbreviation, so i didn&amp;#39;t identify the portion of instructions to be compiled based upon the compiler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Sep 2018 08:24:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38013/compiler-identifier-name-in-sdk" /><item><title>RE: Compiler Identifier Name in SDK</title><link>https://devzone.nordicsemi.com/thread/146906?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 08:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d9046b-54c5-477b-938e-1972cb92ccad</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1) These defines are used for identifying the compiler being used to build the code. The __GNUC__ is used several places in the SDK, but this is nothing that you need to think about when compiling/building examples in the SDK.&lt;br /&gt;2) I have only seen __GNUC__ used.&lt;/p&gt;
&lt;p&gt;To build an example with&amp;nbsp;GCC, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open Windows command line or Linux terminal.&lt;/li&gt;
&lt;li&gt;Navigate to the selected example folder, and then to the armgcc&amp;nbsp;project directory, for example:&amp;nbsp; &amp;lt;SDK15_InstallFolder&amp;gt;/examples/ble_peripheral/ble_app_uart/pca10040/s132/armgcc&lt;/li&gt;
&lt;li&gt;Run the&amp;nbsp;make&amp;nbsp;command in this folder. If the environment was set up correctly, the build process will start.&lt;/li&gt;
&lt;li&gt;The build process produces the HEX file inside the&amp;nbsp;_build&amp;nbsp;folder:&amp;nbsp;&amp;lt;SDK15_InstallFolder&amp;gt;/examples/ble_peripheral/ble_app_uart/pca10040/s132/armgcc/_build/nrf52832_xxaa.hex&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Remember to flash the SoftDevice when testing the BLE examples. The SoftDevice hex can be found in the folder:&amp;nbsp;&lt;span&gt;&amp;lt;SDK15_InstallFolder&amp;gt;\components\softdevice\s132\hex\s132_nrf52_6.0.0_softdevice.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html?cp=5_1_3"&gt;this page&lt;/a&gt; on how to flash the hex files using nrfjprog. If you are having problems flashing the hex files using nrfjprog you could test&amp;nbsp;&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Connect-for-Desktop"&gt;nRF Connect for Desktop&lt;/a&gt;&amp;nbsp;and use the programmer app instead.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Identifier Name in SDK</title><link>https://devzone.nordicsemi.com/thread/146775?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:471d6423-0b44-4d34-9433-79c6477ae8ee</guid><dc:creator>Mihir Tailor</dc:creator><description>&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;Thanks for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;I would like to ask few other questions regarding this topic.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;(1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;I am using GNU Tools for ARM Embedded Processors to compile the Application Program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;So for this tool, GNUC keyword used to compile particular portion of software code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;But in whole SDK, I didn&amp;#39;t found the place where GNUC keyword is defined.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;How does GNUC keyword for the compiler tool define?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt;(2) What is the importance of double underscore before and after the Keyword/Identifier Name?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Identifier Name in SDK</title><link>https://devzone.nordicsemi.com/thread/146759?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de5c352-3d8a-4df2-a702-b066993c72c0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please see the site&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.gs/dita/gs/nordic_tools.html?cp=1_0_1"&gt;Nordic tools and downloads&lt;/a&gt;&amp;nbsp;for information about what compiler and tools you need.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would recommend Segger Embedded Studio. Please see this&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.gs.ses/dita/gs/developing/intro.html?cp=1_1_0"&gt;SES getting started guide&lt;/a&gt;. We also have a SES getting started youtube series&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=YZouRE_Ol8g&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;GNUC = GCC&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ICCARM = IAR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CC_ARM= Keil&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SES_ARM = Segger Embedded Studio&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lint = &lt;a href="https://en.wikipedia.org/wiki/Lint_(software)"&gt;Lint&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>