AnsweredAssumed Answered

Spi slave receive word from previous transfer

Question asked by Erica Magari on Jun 13, 2019
Latest reply on Jul 16, 2019 by Diego Adrian Cuevas

Hello, I have a problem with my spi slave driver. The master sends 10 words, and in my test application I want to receive only 8 of them. When I run my test application I receive the 8 words correctly. But when I run the test the next times, I receive as first word the 9th word, and then the 1-2-3-4-5-6-7 words.Trying the test again, I receive 8-1-2-3-4-5-6-7, so the first word is always the next I should have received in the previous test.

After each transfer I reset the receive fifo, so I do not understand why I read the 9th word. Is it possible that I have to reset other registers?

I am using the board i.mx8qmlpddr4arm2 with Yocto.

Thank you for the answers!

Outcomes