<?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: FCS, failure to step in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179350#M5976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Matt1of3 wrote:&lt;BR /&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I’m having difficulty with the Full Chip Simulator when using the BCLR instruction.&amp;nbsp; If I try to set a bit in RAM (first page) it will not work, I get a “Target request failed: Failed to step" error.&amp;nbsp; I also have problems with the Assembler at the same instruction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,$71 &amp;nbsp;will assemble but will not step&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,0x71 will not assemble, I get and “End of line expected “ error A2400&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,113&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; will assemble but will not step.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I assume that you have a .asm file, and you are not using HLI assembler within a .c file.&amp;nbsp; For a .asm file, the representation of a hexadecimal number uses the $ prefix only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FCS objects to reading&amp;nbsp;"uninitialised" memory locations, even though the MCU itself would actually return the value containing the "garbage" bits.&amp;nbsp; The BCLR instruction is actually a read-modify-write type, where the whole byte value&amp;nbsp;is read.&amp;nbsp; If this be the issue, simply initialise the memory location with MOV #0,$71 during the POR initialisation process to ensure that all bits are initialised.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2011 14:58:40 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2011-11-04T14:58:40Z</dc:date>
    <item>
      <title>FCS, failure to step</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179349#M5975</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 questions, I'm using Codewarrior 10.0, mcs08ac16 controller&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The PEmicro drop down menu on the tool bar is turned off, how do I turn it on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I’m having difficulty with the Full Chip Simulator when using the BCLR instruction.&amp;nbsp; If I try to set a bit in RAM (first page) it will not work, I get a “Target request failed: Failed to step" error.&amp;nbsp; I also have problems with the Assembler at the same instruction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,$71 &amp;nbsp;will assemble but will not step&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,0x71 will not assemble, I get and “End of line expected “ error A2400&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,113&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; will assemble but will not step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I’m using the BDM the code will run although I get a warning on the BCLR Instructions.&amp;nbsp; If it Assembles the disassembly looks good to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can get the simulator to accept bit instructions to low RAM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 05:17:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179349#M5975</guid>
      <dc:creator>Matt1of3</dc:creator>
      <dc:date>2011-11-04T05:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: FCS, failure to step</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179350#M5976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Matt1of3 wrote:&lt;BR /&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I’m having difficulty with the Full Chip Simulator when using the BCLR instruction.&amp;nbsp; If I try to set a bit in RAM (first page) it will not work, I get a “Target request failed: Failed to step" error.&amp;nbsp; I also have problems with the Assembler at the same instruction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,$71 &amp;nbsp;will assemble but will not step&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,0x71 will not assemble, I get and “End of line expected “ error A2400&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp; 1,113&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; will assemble but will not step.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I assume that you have a .asm file, and you are not using HLI assembler within a .c file.&amp;nbsp; For a .asm file, the representation of a hexadecimal number uses the $ prefix only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FCS objects to reading&amp;nbsp;"uninitialised" memory locations, even though the MCU itself would actually return the value containing the "garbage" bits.&amp;nbsp; The BCLR instruction is actually a read-modify-write type, where the whole byte value&amp;nbsp;is read.&amp;nbsp; If this be the issue, simply initialise the memory location with MOV #0,$71 during the POR initialisation process to ensure that all bits are initialised.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 14:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179350#M5976</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-11-04T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: FCS, failure to step</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179351#M5977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Mac, Spot On! &amp;nbsp; We usually initialize flags with the bit instructions, I wouldn’t have figured this out.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 21:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/FCS-failure-to-step/m-p/179351#M5977</guid>
      <dc:creator>Matt1of3</dc:creator>
      <dc:date>2011-11-04T21:45:53Z</dc:date>
    </item>
  </channel>
</rss>

