This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SPI communication between two 29069 processor, 1st byte incorrect



Hi,

I'm working on a protocol between two 29069 processor, one is slave the other master. I send messages to the slave and it will sometime respond (some messages are just 'SET'  message, others are 'GET'. Since the message from the slave can vary in length I let the master detect the length of each message. When a byte is received by the master that is not 0xFF, the byte will obviously be the message length. Well this can easily be realized by using the 'TALK' option for the slave, so TALK = '0'. Once, I want the slave to start responding to message I enable TALK, and start sending my data.

The problem that I now have is that each time the 1st byte that is received by the master is not correct, for example I expect '0x06' but is something like 0xFE. Since this will start the reception of the message I can see that the remaining bytes that are received are correct. I think this might be related to using this TALK option, currently I have a workaround to first send a 'dummy' 0xFF (which by the way is also not correctly received by the master) but the next bytes (including my length byte) are correctly received.

Is there someone that can help me in either confirming this problem, or pointing out something that I might be doing or assuming that is not correct.

  • Hi Alfred,

    Even I encountered the same issue and used an offset/dummy variable to receive correct data. I never bothered checking for the solution, why that was happening. As for now as you've created this thread, I hope a knowledgeable person solves our query.

    Regards,

    Gautam

  • Hi

    We need to do some debugging. I would request you refer to

    http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/248177/987321.aspx#987321

    where i have answered a similar problem. We can start off from there and further discuss in this forum

    Regards

    Jawwad