STM32CubIDE SPI Slave receive 3wire or half duplex

Job ID: 34025155

Budget: $30 – $250 NZD

Amend the attached code that should receive 3 bytes and then resend them on half duplex SPI.
However the SPI receive function HAL_SPI_Receive(&hspi1, (uint8_t *)spi_buf, 3, 100); does not receive any data
Related categories: STM32