Peter Laczko

EVB9S12XEP100 Bootloader project -- EPROM/D-FLASH

Discussion created by Peter Laczko on Feb 2, 2007
Latest reply on Sep 10, 2007 by Martyn Gallop

Dear Sir/Madam

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?

Regards,
Peter Laczko
Embedded Software Engineer
Mentor Graphics
Automotive Networking Business Unit
Montevideo u. 2/C
H-1037 Budapest
HUNGARY

Alban changed subject

Message Edited by Alban on 2007-02-02 07:49 PM

Outcomes