DEMO9S12XEP100: bug in CodeWarrior 5.1 to delete de data flash? Please help!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DEMO9S12XEP100: bug in CodeWarrior 5.1 to delete de data flash? Please help!

477 Views
pabloestebancam
Contributor II

Hi, All.

Could you please advise how to delete the D-Flash memory of DEMO9S12XEP100?

I am using CodeWarrior 5.1 and it seems to have a bug and cannot delete de D-Flash.

Thanks in advance for your quick response!

PC

Labels (1)
0 Kudos
1 Reply

320 Views
RadekS
NXP Employee
NXP Employee

Hi Pablo,

D-Flash is automatically erased when you load new code into MCU. There are two basic exceptions:

  1. You could disable D-flash (EEPROM) update in CW debugger window (hiwave.exe) – menu-File-Configuration-Load tab-Automatically erase and program into FLASH and EEPROM-Advanced-here you could mark modules which will be not updated(blue background).
  2. D-flash could be protected. Protection could be set by user (see EPROT register description), or could be caused by one of two background processes.
  • When you partition D-Flash for EEEPROM usage, appropriate part of D-flash will be automatically protected. If you want erase partitioning (put MCU back to fully erased state), you have to execute mass erase command. Simplest way how to do it is execute unsecure command - In Code Warior debugger menu ->MultilinkCyclonePro->Unsecure…
  • When MCU during reset sequence detects double bit ECC error in phrase 0xFF08..0xFF0F, MCU will be automatically secured and both flashes will be fully protected. double bit ECC error could be caused by cumulative write into phrase 0xFF08..0xFF0F. Please check https://community.freescale.com/docs/DOC-93803 document for more details and workaround (FLASH NOUNSECURE).

Could you please share here your function for erase D-Flash?


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos