AnsweredAssumed Answered

Erase flash sector on MK70FX512VMJ15

Question asked by Luca Staiano on Jan 31, 2014
Latest reply on Feb 3, 2014 by Luca Staiano

Hi friends.


I'm working on a kinetis MK70FX512VMJ15 and IAR Embedded workbench for ARM (version 6.30.4). I'm writing a flash driver for this device.


I have a problem with erase flash sector command. When i try to launch this command in debug with J-Link, this command is able to erase only few sectors on Program Flash Memory. With some sectors this command doesn't have success but i have no errors in FTFE_FSTAT register (value 0x80). I can't understand why seems to be not possible to erase some of this sectors.


Notice that i execute command from RAM memory as explained in AN4695 and i have also verified ssd attached to this application note. I have no protection set in FTFE_FPROT (value 0xFF).


I can't understand where i'm wrong, i hope you have any idea.


Many thanks for now, bye.