<?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>CodeWarrior Development ToolsのトピックRe: MSCAN driver and PE code generation. compile error in msCANdrv.h:expected identifier before numeric constant</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337197#M1349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jennie! I knew it was define somewhere else but I can't find it! Thank you for pointing that out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2015 13:08:33 GMT</pubDate>
    <dc:creator>saya</dc:creator>
    <dc:date>2015-02-02T13:08:33Z</dc:date>
    <item>
      <title>MSCAN driver and PE code generation. compile error in msCANdrv.h:expected identifier before numeric constant</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337195#M1347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to load the msCAN driver into my project these days. I enabled Processor Expert and generated code, but when I include the msCAN drivers, I encountered this error:&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;Description&lt;/TD&gt;&lt;TD style=""&gt;Resource&lt;/TD&gt;&lt;TD style=""&gt;Path&lt;/TD&gt;&lt;TD style=""&gt;Location&lt;/TD&gt;&lt;TD style=""&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;expected identifier before numeric constant&lt;/TD&gt;&lt;TD style=""&gt;msCANdrv.h&lt;/TD&gt;&lt;TD style=""&gt;/MSCAN_KEA128/MSCAN_DRIVER/CAN_inc&lt;/TD&gt;&lt;TD style=""&gt;line 98&lt;/TD&gt;&lt;TD style=""&gt;C/C++ Problem&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested the msCAN example without PE code generation, it works without any error. Thus I am guess there are some redefine in the generated code that cause this error, but I can't find any.&lt;/P&gt;&lt;P&gt;I attached my project here, any enlightenment is appreciated!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337809"&gt;MSCAN_KEA128.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 21:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337195#M1347</guid>
      <dc:creator>saya</dc:creator>
      <dc:date>2015-01-31T21:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN driver and PE code generation. compile error in msCANdrv.h:expected identifier before numeric constant</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337196#M1348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I open your project with CW10.6. generate pe code then build. I saw "expected identifier before numeric constant" error stopped at ERR_OK line in enum definition in msCANdrv.h.&lt;/P&gt;&lt;P&gt;the problem is ERR_OK is already defined in PE_Error.h:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define ERR_OK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0x00U /*!&amp;lt; OK */&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thus if you define it again in enum format in msCANdrv.h. CW produces error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this answer your question?&amp;nbsp; if yes, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 11:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337196#M1348</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-02-02T11:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN driver and PE code generation. compile error in msCANdrv.h:expected identifier before numeric constant</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337197#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jennie! I knew it was define somewhere else but I can't find it! Thank you for pointing that out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 13:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MSCAN-driver-and-PE-code-generation-compile-error-in-msCANdrv-h/m-p/337197#M1349</guid>
      <dc:creator>saya</dc:creator>
      <dc:date>2015-02-02T13:08:33Z</dc:date>
    </item>
  </channel>
</rss>

