<?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 How to configure Codewarrior to disable eeprom erase during downloading in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170472#M5225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I&amp;nbsp;try to disable eeprom erase&amp;nbsp;during downloading, so i configure in CW debugger window(File-&amp;gt;Configuration-&amp;gt;Load-&amp;gt;click 'Advanced'-&amp;gt;select 'EEPROM'). But the result is eeprom stil will be erased to 0 or 0xFF after downloading before the program is RUN.&lt;/P&gt;&lt;P&gt;ECU：PC9S12G128MLL&lt;BR /&gt;IDE: CW_HC12_v5.1_EVAL(download from freescale web)&lt;BR /&gt;Debugger firmware：P&amp;amp;E USB Multilink&lt;BR /&gt;prm setting：&lt;BR /&gt;SEGMENTS&amp;nbsp; /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/P&gt;&lt;P&gt;/* Register space&amp;nbsp; */&lt;BR /&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; IO_SEG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PAGED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000 TO&amp;nbsp;&amp;nbsp; 0x03FF; intentionally not defined */&lt;/P&gt;&lt;P&gt;/* RAM */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x2000 TO&amp;nbsp;&amp;nbsp; 0x3FFF;&lt;BR /&gt;/* D-Flash */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp; 0x000400 TO 0x0013FF;&lt;BR /&gt;·········&lt;/P&gt;&lt;P&gt;PLACEMENT /* here all predefined and user segments are placed into the SEGMENTS defined above. */&lt;/P&gt;&lt;P&gt;·········&lt;BR /&gt;&amp;nbsp;&amp;nbsp; EEPROM_DATA&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; DFLASH;&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give the suggestion&amp;nbsp;about this issue? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 15:21:45 GMT</pubDate>
    <dc:creator>grace</dc:creator>
    <dc:date>2010-12-17T15:21:45Z</dc:date>
    <item>
      <title>How to configure Codewarrior to disable eeprom erase during downloading</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170472#M5225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I&amp;nbsp;try to disable eeprom erase&amp;nbsp;during downloading, so i configure in CW debugger window(File-&amp;gt;Configuration-&amp;gt;Load-&amp;gt;click 'Advanced'-&amp;gt;select 'EEPROM'). But the result is eeprom stil will be erased to 0 or 0xFF after downloading before the program is RUN.&lt;/P&gt;&lt;P&gt;ECU：PC9S12G128MLL&lt;BR /&gt;IDE: CW_HC12_v5.1_EVAL(download from freescale web)&lt;BR /&gt;Debugger firmware：P&amp;amp;E USB Multilink&lt;BR /&gt;prm setting：&lt;BR /&gt;SEGMENTS&amp;nbsp; /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/P&gt;&lt;P&gt;/* Register space&amp;nbsp; */&lt;BR /&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; IO_SEG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PAGED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000 TO&amp;nbsp;&amp;nbsp; 0x03FF; intentionally not defined */&lt;/P&gt;&lt;P&gt;/* RAM */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x2000 TO&amp;nbsp;&amp;nbsp; 0x3FFF;&lt;BR /&gt;/* D-Flash */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp; 0x000400 TO 0x0013FF;&lt;BR /&gt;·········&lt;/P&gt;&lt;P&gt;PLACEMENT /* here all predefined and user segments are placed into the SEGMENTS defined above. */&lt;/P&gt;&lt;P&gt;·········&lt;BR /&gt;&amp;nbsp;&amp;nbsp; EEPROM_DATA&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; DFLASH;&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give the suggestion&amp;nbsp;about this issue? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 15:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170472#M5225</guid>
      <dc:creator>grace</dc:creator>
      <dc:date>2010-12-17T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Codewarrior to disable eeprom erase during downloading</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170473#M5226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All zeros you get because&amp;nbsp;DFLASH in PRM is READ_ONLY. All variables in READ_ONLY segments are initialized. Use NO_INIT instead of READ_ONLY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make EEPROM not erased, search forums for AEFSKIPERASING. This command in debugger ini file can be used to not erase some eeprom and flash blocks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 15:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170473#M5226</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-12-17T15:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Codewarrior to disable eeprom erase during downloading</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170474#M5227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the file tree window of Code Warrior, you should have a group called "Debugger Command Files"&lt;/P&gt;&lt;P&gt;In there will be a "xxx_Startup.cmd" file, where "xxx" is probably the name of the programmer that you use. E.g. on my projects it is called "P&amp;amp;E_Multilink_CyclonePro_Startup.cmd"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insert the following lines in the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;// This command skips erasing the eeprom :smileyhappy:&lt;/DIV&gt;&lt;DIV&gt;FLASH AEFSKIPERASING 0&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 06:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170474#M5227</guid>
      <dc:creator>Stephen</dc:creator>
      <dc:date>2010-12-20T06:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Codewarrior to disable eeprom erase during downloading</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170475#M5228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kef and &lt;SPAN&gt;&lt;SPAN&gt;Stephon,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I modified eeprom section to NO_INIT in prm file and eeprom will not be erased. The solution is OK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;But i try the the second solution and it seems not work.I add 'FLASH AEFSKIPERASING 0' in P&amp;amp;E_Multilink_USB_Startup.cmd or P&amp;amp;E_Multilink_USB_Preload.cmd. EEPROM is still&amp;nbsp;be erased.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Below is command window content. Is anything wrong? Thanks very much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Loading Target ...&lt;BR /&gt;IO registers loaded for MC9S12G128 from D:\Program Files\Freescale\CWS12v5.1\prog\REG\MCU01C2.REG&lt;BR /&gt;USB HCS08/HCS12 MULTILINK detected - Flash Version 5.83&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_startup.cmd&lt;/P&gt;&lt;P&gt;!// At startup the commands written below will be executed&lt;BR /&gt;Target Ready&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_startup.cmd&lt;/P&gt;&lt;P&gt;Startup command file correctly executed.&lt;BR /&gt;executing P&amp;amp;E_Multilink_USB.hwc&lt;/P&gt;&lt;P&gt;done P&amp;amp;E_Multilink_USB.hwc&lt;/P&gt;&lt;P&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_preload.cmd&lt;/P&gt;&lt;P&gt;!// Before load the commands written below will be executed&lt;BR /&gt;!FLASH AEFSKIPERASING 0&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_preload.cmd&lt;/P&gt;&lt;P&gt;Preload command file correctly executed.&lt;BR /&gt;FP: FLASH parameters loaded for MC9S12G128_V0_5(NVMIF2 rev 3,3,3,3) from D:\Program Files\Freescale\CWS12v5.1\prog\FPP\mcu01C2.fpp&lt;BR /&gt;USB HCS08/HCS12 MULTILINK detected - Flash Version 5.83&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_reset.cmd&lt;/P&gt;&lt;P&gt;!// After reset the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_reset.cmd&lt;/P&gt;&lt;P&gt;Reset command file correctly executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCU clock speed: 5707000 Hz&lt;BR /&gt;Block Module Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address Range&amp;nbsp;&amp;nbsp; Status&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; EEPROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400 -&amp;nbsp; 13FF&amp;nbsp;&amp;nbsp; Programmed - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; PFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1400 -&amp;nbsp; 1FFF&amp;nbsp;&amp;nbsp; Blank - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; PFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 88000 - FBFFF&amp;nbsp;&amp;nbsp; Programmed - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 3&amp;nbsp; PFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4000 -&amp;nbsp; FFFF&amp;nbsp;&amp;nbsp; Programmed - Unselected&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the EEPROM flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the PFLASH flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the PFLASH flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the PFLASH flash module =&amp;gt; Skipped.&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_vppon.cmd&lt;/P&gt;&lt;P&gt;!// Before programming the flash, the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_vppon.cmd&lt;/P&gt;&lt;P&gt;Vppon command file correctly executed.&lt;/P&gt;&lt;P&gt;FP: The ERASE command is not performed for the EEPROM flash module (AEFSKIPERASING) =&amp;gt; Skipped.&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_vppoff.cmd&lt;/P&gt;&lt;P&gt;!// After programming the flash, the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_vppoff.cmd&lt;/P&gt;&lt;P&gt;Vppoff command file correctly executed.&lt;BR /&gt;FP: Arm FLASH for loading.&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_vppon.cmd&lt;/P&gt;&lt;P&gt;!// Before programming the flash, the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_vppon.cmd&lt;/P&gt;&lt;P&gt;Vppon command file correctly executed.&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_vppoff.cmd&lt;/P&gt;&lt;P&gt;!// After programming the flash, the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_vppoff.cmd&lt;/P&gt;&lt;P&gt;Vppoff command file correctly executed.&lt;BR /&gt;FP: FLASH disarmed.&lt;BR /&gt;USB HCS08/HCS12 MULTILINK detected - Flash Version 5.83&lt;BR /&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_reset.cmd&lt;/P&gt;&lt;P&gt;!// After reset the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_reset.cmd&lt;/P&gt;&lt;P&gt;Reset command file correctly executed.&lt;BR /&gt;executing E:\project\LowCostSJB\backup\bin\LowCostSJB.xpr&lt;/P&gt;&lt;P&gt;RESET&lt;BR /&gt;done E:\project\LowCostSJB\backup\bin\LowCostSJB.xpr&lt;/P&gt;&lt;P&gt;executing .\cmd\P&amp;amp;E_Multilink_USB_postload.cmd&lt;/P&gt;&lt;P&gt;!// After load the commands written below will be executed&lt;BR /&gt;done .\cmd\P&amp;amp;E_Multilink_USB_postload.cmd&lt;/P&gt;&lt;P&gt;Postload command file correctly executed.&lt;/P&gt;&lt;P&gt;in&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170475#M5228</guid>
      <dc:creator>grace</dc:creator>
      <dc:date>2010-12-20T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Codewarrior to disable eeprom erase during downloading</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170476#M5229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grace,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you added&amp;nbsp;AEFSKIPERASING to preload cmd file. Try moving it to startup cmd file. If this won't work, then maybe it is not working on S12G. I used it only on S12D and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 15:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-configure-Codewarrior-to-disable-eeprom-erase-during/m-p/170476#M5229</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-12-21T15:00:43Z</dc:date>
    </item>
  </channel>
</rss>

