Visitor II
September 3, 2018
Question
SPI between F769I and F446RE not working
- September 3, 2018
- 0 replies
- 392 views
Hi,
I'm trying to implement a basic SPI full-duplex between two STM32.
I have set up an F769I as Master, which works just fine. However the F446RE Slave doesnt transmit anything.
I used CubeMX to create the project (file attached).
The Master currently does HAL_SPI_Receive in 1 second intervalls.
For the Slave:
uint8_t send = 20;
while(1)
{
HAL_SPI_Transmit(&hspi2, &send, 1, HAL_MAX_DELAY);
while(HAL_SPI_GetState(&hspi2) != HAL_SPI_STATE_READY);
}
I'm new to STM32, so what am I doing wrong?
Thanks
