Hi, I'm trying to write to flash on the K60. I'm using the Program Longword command.
All pretty straightforward (one would think). My flash-write function is relocated to SRAM.
My source/destination alignments are all good and I do wait for CCIF to set prior to completing.
The problem is that after the SRAM-relocated function returns, I then do a check to make sure that
what I wanted to write was actually written. This comparison fails; but then I can look at the data
and I see that it is correct. I've found that if I just disable my post-write verification, everything is fine;
however, I'd rather not do that.
Its as if the flash has not completed its internal state machine (even though CCIF did go high).
Is there something more that has to be done after the Program Longword command but prior to reading
from the area written? Something like a Read-Reset in normal NOR flash? I didn't see anything in
the RM that indicated this was necessary; but I admit I haven't scoured the RM either... :-(