Mass Erase Enable from Disabled state

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

Mass Erase Enable from Disabled state

782 Views
akbar_ar
Contributor II

I am not able to Enable Mass Erase from its Disabled state

Is there any way to change FTFC_FSEC[MEEN] from 0x11 to 0x10 in register the debugger shows it is Readonly  register

Or I would Like to know any other way to Mass Erase

0 Kudos
Reply
1 Reply

773 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

I think you made a mistake in the description, FSEC = 0x11 (or 0x10) = MEEN = 0b01 = Mass erase enabled.

danielmartynek_0-1614690557484.png

danielmartynek_2-1614690584015.png

The first sector that contains the Flash configuration field can be erased by firmware (or debugger provided the MCU is not secure) using the Erase Flash Sector FTFC command. The Mass Erase is then enabled after the MCU is reset once the new MEEN value is loaded from the flash configuration filed to the FSEC register.

danielmartynek_3-1614690609624.png

Please note that the first sector contains not only the flash configuration field but the reset vector etc.

 

Regards,

Daniel

 

 

0 Kudos
Reply