2022-03-23 10:37 PM
2022-03-24 06:10 AM
Hard to offer much advice with such limited information. You can edit your post to add additional information.
HAL_SPI_TransmitReceive with 2 bytes of data should work, there are SPI examples in the Cube repository that you can follow.