AnsweredAssumed Answered

ADuC7061 how to write/read data to the flash?

Question asked by olegmsg on Apr 18, 2011
Latest reply on Apr 20, 2011 by olegmsg

Mass erase was done with ARMWSD.

 

Here is a code i wrote according to datasheet and tried for ADuC7026:

FEEMOD = 0x0008;
FEEADR = 0xF7E4;
FEEDAT = 0xDEAD;
FEECON = 0x02;
status = FEESTA&0x03;
while (!(status)) status = FEESTA&0x03;
if ((status&0x02)==0x02){
     while(1);               // write command error
}
It perfectly works.
The same for ADuC7061:
FEEMOD = 0x0108;
FEEADR = 0x77E4;
FEEDAT = 0xDEAD;
FEECON = 0x02;
status = FEESTA&0x03;
while (!(status)) status = FEESTA&0x03;
if ((status&0x02)==0x02){
     while(1);               // write command error
}
Doesn't work.
Because status = 0x00 and doesn't change and it stuck forever.
Any suggestions would appreciated.
How to write/read data to ADuC7061 flash?

Outcomes