<?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>Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9756/keil-fake-error-__static_inline</link><description>My project is compiling and working, but there is this very annoying issue when Keil thinks there is a problem with __STATIC_INLINE in the file cmsis_armcc.h.
It indicates an error throughout the include chain and it makes its way up to the top main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2015 10:17:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9756/keil-fake-error-__static_inline" /><item><title>RE: Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/thread/36146?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 10:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf30e3c-d90b-4e1b-a119-da6f01340ea1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hmm .. seems some dependency change happened over the upgrade, Can&amp;#39;t find anything in the release notes of CMSIS. Better to stick with 4.1.0 for now ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/thread/36145?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 13:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b31198-fa6f-4533-9a8a-55094364fb80</guid><dc:creator>Krisztian Szucher</dc:creator><description>&lt;p&gt;I had the latest (4.4.0) CMSIS installed.
I tried what happens when I downgrade to 4.1.0 and indeed this problem was not present with that version. I then upgraded back to 4.4.0 and the problem was present again.
So unless there&amp;#39;s a quick trick to solve this, I guess I should go with a lower version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/thread/36144?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 11:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d316c3-5599-4fca-bbbf-82bee954d126</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;which version of CMSIS did you install? I have installed CMSIS core 4.1.0 and i do not see any CMSIS_armcc.h included inside core_cmInstr.h file.&lt;/p&gt;
&lt;p&gt;Also the __STATIC and INLINE declaration inside core_cmo.h file are done before core_cmInstr.h file is include, so they should be visible to all the include chain after that. Not sure why you get this error. Is it possible that you edited any files for debugging and something has changed? have you tried uninstalling CMSIS and re-installing it again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/thread/36143?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 08:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da261233-6d65-4679-8ffb-83d18e54b912</guid><dc:creator>Krisztian Szucher</dc:creator><description>&lt;p&gt;this is the include chain:
1 nrf51.h
2 core_cm0.h
3 core_cmInstr.h
4 cmsis_armcc.h&lt;/p&gt;
&lt;p&gt;this is the error message at cmsis_armcc.h:&lt;/p&gt;
&lt;p&gt;&amp;quot;
error: unknown type name &amp;#39;__STATIC_INLINE&amp;#39;
error: expected &amp;#39;;&amp;#39; after top level declarator
&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil fake error __STATIC_INLINE</title><link>https://devzone.nordicsemi.com/thread/36142?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 06:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f954b76f-b628-4c15-a292-b5f920b28397</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;can you post that error message here,  These defines are defined in core_cm0.h file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if   defined ( __CC_ARM )
  #define __ASM            __asm                                      /*!&amp;lt; asm keyword for ARM Compiler          */
  #define __INLINE         __inline                                   /*!&amp;lt; inline keyword for ARM Compiler       */
  #define __STATIC_INLINE  static __inline
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>