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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,120件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
999件の閲覧回数
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 件の賞賛
返信
1 返信
1,000件の閲覧回数
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 件の賞賛
返信