AnsweredAssumed Answered

K22FN1M0 Flash write issue

Question asked by Anuj Tanksali on Dec 17, 2018
Latest reply on Dec 18, 2018 by Mark Butcher



Am using K22FN1M0 device from Kinetics and getting a peculiar issue with flash write. 


Am currently using PE component IntFlash to write into internal flash. 

I have used byte write, word write and long write PE functions.


i am facing 2 issues 


1) when i use long write and increment the address by 4 immediately program crashes on next write i.e. if start address is 0x6000 the program crashes at 0x6004. but if i increment address by 8 it works fine. Increment address by 8 always works. 


2) I tried writing fixed data and using long write. when i write 0xAA55AA55 and increment the address by 4 it writes correctly and am able to write whole flash with 0xAA55AA55 data and increment address by 4. But when i write 0x45 data application crashes.


earlier I was using K22FN512 device with PE component and did not find any such issue.

The same problem comes for further sectors and erase sector returns success always.


please let me know what could be the issue.

Also if you have a sample code with K22FN1M0 internal flash write which works please share it with me.