<?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>GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38064/gcc-7-3-1-compiler-error-in-segger_rtt_syscalls_gcc-c</link><description>A makefile project using SDK 15.0.0 that compiled under GCC 7.2.1 no longer compiles under 7.3.1 with these errors: 
 
 ../../../../../../external/segger_rtt/SEGGER_RTT_Syscalls_GCC.c:94:19: 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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 16:54:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38064/gcc-7-3-1-compiler-error-in-segger_rtt_syscalls_gcc-c" /><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/201339?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 16:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dfb9d41-9329-4085-94c3-6231a40a136d</guid><dc:creator>hern16</dc:creator><description>&lt;p&gt;In GCC v6, the _PARAMS is define inside &lt;em&gt;gcc-arm-none-eabi-6-2017-q2-update-win32\arm-none-eabi\include\_ansi.h&lt;/em&gt; but disappeared in v7. My solution is adding this macro in&amp;nbsp;sdk_config.h&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* Add in sdk_config.h */
#ifndef _PARAMS
#define _PARAMS(paramlist)		paramlist
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/197961?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 03:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e14a3f-ed80-4834-abbb-c73a683ff186</guid><dc:creator>erriuga</dc:creator><description>&lt;p&gt;Just wanted to add that this issue is present on &amp;nbsp;nRF5_SDK_13.0.0 using GCC 7.3.1 also&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/179131?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 08:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f0f045e-a983-43d5-bb66-ab2fe6420a8e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure how this works, to be honest, maybe there are some registry settings that tell the toolchain which include paths to use? When you run the installer it is optional to set the PATH variable (checkbox for setting the PATH variable). Could you try installing the toolchain without updating PATH?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/178867?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 09:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc74d53-173b-4623-9dfd-ef2f543c15ae</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Perhaps there&amp;#39;s something wrong with my environment variables?&lt;br /&gt;I didn&amp;#39;t install the .exe file, but used the zip, because I have to use several gcc versions for different projects.&lt;br /&gt;When I track the definition for the _PARAMS macro, it points to the 5.4.1 include folder, but I can&amp;#39;t seem to point it to the 7.3.1 include path&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/178863?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 09:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b495764-533c-4ed2-82cc-922221b867cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Strange, I&amp;#39;m not getting any build errors here. I tried building the ble_app_uart example which uses RTT for logging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using the &amp;quot;7 2018-q2 update&amp;quot; from ARM?&amp;nbsp; Link: &lt;a href="https://developer.arm.com/tools-and-software/open-source-software/gnu-toolchain/gnu-rm/downloads#panel2a"&gt;https://developer.arm.com/tools-and-software/open-source-software/gnu-toolchain/gnu-rm/downloads#panel2a&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit:&amp;nbsp;It shouldn&amp;#39;t be a problem to use v.6.3.1. We used this for SDK 15.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/178857?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 09:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46c67b06-4dd2-421f-927a-ae8d750e8c4d</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Just removing the _PARAMS did not resolve the problem.&amp;nbsp; It obviously expects something instead.&lt;br /&gt;Could you explain how to change it exactly so it compiles?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/178854?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 09:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40dfabc6-44c3-48b8-ab1a-88a328eabc38</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;This also happens with SDK v15.3.0&lt;/p&gt;
&lt;p&gt;Note that the default compiler, as is configured in Makefile.windows is 7.3.1 and it exhibits the exact same compilation error as the OP found.&lt;/p&gt;
&lt;p&gt;With&amp;nbsp;&lt;span&gt;GCC 6.3 2017q2-update (6.3.1) it compiles fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is 6.3.1 fine to use with SDK v15.3.0?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/159964?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d61cde5-06fe-422c-8f1a-33f05fd17137</guid><dc:creator>grzegorz</dc:creator><description>&lt;p&gt;_PARAMS is not ANSI standard macro so it has been removed from newlilb. Just remove it from SEGGER_RTT_Syscalls_GCC.c. Hope Nordic removes it too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC 7.3.1 compiler error in SEGGER_RTT_Syscalls_GCC.c</title><link>https://devzone.nordicsemi.com/thread/146943?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 10:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29301686-9ac2-466e-aa3b-04227046c259</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for reporting this, I have created a bug report for this internally. Note that SDK 15.0.0 has been tested and verified with GCC 6.3 2017q2-update (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk/keydef/PLUGINS_ROOT/com.nordic.infocenter.sdk5.v15.0.0/index.html?cp=4_0_1"&gt;release notes&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>