Question
wrong data on SPI data register
I am trying to send 16bits through spi3 of stm32f205rct6. The problem is that the data in my array differs from the data in SPI3->DR.
uint8_t config_data[2]={0xD2,0x8B}; // 1 101 001 0 100 0 1 01 1
uint8_t rx_data[2]={0};
while (1)
{
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_15,GPIO_PIN_RESET); // ss
HAL_Delay(10);
HAL_SPI_TransmitReceive(&hspi3,config_data,rx_data,2,10);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_15,GPIO_PIN_SET);
}
I expected D28B in DR. What is wrong?
