Solved
Why the number of data I sent is wrong when using HAL_SPI_TransmitReceive() ?
HAL_SPI_TransmitReceive(&hspi1,tx_sensor_data,rx_sensor_data,8,0);
I want sent 8bytes, but only 2bytes sent, why?
HAL_SPI_TransmitReceive(&hspi1,tx_sensor_data,rx_sensor_data,8,0);
I want sent 8bytes, but only 2bytes sent, why?
I solved it. The general set is wrong. Must set 8 bits not 4bits or 2bits
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.