BME680 with PSOC63

Hi

I am using PSOC 63 dev board cy8ckit-062-BLE  with SPI interface

I am trying to read the chip ID but it is not working with my code,here is my code snippet

Is there any sequence to be followed to read chip ID.Please help

uint8_t transmit_data = 0xD0 //To read chip ID

for (;;)
{
// Transfer one byte of data to the slave.
if (CY_RSLT_SUCCESS == cyhal_spi_send(&mSPI, (uint32_t) transmit_data))
{
printf("*************** "
"Data send "
"*************** \r\n\n");
if (CY_RSLT_SUCCESS == cyhal_spi_recv(&mSPI, (uint32_t*) &receive_data))
{
printf("*************** "
"Data received "
"*************** \r\n\n");

}
}

1 reply