Solved
MAX31856 SPI Communication problem
Trying to communicate MAX31856 With STM32F401
STM32CUBEIDE 1.15.1
ADAFRUIT MAX31856 Breakout Board
uint8_t data[2];
uint8_t addr_data[2]={0x04,0x00};
while (1)
{
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET);
HAL_Delay(10);
HAL_SPI_TransmitReceive(&hspi1,&addr_data,&data,2, HAL_MAX_DELAY);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET);
HAL_Delay(10);
}
}
Trying to Read Register 0x04 (Default Value = 0xC0)
But Getting Random 0x00 or 0x80 Values (Verifying with Logic Analyzer)
