trouble with flash longword programming on K60 (TWR-K60N512)...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

trouble with flash longword programming on K60 (TWR-K60N512)...

Jump to solution
532 Views
EdSutter
Senior Contributor II

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... :-(

Thanks,

Ed

Labels (1)
0 Kudos
1 Solution
411 Views
EdSutter
Senior Contributor II

Answering my own question...

I didn't realize that d-cache was enabled on flash.

Disabling that fixed this issue...

View solution in original post

0 Kudos
1 Reply
412 Views
EdSutter
Senior Contributor II

Answering my own question...

I didn't realize that d-cache was enabled on flash.

Disabling that fixed this issue...

0 Kudos