|
hi, I habe designed a AT91sam9xe512 based custom board. I have connected a FPGA to the EBI on NCS2. this FPGA in turn connects to some other peripherals on board. I have configured SMC on NCS2 for frozen mode and I am controlling the NWAIT by FPGA. what I need is like this: whenever the program access the externanal memory on NCS2 (FPGA in my case), the program shall wait for WAIT to disable before executing next statement/instructions.
for the testing purpose, I have made NWAIT permanently LOW (through FPGA). My program is as follows:
{ print("start of command 1"); delay(); sram_add(0)=1; delay(); print("end of command 1"); sram_add(0)=2; print("end of command 2"); }
what is happening is like this: it prints the string start of command 1 and also prints end of command 1 and it then stops. i.e. stops at second access of NCS2.
Any suggestions please. Thanks.
|