<?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 Compiler doesn't refresh #defines when changing between Targets in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Compiler-doesn-t-refresh-defines-when-changing-between-Targets/m-p/155523#M2355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am having troubles when changing the target of a project and having defined several names to identify each one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two targets, and each one has two diferent paths (one with "{Project}\Target 1" and the other with "{Project}\Target 2"). Inside of each of this folders, exists two files with the same name ("options.h"), so each target has its own options. I have defined in one file "AT24C1024" and in the other "AT24C512".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, in a common file I have the following:&lt;/P&gt;&lt;P&gt;#if defined(AT24C1024)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_PAGE_SIZE AT24C1024_PAGESIZE&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_NUM_PAGES AT24C1024_NUMPAGES&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_DIR_LEN AT24C1024_DIR_LEN&lt;BR /&gt;#elif defined(AT24C512)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_PAGE_SIZE AT24C512_PAGESIZE&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_NUM_PAGES AT24C512_NUMPAGES&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_DIR_LEN AT24C512_DIR_LEN&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;so I can use from now MEMORY_PAGE_SIZE independently of the options.h file I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine, until I change the target. When changing the target, the correct option (either AT24C1024 or AT24C512) is highlighted, but if I do "Go to Macro declaration" for the MEMORY_PAGE_SIZE, it points to the wrong one. This is happening even if I compile the target without cleaning it before, generating invalid binary files (I have got the option "Generate Browser Data From" set to "Compiler").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is any workaround, patch or something?&lt;/P&gt;&lt;P&gt;I am using CodeWarrior Classic IDE, v. 7.2.2, but it also happened to me with v. 7.1, both of them targeting Coldfire V2 (MCF52233 derivative)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Using the pre-processor panel to define the target options instead of different files in different paths has the same behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ruben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 23:50:13 GMT</pubDate>
    <dc:creator>RValls</dc:creator>
    <dc:date>2012-04-18T23:50:13Z</dc:date>
    <item>
      <title>Compiler doesn't refresh #defines when changing between Targets</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Compiler-doesn-t-refresh-defines-when-changing-between-Targets/m-p/155523#M2355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am having troubles when changing the target of a project and having defined several names to identify each one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two targets, and each one has two diferent paths (one with "{Project}\Target 1" and the other with "{Project}\Target 2"). Inside of each of this folders, exists two files with the same name ("options.h"), so each target has its own options. I have defined in one file "AT24C1024" and in the other "AT24C512".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, in a common file I have the following:&lt;/P&gt;&lt;P&gt;#if defined(AT24C1024)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_PAGE_SIZE AT24C1024_PAGESIZE&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_NUM_PAGES AT24C1024_NUMPAGES&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_DIR_LEN AT24C1024_DIR_LEN&lt;BR /&gt;#elif defined(AT24C512)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_PAGE_SIZE AT24C512_PAGESIZE&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_NUM_PAGES AT24C512_NUMPAGES&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#define MEMORY_DIR_LEN AT24C512_DIR_LEN&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;so I can use from now MEMORY_PAGE_SIZE independently of the options.h file I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine, until I change the target. When changing the target, the correct option (either AT24C1024 or AT24C512) is highlighted, but if I do "Go to Macro declaration" for the MEMORY_PAGE_SIZE, it points to the wrong one. This is happening even if I compile the target without cleaning it before, generating invalid binary files (I have got the option "Generate Browser Data From" set to "Compiler").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is any workaround, patch or something?&lt;/P&gt;&lt;P&gt;I am using CodeWarrior Classic IDE, v. 7.2.2, but it also happened to me with v. 7.1, both of them targeting Coldfire V2 (MCF52233 derivative)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Using the pre-processor panel to define the target options instead of different files in different paths has the same behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ruben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 23:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Compiler-doesn-t-refresh-defines-when-changing-between-Targets/m-p/155523#M2355</guid>
      <dc:creator>RValls</dc:creator>
      <dc:date>2012-04-18T23:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler doesn't refresh #defines when changing between Targets</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Compiler-doesn-t-refresh-defines-when-changing-between-Targets/m-p/155524#M2356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like odd behavior there. I suggest filing a service request on this. Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" rel="nofollow" target="_self"&gt;here&lt;/A&gt; to do that. You may need to send a zip archive of a project that exhibits the problem to tech support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:22:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Compiler-doesn-t-refresh-defines-when-changing-between-Targets/m-p/155524#M2356</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2012-04-19T20:22:19Z</dc:date>
    </item>
  </channel>
</rss>

