NAND flash base address on M5329EVB

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

NAND flash base address on M5329EVB

2,239 次查看
MK_Sirona
Contributor I
logic M5329 EVB, CW 6.4

Hi folks

I am trying to configure the onboard 16MB st micro nand.
What I need now is the base address for the device.

Trouble is, I dont even know wether the address is hardwired or can be mapped in software.
Hope someone can give me a hint where to start, logic's documentation doesn't say a thing about it.

Thx in advance
标签 (1)
0 项奖励
回复
3 回复数

1,049 次查看
MK_Sirona
Contributor I
Sorry, I've been away for a few days.

Thx for the reply, I did a bit of reading up on you wrote.
The problem is that the flash I want to access is not the boot flash (CS0)
but an additional NAND on the 5329 EVB which is connected to CS2.

I read in another thread that for using a new device with FP,
you have to write a device description (done that) and change
the .cfg file Flash Programmer uses. (done that too)

In there, there are a few lines setting CSAR0 to 0x00000000,
mask and modes, etc. These should activate the CS0 everytime
someone accesses the address space.

I tried to map CSAR2 to 0x10000000, but I found that the instructions
are not carried out. I even commented out all the stuff for CS0 and still
had access to boot flash, so what's set there doesn't seem to matter.
CS0 is boot select, 0x00... is the initial value of CSAR0, so whatever you do,
u get put through to boot flash. :smileysad:

I'm starting a new thread in Codewarrior section about .cfg files.


0 项奖励
回复

1,049 次查看
SimonMarsden_de
Contributor II
Forgot to mention one other clue to help you get started...

For processors with external Flash, Chip Select 0 is called the boot chip select. It asserts for every external access until the CSMR0 register has been programmed.

This means that the external flash will respond at any address during the early part of the boot process, until CSAR0/CSMR0/CSCR0 are written.


By the way, I think the CodeWarrior header file calls CSAR0 by the name "MCF_FBCS0_CSAR"


Hope this helps and doesn't just confuse things!


Simon


0 项奖励
回复

1,049 次查看
SimonMarsden_de
Contributor II
Hi

I think that the base address is set in software. It is probably set using Chip Select 0, part of the FlexBus subsystem - try looking for CSAR0 in the CodeWarrior startup code for the board.

The actual address programmed may be supplied by the CodeWarrior Linker Control File.

Hope this helps.


Kind Regards


Simon
0 项奖励
回复