2020-10-29 04:04 AM
HAL_SPI_TransmitReceive(&hspi1,tx_sensor_data,rx_sensor_data,8,0);
I want sent 8bytes, but only 2bytes sent, why?
Solved! Go to Solution.
2020-11-11 01:35 AM
I solved it. The general set is wrong. Must set 8 bits not 4bits or 2bits
2020-10-29 04:49 AM
You have a timeout of 0, which may be the issue. If you want it to be blocking, use HAL_MAX_DELAY.
2020-11-11 01:35 AM
I solved it. The general set is wrong. Must set 8 bits not 4bits or 2bits