Hi,
I am having some trouble getting the synchronous GPMC read with wait enable to work. I have read through the wiki posted on the GPMC interface here on this forum, as well as the tech manual, but cant figure out what I am doing wrong. Here is my GPMC configuration, I am using CS1:
./pp -w 0x6e000090 0x28411201
./pp -w 0x6e000094 0x000c1C00
./pp -w 0x6e000098 0x00060602
./pp -w 0x6e00009c 0x0c081C06
./pp -w 0x6e0000a0 0x011A0E1A
./pp -w 0x6e0000a4 0x88060000
Here are my questions:
1) Is there a timing requirement on when wait has to be asserted? Various timing diagram in the tech manual show it asserted at different times, when CS is asserted, when ADV is asserted, etc. My understanding is that it can be asserted anytime before rdaccesstime is up, and when it does it should freeze the access indefinitely until it is deasserted when valid data is available, is this correct?
2) Related to 1). While wait is being asserted and read cycle in being frozen, I expected the gpmc_clk to continue to run indefinitely so that the device could drive back the wait deasseration on the rising edge of gpmc_clk, being this is a synchronous interface. I don't see that happening on my scope. I see the clock going away in the middle of my wait asseration, thus causing the wait to unable to deassert due to the gpmc_clk is no longer there.
3) I am getting a seg fault while trying to do the read access with wait. I don't how to interpret the dump from the seg fault to give me some clues what is wrong with it, any suggestions on that?
Thanks for the help.
Donald