I am working on a Bootloader project for Ford, and I can not handle the EPROM/D-FLASH.
I use codewarrior 4.5, and a EVB9S12XEP100 EVB. I have had no problem with the common P-Flash but I cannot read/erase/write the D-Flash only can read 4k EEEPROM (at FC0800-FC0BFF,FD..,FE..,FF..) with the debugger. Can You please send me the address list where I can reach EEPROM and D-Flash with the debugger?
I have to erase and download in D-Flash but I cannot even enable D-flash, I always get access error.
The init code:
/* EEE IFR visible in the memory map */
MMCCTL1 |= EEEIFRO;
/* Clear error flags */
FSTAT |= (PVIOL | ACCERR);
/* Enable D-Flash */
FCCOBIX = 0;
FCCOBHI = ENABLE_D_FLASH; //0x0f
FCCOBLO = 0;
FCCOBIX = 1;
FCCOB = D_FLASH_SIZE_32K; //128
FCCOBIX = 2;
FCCOB = (uint16)0;
FSTAT |= CCIF;
/* until finished or error occured */
while(((FSTAT & (PVIOL | ACCERR))==0) && ((FSTAT & CCIF) == 0))
Can You please send me an application note about D-Flash and EEPROM handling?
Embedded Software Engineer
Automotive Networking Business Unit
Montevideo u. 2/C
Alban changed subject
Message Edited by Alban on 2007-02-02 07:49 PM