MCF5307, little help

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5307, little help

Jump to solution
789 Views
angelo_d
Senior Contributor I

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

Labels (1)
0 Kudos
1 Solution
280 Views
angelo_d
Senior Contributor I

sorry, was wrong, the signal was correct, problem was on my bad code.

 

regards,

Angelo

View solution in original post

0 Kudos
1 Reply
281 Views
angelo_d
Senior Contributor I

sorry, was wrong, the signal was correct, problem was on my bad code.

 

regards,

Angelo

0 Kudos