SPI communication between two STM3 boards
Hi All,
Hope you are doing well.
I am working on SPI communication between two STM32 boards (F7 as master and WB55 as slave), but I am encountering issues with reliable data transfer.
The problem arises with the transfer of 2-byte data packets. Initially, the data is transmitted successfully for a certain number of iterations, but after that, the received data becomes corrupted. Additionally, there are instances where the received data is incorrect from the very beginning of the communication.
I am using the example SPI communication code provided by STM32, with one board configured as master and the other as slave.
Has anyone experienced similar issues or can provide insights on how to ensure more reliable data transfer between the boards?
MY SPI Settings:
| Parameters | Master | Slave |
| Data Size | 8 bits | 8 bits |
| First Bit | MSB First | MSB First |
| CPOL | Low | Low |
| CPHA | 1 Edge | 1 Edge |
| MOSI | Pull Down | Pull Down |
| MISO | Pull Down | No pull up and No pull down |
| SCK | Pull Down | No pull up and No pull down |
Any help or tips on this will be helpful.
Thanks & regards,
Pluto
