<?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 HC08 - problem with debugging the code in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135720#M1763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have problem with using True-Time Simulator &amp;amp; Real-Time Debugger&amp;nbsp;&amp;nbsp;in CodeWarrior for HC08 3.1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Debugger seems to ignore some parts of code. For instance:&lt;/DIV&gt;&lt;DIV&gt;- in the part of code, which should be executed sequentially, it skips the group of 5 lines of code,&lt;/DIV&gt;&lt;DIV&gt;- it doesn't execute the code after if-statetment even though the condition is true.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The common problem in all these cases is that I can't set the breakpoint in the part of code which is skipped (and which shouldn't be skipped).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help appreciated.&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Konrad&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2006 17:17:53 GMT</pubDate>
    <dc:creator>Konrad</dc:creator>
    <dc:date>2006-05-12T17:17:53Z</dc:date>
    <item>
      <title>HC08 - problem with debugging the code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135720#M1763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have problem with using True-Time Simulator &amp;amp; Real-Time Debugger&amp;nbsp;&amp;nbsp;in CodeWarrior for HC08 3.1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Debugger seems to ignore some parts of code. For instance:&lt;/DIV&gt;&lt;DIV&gt;- in the part of code, which should be executed sequentially, it skips the group of 5 lines of code,&lt;/DIV&gt;&lt;DIV&gt;- it doesn't execute the code after if-statetment even though the condition is true.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The common problem in all these cases is that I can't set the breakpoint in the part of code which is skipped (and which shouldn't be skipped).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help appreciated.&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Konrad&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 17:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135720#M1763</guid>
      <dc:creator>Konrad</dc:creator>
      <dc:date>2006-05-12T17:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: HC08 - problem with debugging the code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135721#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Conrad,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This happened to me a couple of times when I updated the code but forgot to program the Flash.&lt;/DIV&gt;&lt;DIV&gt;In this case, the code displayed in the debugger will not match the code inside the MCU and will will see strange behaviour.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also HC08 only support one breakpoint. If you don't delete one before creating a new one itt will tell you it cannot set the breakpoint.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this unblock you...&lt;BR /&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 17:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135721#M1764</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-05-12T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: HC08 - problem with debugging the code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135722#M1765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;my guess: did the compiler optimize the code you are trying to debug? Optimized code can behave strange, at least when you only look at the behaviour on the C, and not on the assembly level.&lt;BR /&gt;Try to switch off some optimizations, try the following options:&lt;BR /&gt;"-onf -one -Onf -OnB=abdrt -onbt -Oi=OFF "&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 05:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135722#M1765</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-05-13T05:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: HC08 - problem with debugging the code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135723#M1766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;It looks as if the problem that I have is caused by compiler optimization. However, the compiler options that you suggested didn't solve it.&lt;/P&gt;&lt;P&gt;Is there any document describing these options?&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 21:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135723#M1766</guid>
      <dc:creator>Konrad</dc:creator>
      <dc:date>2006-05-17T21:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: HC08 - problem with debugging the code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135724#M1767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;All the compiler options are described in the compiler manual. The HC08 compiler pdf at&lt;BR /&gt;Help\pdf\Compiler_HC08.pdf&lt;BR /&gt;in the installation.&lt;BR /&gt;&lt;BR /&gt;If you have a small, complete compilable sample we might be able to specify the option to disable the optimization (if it can be disabled).&lt;BR /&gt;But I dont have time to dig into a huge code base :-|.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 04:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-problem-with-debugging-the-code/m-p/135724#M1767</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-05-19T04:45:01Z</dc:date>
    </item>
  </channel>
</rss>

