Forums

pci access to SDRAM using Dm642

Started by dilipkpatel November 28, 2007
hi,

i can not access the sdram using the PCI.

can anybody give the sample application & Driver that take data from the
sdram using the PCI.

thanks,
Dilip 


dilipkpatel wrote:
> hi, > > i can not access the sdram using the PCI. > > can anybody give the sample application & Driver that take data from the > sdram using the PCI. > > thanks, > Dilip > >
Did you setup one of the PCIBAR registers to map to that address range? Has the EMIF been configured properly?
>dilipkpatel wrote: >> hi, >> >> i can not access the sdram using the PCI. >> >> can anybody give the sample application & Driver that take data from
the
>> sdram using the PCI. >> >> thanks, >> Dilip >> >> > >Did you setup one of the PCIBAR registers to map to that address range? > Has the EMIF been configured properly? >
Hi All, i had setup the BAR0 with 0x80000000 and Emif has intilised in the Board support Libary (BSL). but i can not able to access the SDRAM. have i required to initilised the additional EMIF configuration register? can you provide me the sample application for that? thanks for your response. Dilip Patel
dilipkpatel wrote:
>> dilipkpatel wrote: >>> hi, >>> >>> i can not access the sdram using the PCI. >>> >>> can anybody give the sample application & Driver that take data from > the >>> sdram using the PCI. >>> >>> thanks, >>> Dilip >>> >>> >> Did you setup one of the PCIBAR registers to map to that address range? >> Has the EMIF been configured properly? >> > > Hi All, > > i had setup the BAR0 with 0x80000000 and Emif has intilised in the Board > support Libary (BSL). > > but i can not able to access the SDRAM. > > have i required to initilised the additional EMIF configuration register? > > can you provide me the sample application for that? > > > thanks for your response. > Dilip Patel
I don't have an application. Sorry. Can you correctly access INTERNAL memory through the PCI? This is a good way to verify your PCI connection is correct. Using the CPU can you reliably read/write SDRAM? This is a good way to verify your EMIF configuration is correct. You may also want to try reading/writing SDRAM through CCS memory window(though don't be too reliant on gel file to setup EMIF for end application). I like using BOTH of these tests because if you aren't properly refreshing the SDRAM you might actually pass a CPU read/write test if it is quickly writing and reading the entire SDRAM. That is, because of the fast nature the CPU might be "manually" refreshing pages by opening them for reading/writing. Opening through the memory window is very slow in SDRAM-time so if there's a refresh problem it should be apparent. Can you access the EMIF configuration registers through the PCI? Take a look at them and make sure they're set to the values you think they should be. Brad