Error while interfacing bme680 sensor with my fpga board.

Ive inserted the bosch sesortec github library to my project which is https://github.com/boschsensortec/BME68x-Sensor-API/blob/master/bme68x.c#L234 but when Im running the program Iam not able to get the output. Im observing these two erros in my terminal window.

I2C Interface
API name [bme68x_init] Error [-3] : Device not found
API name [bme68x_get_data] Warning [2] : No new data found

The github files which ive included in my program are bme68x.h,bme68x.c and bme68x_defs.h.

Actually Ive digged up further and tried to find out the error so Ive made few changes in the bme68x.c file. 

int8_t bme68x_init(struct bme68x_dev *dev)
{
int8_t rslt;

rslt = bme68x_soft_reset(dev);
if (rslt == BME68X_OK)
{
rslt = bme68x_get_regs(BME68X_REG_CHIP_ID, &dev->chip_id, 1, dev);
if (rslt == BME68X_OK)
{
if (dev->chip_id == BME68X_CHIP_ID)
{
/* Read Variant ID */
rslt = read_variant_id(dev);

if (rslt == BME68X_OK)
{
/* Get the Calibration data */
rslt = get_calib_data(dev);
}
}
else
{
printf( "BME680 Invalid Chip ID 0x%02x, expecting 0x%02x\r\n", dev->chip_id, BME68X_CHIP_ID );
rslt = BME68X_E_DEV_NOT_FOUND;
}
}
}

return rslt;
}

In that,Ive written a printf statement for finding out the error so it appears that my chip id is not changing to bme6x chip id which is 0X61 instead my chip id is printing as 0x00. Can anyone help me to correct this error.

Thank You

Best Regards.,

5 replies