AnsweredAssumed Answered

in debugger, how to erase dflash in 9S12XE

Question asked by Ron Wilson on Sep 14, 2010
Latest reply on Sep 15, 2010 by Ron Wilson

I am running Code Warrior V5 for 9S12 with a P&E USB BDM Multilink.

 

I have no problem erasing and programming PFLASH (program flash), but I have not been able to erase or program DFLASH (data flash).

 

Here is what I did and the responses I got:

 

in>flash init autoid
FP: FLASH parameters loaded for MC9S12XEQ384_V3(NVMIF2 rev 1,1,1,1,1) from C:\Freescale\CodeWarrior_for_S12X_V5_0\prog\FPP\mcu02DB.fpp

      MCU clock speed: 4017000 Hz
Block Module Name      Address Range   Status
   0  PFLASH            4000 -  7FFF   Blank - Unselected
   1  PFLASH            C000 -  FFFF   Blank - Unselected
   2  PFLASH          E08000 -E7BFFF   Blank - Unselected
   3  PFLASH          F08000 -FFBFFF   Blank - Unselected
   4  DFLASH             800 -1F0BFF   Programmed - Unselected

in>flash erase 4
Vppon command file is disabled.
Vppoff command file is disabled.

in>flash

      MCU clock speed: 4017000 Hz
Block Module Name      Address Range   Status
   0  PFLASH            4000 -  7FFF   Blank - Unselected
   1  PFLASH            C000 -  FFFF   Blank - Unselected
   2  PFLASH          E08000 -E7BFFF   Blank - Unselected
   3  PFLASH          F08000 -FFBFFF   Blank - Unselected
   4  DFLASH             800 -1F0BFF   Programmed - Unselected

in>

 

I also tried using "flash select 4" before erasing, but the result was no different.

Outcomes