<?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 HCS12 Unable to Single Step through EEPROM write + in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139392#M2292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi. I just inherited a project from an outside consultant and his notes give the following limitations-&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;-Cannot single step through routines which write to the onchip EEPROM&lt;/DIV&gt;&lt;DIV&gt;-Cannot break/resume with WDT enabled (most of the time).&lt;/DIV&gt;&lt;DIV&gt;-EEPROM does not retain contents between BDM debug loads (of course the entire memory is flashed from debug session to debug session)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have verified the&amp;nbsp; limitations,&amp;nbsp;and the consultant did spend some time trying to resolve them last year with freescale tech support. Now the&amp;nbsp;project is alive again.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using Codewarrior 3.1 for HCS12. We are using an external oscillator, so there are no PLL issues.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anyone have any pointers to documentation on these limitations? I googled but did not find anything. I just want to know if these are known issues or if there are any work-arounds.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I read somewhere on this board that Codewarrior 4.5 may allow the EEPROM to be preserved between ICD debug sessions, but at this point I don't have time to upgrade&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 07:53:47 GMT</pubDate>
    <dc:creator>YeOldeBDM</dc:creator>
    <dc:date>2006-12-08T07:53:47Z</dc:date>
    <item>
      <title>HCS12 Unable to Single Step through EEPROM write +</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139392#M2292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi. I just inherited a project from an outside consultant and his notes give the following limitations-&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;-Cannot single step through routines which write to the onchip EEPROM&lt;/DIV&gt;&lt;DIV&gt;-Cannot break/resume with WDT enabled (most of the time).&lt;/DIV&gt;&lt;DIV&gt;-EEPROM does not retain contents between BDM debug loads (of course the entire memory is flashed from debug session to debug session)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have verified the&amp;nbsp; limitations,&amp;nbsp;and the consultant did spend some time trying to resolve them last year with freescale tech support. Now the&amp;nbsp;project is alive again.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using Codewarrior 3.1 for HCS12. We are using an external oscillator, so there are no PLL issues.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anyone have any pointers to documentation on these limitations? I googled but did not find anything. I just want to know if these are known issues or if there are any work-arounds.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I read somewhere on this board that Codewarrior 4.5 may allow the EEPROM to be preserved between ICD debug sessions, but at this point I don't have time to upgrade&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 07:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139392#M2292</guid>
      <dc:creator>YeOldeBDM</dc:creator>
      <dc:date>2006-12-08T07:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Unable to Single Step through EEPROM write +</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139393#M2293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;-Cannot single step through routines which write to the onchip EEPROM&lt;BR /&gt;&lt;BR /&gt;That's right. The manual, chapter "4.1.4 Illegal EEPROM Operations":&lt;BR /&gt;&lt;BR /&gt;"The part enters STOP mode and a program or erase command is in progress. The command is aborted and any pending command is killed."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Cannot break/resume with WDT enabled (most of the time).&lt;BR /&gt;&lt;BR /&gt;Of course not. Don't debug with the wdog enabled and you'll be fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-EEPROM does not retain contents between BDM debug loads (of course the entire memory is flashed from debug session to debug session)&lt;BR /&gt;&lt;BR /&gt;That one is trickier. You can do it in Codewarrior if you use the old "cmd"-files. In preload.cmd, write:&lt;BR /&gt;&lt;BR /&gt;reset&lt;BR /&gt;FLASH&lt;BR /&gt;FLASH SELECT&lt;BR /&gt;FLASH UNPROTECT&lt;BR /&gt;FLASH ERASE 1-8&lt;BR /&gt;FLASH ARM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1-8 is the page numbers, for an HCS12 with 8 pages of flash (128k). If you just write FLASH ERASE without any numbers it will erase the whole memory, including the EEPROM which is page 0 if I remember correctly. By adding 1-8 it will only erase the flash.&lt;BR /&gt;That's the only way I know of. You might have to set the debugger to "load code + symbols" instead of "load code to nvm" for it to work, since the latter is the new feature introduced in CW3.0 and not compatible with cmd-files. Or so did Metrowerks tell me back then.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 20:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139393#M2293</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2006-12-08T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Unable to Single Step through EEPROM write +</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139394#M2294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the info!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Unable-to-Single-Step-through-EEPROM-write/m-p/139394#M2294</guid>
      <dc:creator>YeOldeBDM</dc:creator>
      <dc:date>2006-12-14T05:01:26Z</dc:date>
    </item>
  </channel>
</rss>

