AnsweredAssumed Answered

Strange SPI problem

Question asked by bandari.franck on Mar 24, 2014
Latest reply on Mar 27, 2014 by bandari.franck
Hello everybody,

I am trying to interface two STM32F3 boards with SPI port in full duplex with interruption.
One board acts as Master and the other one as a Slave.

The Master sends a command,  then the 4 Byte from TxBuffer.
When the slave receives this command, it enables the transmission buffer interrupt to send an ACK, then a 4 Byte from TxBuffer.
The problem is that the 4 Bytes sent by the slave, i received only 2 Bytes.
My BaudRate set up is : SPI_BaudRatePrescaler_8;
If i slow down this by putting : SPI_BaudRatePrescaler_256; i can receive 3 Bytes

You find  enclosed the code written for the Master and the Slave.

Thanks in advance of any help.

Attachments

Outcomes