<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CMSIS Issue in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561392#M16296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Fri Sep 12 05:55:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a macro. So you need to use the cmsis core header file in the source files that use the macro.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:53:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:53:24Z</dc:date>
    <item>
      <title>CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561391#M16295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tom Barrett on Fri Sep 12 05:06:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When trying to use some of the "intrinsic" functions that deal with LPC122x registers such as __enable_irq or __get_MSP, I am running into a linker error that tells me, for example, 'undefined reference to `__get_MSP'. The result is the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;collect2.exe: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [Basic-Unit_Testing_SL.axf] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have referenced a CMSIS project, CMSIS_CORE_LPC12xx, in the workspace and all code in the main project compiles without errors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point to what I am doing wrong wrt CMSIS that may be causing this error? Appreciate any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561391#M16295</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561392#M16296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Fri Sep 12 05:55:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a macro. So you need to use the cmsis core header file in the source files that use the macro.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561392#M16296</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561393#M16297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tom Barrett on Fri Sep 12 10:28:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, TheFallGuy, for the reply. I know they are macros and are defined in "core_cmFunc.h". But if I include that header file in main(), things get even worse with an error such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\Tom\Documents\LPCXpresso_7.3.0_186\New_Workspace\CMSIS_CORE_LPC12xx\inc/core_cmFunc.h:340:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Those errors appear for every one of the macro definitions on "core_cmFunc.h" whether or not the function is referenced in my source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also included the header file "system_LPC122x.h" but the error remains. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other tips? I do appreciate the help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561393#M16297</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561394#M16298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Fri Sep 12 10:51:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Post your actual code, or better still project that actually triggers the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fhow-importexport-projects" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/how-importexport-projects&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following (linked to the CMSIS_CORE_LPC12xx library project from the LPCXpresso 7 examples) works fine here…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#include "LPC122x.h"

int main(void) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();

&amp;nbsp;&amp;nbsp;&amp;nbsp; // Force the counter to be placed into memory
&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile static int i = 0 ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter an infinite loop, just incrementing a counter
&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561394#M16298</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561395#M16299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tom Barrett on Fri Sep 12 12:26:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem found. Some inherited code had defined some of the macros and the compiler did not report it as such. Cleaned them up and linkage completed as desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561395#M16299</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS Issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561396#M16300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by evilakki on Tue Dec 16 21:54:05 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Tom I am having similar problem with the macros. Can you please describe, which inherited code is interfering and how did you clean them up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CMSIS-Issue/m-p/561396#M16300</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:53:26Z</dc:date>
    </item>
  </channel>
</rss>

