AnsweredAssumed Answered

ECSPI skipping a byte while sending data from slave to master

Question asked by harish Ganesan on Dec 4, 2017
Latest reply on Jan 4, 2018 by Carlos_Musich

Hi ,

I am trying to communicate with two imx7d Sabre SD boards using ECSPI. The master board sent a "Hello World" and the slave in return sent a "Hello World" in the sample program. The slave is first allowed to fill its TXFIFO, after which master initiates the transactions. While the master sends all the bytes properly, the slave omits the first byte and starts to send data from the second byte onwards. I have attached the code which created this problem. Is there any specific reason, why this happens or is it something which is wrong with my code?  

 

Regards ,

G.Harish

Attachments

Outcomes