MCF5307, little help

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,192件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
683件の閲覧回数
angelo_d
Senior Contributor I

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

 

regards,

Angelo

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
684件の閲覧回数
angelo_d
Senior Contributor I

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

 

regards,

Angelo

0 件の賞賛
返信