<?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: Include command missing after usage of device init in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164670#M2941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case it looks like the feature has been added after V5.1 to the tool chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to either upgrade to the latest release (V6.2) or if you need to stick to V5.1, disconnect your project from Processor Expert &amp;nbsp;as explained by bigmac.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2009 16:53:30 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-03-23T16:53:30Z</dc:date>
    <item>
      <title>Include command missing after usage of device init</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164666#M2937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using the device initialization often in my project since some things aren't clear up to now, so changes have to be done.&lt;/P&gt;&lt;P&gt;Since the Interrupt-handlers are in the MCUinit.asm and I am using names out of my personal include-file there, I have to add the "INCLUDE ....inc" command at the beginning of the MCUinit.asm. Each time I change something with the device initialization tool and let it generate the code, my INCLUDE-command is away . Is there a workaround to keep it?&lt;/P&gt;&lt;P&gt;Sorry if this is a dumb question!&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 01:57:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164666#M2937</guid>
      <dc:creator>Ralph</dc:creator>
      <dc:date>2009-03-20T01:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Include command missing after usage of device init</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164667#M2938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ralph,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume that the PE device initialisation tool presupposes the use of standard register names, as defined within the CW include file for the device. If you are attempting to alter these labels within the initialisation code, it is probably not valid to use PE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One possible alternative approach might be to rename the file to MCUInit.inc. Then within your main file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INCLUDE "special.inc"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INCLUDE "MCUInit.inc"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;; Other code&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the contents of both files would have visibility to the main file, and the file MCUInit.inc would not be separately assembled. Actually, this is the approach required for an absolute assembly project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another alternative for the interrupt handlers might be to simply JSR to sub-routines within another file, which would contain the "real" ISR code. Or alternatively, entirely eliminate the ISR code from MCUInit.asm for those interrupts that need the special include.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thought!&amp;nbsp; Presumably the ISR code is at a position within the file that does not get over-written by the initialisation tool.&amp;nbsp; The solution may be to incorporate the INCLUDE directive just prior to the first ISR, where hopefully it will not be over-written.&amp;nbsp; The contents of the include will then be visible to the ISRs (but not to the preceeding code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by bigmac on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;07:07 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 02:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164667#M2938</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-03-20T02:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Include command missing after usage of device init</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164668#M2939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you are using CodeWarrior for MCU V6.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside of MCUInit.inc you can add your include statement between the comments:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; User declarations and definitions&lt;BR /&gt;;&amp;nbsp;&amp;nbsp; Code, declarations and definitions here will be preserved during code generation&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; End of user declarations and definitions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Device Initialization will not change anything between these comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 15:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164668#M2939</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-20T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Include command missing after usage of device init</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164669#M2940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@CrazyCat: Sorry I forgot to write! I am using V5.1 (GT16A) at the moment. THere your named lines do not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It starts with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;IFNDEF __xxxx_xxx_QFP_INC&lt;BR /&gt;__xxxx_xxx_QFP_INC: EQU&amp;nbsp; 1&lt;BR /&gt;&lt;BR /&gt;; Include shared modules, which are used for whole project&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XREF&amp;nbsp;&amp;nbsp;&amp;nbsp; MCU_init&lt;BR /&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does your suggestion work here too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@bigmac:I've tried your last suggestion to move the include command to the beginning of the ISRs and it works fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 21:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164669#M2940</guid>
      <dc:creator>Ralph</dc:creator>
      <dc:date>2009-03-20T21:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Include command missing after usage of device init</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164670#M2941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case it looks like the feature has been added after V5.1 to the tool chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to either upgrade to the latest release (V6.2) or if you need to stick to V5.1, disconnect your project from Processor Expert &amp;nbsp;as explained by bigmac.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 16:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Include-command-missing-after-usage-of-device-init/m-p/164670#M2941</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-23T16:53:30Z</dc:date>
    </item>
  </channel>
</rss>

