This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6722读写flash



请问一下:C6722 emif连接flash(sst29le010 128k*8bit)只能读不能擦除和写是怎么回事??

emif 连接是如下

cs[2] - ce#

oe - oe

we -we

A0-BA[0]

A1-BA[1]

A2-A2

.......

高位地址是

A12-AMUTE0
A13-AMUTE1
A14-AHCLKX1
A15-ACLKX1
A16-ACLKR1

寄存器A1CR   用的EM_CLK时钟= 122.88MHz(示波器测量过没问题)

*(int *)EMIF_A1CR = ( 1 << 31) // SS : 
| ( 1 << 30) // EW : 
| ( 0 << 26) // W_SETUP : 
| (9 << 20) // W_STROBE : 
| ( 3 << 17) // W_HOLD : 
| ( 0 << 13) // R_SETUP : 
//| ( 8 << 7) // R_STROBE :
| ( 9 << 7) // R_STROBE :
| ( 3 << 4) // R_HOLD : 
| ( 0 << 2) // TA : 
| ( 0<<0) // ASIZE : 
|(0);

用仿真器调试时可以读flash但是不能擦除和写(flash中本来有程序想把它擦除掉),能帮忙看下是怎么回事吗??

附件有几个操作flash的基本函数