Hi,all
I use EMIF of TMS570LS3137 as interface to a chip ,I want to read and write registers in that chip ,but I found something wrong .I write some data like 0x55AA to the register,bue when I read back ,the data may be 0x75AA,I am sure all the bits in the register is readable and writeable,and the data bus I use is 16bit, I use the function "initMPU()",
Then I delete the function initMPU(), the problem seems disappear ,but I am not sure it will happen again because I just read and write one register , next I will use EMIF to read and write SRAM .
I use oscilloscope to observe the signal of CS ,RD,WE of TMS570LS3137,the WE signal seems good ,but CS and RD signal seems abnormal ,when I read register once ,but CS and RD signal changes several times ,I don't understand why this happens .
I use CS2 as EMIF chip select zone signal ,and the type I choose is DEVICE_SHAREABLE.
Hope to get answer soon .Thank you !