AnsweredAssumed Answered

K22 flash section erasing problem

Question asked by Soeren Birth on May 11, 2017
Latest reply on May 16, 2017 by David Sherman



have problems to erase a flash section. I'm using MK22FN512VLH12.

i'm using the C90TFS Driver. The erase command is set correct in the FCCOB-registers and the flash machine responses no errors. But the flash section isn't erased. It's untouched.

-> MemoryAndFTFA-Registers.PNG


The flash command sequence is copied to ram and is performed.It's the same disassembly like the "FlashCommandSequence" - function

-> FunctionInRam.PNG

-> RamDissassembly.PNG


If i put a wrong section address in the FCCOB-register it responses with an ACCERR.


The code seems to work if i erase/write section in the other block ( address > 0x3FFFF).


I can't share the code.