MCF5307, little help

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCF5307, little help

跳至解决方案
780 次查看
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 解答
271 次查看
angelo_d
Senior Contributor I

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

 

regards,

Angelo

在原帖中查看解决方案

0 项奖励
1 回复
272 次查看
angelo_d
Senior Contributor I

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

 

regards,

Angelo

0 项奖励