AnsweredAssumed Answered

MCF5307, little help

Question asked by Angelo Dureghello on Nov 2, 2009
Latest reply on Nov 3, 2009 by Angelo Dureghello

Hi all,

 

i am debugging a prototype with MCF5307 and a 16x2 Flash memory.

The flash is connected to CS0, *WE, *OE, etc. but no read operation from the flash is working.

 

This is the CS0 configuration:

 


/**
* ChipSelect 0 - FLASH  */ MCF_CS0_CSAR = BASEADDR_FLASH>>16;  MCF_CS0_CSCR = 0  | MCF_CS_CSCR_WS(6)  | MCF_CS_CSCR_AA  | MCF_CS_CSCR_PS_16;  MCF_CS0_CSMR = MCF_CS_CSMR_BAM_4M | MCF_CS_CSMR_V;

 

 

 

As a first test, i try to read the part ID from the flash, but i don't get anything different data than 0xffff.

So i started to look at signals with the scope, with this test loop:

 

 


volatile unsigned short *baseaddress = (volatile unsigned short *)BASEADDR_FLASH;while(1)   *(baseaddress + 0x555) = (unsigned short)0xAA;

 


 

In this simple loop, CS0 is correctly driven up and down at every write, but *WE remain high.

 

Every help is really appreciated,

 

many thanks,

Angelo

Outcomes