Hi ,all
These days I use EMIF_nCS4 as chip select zone reading data from FPGA, the databus in FPGA is 8 bit ,and I set the databus of TMS570LS3137 to be 8bit .See picture below
but when I read data , I use data_t = *(volatile UINT8)*(0x68000000+i);
I find it seems the TMS570LS3137 assumes the databus is 16bit ,and send low 8bit to data_t first time then high 8bit next time ,then the error occured,for example ,the data in FPGA is 0x01,0x02,0x03....then what I read from TMS570 is 0x01,0x00,0x03,0x00...it send the 0x00 I don't need ,and lost 0x02. it seems it read the databus is 0x0001 ,and skip 0x02 ,and instead read 0x0003....
How to solve this problem?
Hope to get answer soon.