AnsweredAssumed Answered

MK02FN128 Flash programming

Question asked by Cesare Cesare on Sep 17, 2015
Latest reply on Sep 21, 2015 by Jorge_Gonzalez

Hi all,

 

I'm experiencing some strange problem trying to port the code of the application note AN2295 on an MK02FN128 cpu. I have to say that before this I successfully porte the same code on an MK21DN512, in this case all worked fine at first attempt.

 

With the MK02FN128, when I try to erase a sector or program a longword I always get an Access error in the FTFA_FSTAT register and I didn't find a way to avoid this.

 

Did anyone already try this kind of porting? The MK02FN128 uses FTFA as prefix of the flash register while the MK12 uses the FTFL, MK02 was not listed in the kinetis model supported by the application note so I had to select a KLXX model in order to use the right prefix for the flash register, I don't know if this kind of setting can have some drawback.

 

Cheers,

Angelo

Outcomes