<?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: Struct define in PE in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241174#M9350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some weird things in ProcesssorExpert.c .&lt;/P&gt;&lt;P&gt;When I put the "Test test_data" before calling the function " PE_low_level_init(); ", it compile the project correctly.&lt;/P&gt;&lt;P&gt;But when I put " Test test-data" after calling the function "PE_low_level_init();", it complains the syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 19:29:16 GMT</pubDate>
    <dc:creator>danielchai</dc:creator>
    <dc:date>2013-08-05T19:29:16Z</dc:date>
    <item>
      <title>Struct define in PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241173#M9349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used PEs generate a test project. Then I define a structure in ProcessorExpert.c&lt;/P&gt;&lt;P&gt;typedef struct {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int b;&lt;/P&gt;&lt;P&gt;}Test;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in main, I use " Test test_data;" to define it, but when I compile it, it shows:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Test&amp;nbsp; test_data;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;expression syntax error&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Any ideas about this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 18:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241173#M9349</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-08-05T18:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Struct define in PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241174#M9350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some weird things in ProcesssorExpert.c .&lt;/P&gt;&lt;P&gt;When I put the "Test test_data" before calling the function " PE_low_level_init(); ", it compile the project correctly.&lt;/P&gt;&lt;P&gt;But when I put " Test test-data" after calling the function "PE_low_level_init();", it complains the syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 19:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241174#M9350</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-08-05T19:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Struct define in PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241175#M9351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to ANSI rule, the variable defination should be placed at the beginning in the function, and before program code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 22:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Struct-define-in-PE/m-p/241175#M9351</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2013-08-05T22:53:24Z</dc:date>
    </item>
  </channel>
</rss>

