Other Parts Discussed in Thread: AM3358
Hi guys,
I am using a SPI for communication with our sensors. There is one register on sensor, which is known as WHOAMI and when I send there 0x75 | 0x80, I should reacieve a value of 0x68. When I used this configuration "MCSPI_DATA_LINE_COMM_MODE_1" and the connection is SPI_D0 as MOSI and SPI_D1 as MISO, evertything is working properly, but when I try to change these pins (SPI_D1 as MOSI and SPI_D0 as MISO) and change configuration to "MCSPI_DATA_LINE_COMM_MODE_2", my analyzer always shows me that I transmitted and received the correct values, but in my buffers and registers on an AM3358 looks, that the communication is working in loopback, so I have in transmit register and receive register the same values, the transmit ones. How you can see, my code is depended on your example "mcspiFlash". Do you anybody have an idea where do I have an mistake?
And second questiong. I am using the SPI0, but I need to hae SPI0_CS1 instead of SPI0_CS0. I cannot find in which mode I should set up the GPIO.
Can you please help me?
Thank you, Stan