<?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 Switch from CASM08Z to CodeWarrior in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130498#M1024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am switching from CASM08Z to CodeWarrior. I made assembly programs using P&amp;amp;E WINIDE (CASM08Z, PROG08SZ) before. It generates S19 file and I use the PROG08SZ to program to HC908GT8 through P&amp;amp;E Cyclone Pro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I want to use the CodeWarrior (the user interface seems nicer) to program the MCU. But I cannot find how to generate S19 file and how to program the MCU.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyone who can give me a hint how to get start as I spent a few days on that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2006 07:09:09 GMT</pubDate>
    <dc:creator>sctang</dc:creator>
    <dc:date>2006-03-29T07:09:09Z</dc:date>
    <item>
      <title>Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130498#M1024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am switching from CASM08Z to CodeWarrior. I made assembly programs using P&amp;amp;E WINIDE (CASM08Z, PROG08SZ) before. It generates S19 file and I use the PROG08SZ to program to HC908GT8 through P&amp;amp;E Cyclone Pro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I want to use the CodeWarrior (the user interface seems nicer) to program the MCU. But I cannot find how to generate S19 file and how to program the MCU.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyone who can give me a hint how to get start as I spent a few days on that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 07:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130498#M1024</guid>
      <dc:creator>sctang</dc:creator>
      <dc:date>2006-03-29T07:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130499#M1025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello sctang,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Assuming you wish to stay with absolute assembly for the converted P &amp;amp; E CASM08 assembly files, and also maintain a very simple project directory structure,&amp;nbsp; it is possible to run the CW assembler and debugger/simulator programs&amp;nbsp;independently of the CW IDE, and the more complex project structure.&amp;nbsp; Please refer to the previous thread, where some of these issues are discussed:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CWCOMM&amp;amp;message.id=354" target="_blank"&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CWCOMM&amp;amp;message.id=354" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CWCOMM&amp;amp;message.id=354&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;You will generally also need to alter your existing .ASM files so that they will assemble under CW -&amp;nbsp;I will attempt to list some of the differences:&lt;/FONT&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Use &lt;FONT face="Courier New"&gt;dc.b&lt;/FONT&gt; in lieu of &lt;FONT face="Courier New"&gt;db&lt;/FONT&gt;, and &lt;FONT face="Courier New"&gt;dc.w&lt;/FONT&gt; in lieu of &lt;FONT face="Courier New"&gt;dw&lt;/FONT&gt; &lt;FONT face="Arial"&gt;pseudo-ops.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Many of the listing directives are different.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Conditional assembly directives are quite different, but are more powerful.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Macro definitions have a different format.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Left-shift and right-shift operands now use a double symbol rather than single symbol, i.e. &amp;gt;&amp;gt; and &amp;lt;&amp;lt;.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;For instructions like&amp;nbsp; " &lt;FONT face="Courier New"&gt;bra&lt;/FONT&gt; &lt;FONT face="Arial"&gt;* " only the asterisk symbol may be used - the optional $ symbol is not available for CW assembler.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;And most importantly, all instances of curly braces { } will need to change to parenthesis ( ).&amp;nbsp;&amp;nbsp;This has created the most hassles for me&amp;nbsp;because it is difficult to pick the difference with some font types.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="2"&gt;This should help reduce some of the assembly errors.&amp;nbsp; You could still use PROG08 to program the device.&amp;nbsp; The S19 file directly generated by CW assembler has an extra line right at the beginning of the file (contains file path data) - not sure if you would need to delete this for compatibility with PROG08.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;03-29-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;05:15 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130499#M1025</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-03-29T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130500#M1026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;You have obviously been through all the pain of conversion and setup etc.&lt;/P&gt;&lt;P&gt;I am quite interested in doing the same. (maybe with a little less pain)&lt;/P&gt;&lt;P&gt;But my main question is:&lt;/P&gt;&lt;P&gt;What are the benefits of doing command line absolute assembly in CW over P&amp;amp;E's stuff?&lt;/P&gt;&lt;P&gt;I like the idea of "more powerful conditional assembly directives" as P&amp;amp;E are very restrictive and the limitations only discovered through trial and error.&lt;/P&gt;&lt;P&gt;But is there anything else?&lt;/P&gt;&lt;P&gt;BTW I am very put off by using the full blown CW in assembler mode, its all just too complicated and abstruse.&lt;/P&gt;&lt;P&gt;BR Peg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 18:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130500#M1026</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-03-29T18:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130501#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Nudge, nudge&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks, Peg&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 14:33:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130501#M1027</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-03-31T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130502#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Mac,&lt;BR /&gt;It took me a while to switch from CASM08Z to CW , which I feel more versatile though the file structure is more complicated.&lt;BR /&gt;&lt;BR /&gt;Your advice shows very helpful for my switch to CW. I am still using the P&amp;amp;E Prog08sz to program the MCU, and try to find out if the CW can program the target directly. If you, or anyone, know how to program the MCU with CW, please advise. Thanks.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 02:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130502#M1028</guid>
      <dc:creator>sctang</dc:creator>
      <dc:date>2006-04-04T02:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130503#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello Peg,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Sorry for the delay in responding.&amp;nbsp; This is my second attempt - I lost the first when my log-in to the forum&amp;nbsp;timed out.&lt;/FONT&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT size="1"&gt;peg wrote:&lt;BR /&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="1"&gt;But my main question is:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;What are the benefits of doing command line absolute assembly in CW over P&amp;amp;E's stuff?&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;I like the idea of "more powerful conditional assembly directives" as P&amp;amp;E are very restrictive and the limitations only discovered through trial and error.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;But is there anything else?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;BTW I am very put off by using the full blown CW in assembler mode, its all just too complicated and abstruse.&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size="2"&gt;I guess I am probably in the position where existing HC08 projects will remain in CASM08 format, but new projects will be done in CW format, whether in assembler or C.&amp;nbsp; I seem to recall it was you who once said that, adding an 'S' to the part made the P&amp;amp;E solution expensive.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I recently converted a couple of my simpler past CASM08 projects to CW format, as a method of learning CW assembler - so far I have not used C for an embedded project (this is&amp;nbsp;another learning curve).&amp;nbsp; Another reason for becoming familiar CW assembler and C, is because it now seems to be the "lingua franca" in forums (perhaps the word should be fora) such as this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The CASM08 conditional assembly directives I previously found very limiting, with nested conditional assembly, problematic.&amp;nbsp; On the other hand, the CW assembler seems to behave predictably, with capability not unlike that of the C pre-processor (perhaps expected).&amp;nbsp; As a simple example, I now have a file "default.inc" used for the automatic inclusion of a default interrupt handler, for all vectors not previously defined within the code.&amp;nbsp; I could never achieve this with CASM08.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Another capapably, unavailable with CASM08, is the handling of simple structures within assembly code.&amp;nbsp; Sub-routines may not be referenced within the structure, but there are other ways around this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;On the down side, I also find the complexity of the CW project structure rather daunting - compared with my very simple structure for CASM08 projects, with all files required for a project in a single directory.&amp;nbsp; For an assembly project I would typically have the main ASM file plus perhaps two or three INCLUDE files.&amp;nbsp; So the use of the CW tools as separate entities is more in keeping with the process I am used to - absolue assembly by default,&amp;nbsp;a simple directory structure, and no .PRM file to worry about.&amp;nbsp; At the moment, I see no particuar reason to move away from absolute assembly.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;For future projects written in C, I will obviously need to use the full-blown CW project structure.&amp;nbsp; However, so far the HC08 devices I have used are the QY2 and&amp;nbsp; QY4, hardly canditates for C programming, when RAM and flash resources are tight.&amp;nbsp; For new projects I am currently working on, I would like to use the QB8 (but am still having difficulty in getting hold of the silicon) - I am still tossing up whether to use assembler or C, but am leaning towards assembler because at least I know the code will fit (some of these are upgrades of old HC05 projects).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 14:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130503#M1029</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-04-05T14:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from CASM08Z to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130504#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;Thanks very much for your comments!&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This is my second attempt - I lost the first when my log-in to the forum&amp;nbsp;timed out.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yeah this puts a smile on your face doesn't it?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I seem to recall it was you who once said that, adding an 'S' to the part made the P&amp;amp;E solution expensive.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yep that was me, I have spent the money though. FYI the S stuff you pay for is basically exactly the same as the free stuff except it handles the S bits. This is good because you seamlessly move between the two, but you seem to pay a lot for just a little bit extra.&lt;/P&gt;&lt;P&gt;I fully concur with what you have said and may now look into using CW like this for its better conditional assembly.&lt;/P&gt;&lt;P&gt;BTW, have you noticed the problem with the QT/QY simulator I have posted about here? I am getting no comment from P&amp;amp;E on it.&lt;/P&gt;&lt;P&gt;BR Peg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 05:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Switch-from-CASM08Z-to-CodeWarrior/m-p/130504#M1030</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-04-06T05:16:01Z</dc:date>
    </item>
  </channel>
</rss>

