10-01-2020 04:36 PM
Hello,
I am getting some issue initializing the BME280 sensor using the BOSCH API on GitHub. I am using a STM32L476RG microcontroller
To make sure the initialization is well done, I am trying to read the chip_id and store it in an array. I am getting 0 as chip_id instead of 0x60.
I am maybe missing up a point in the BME sensor initialization. I attach my main.c in a zip file
Could you please help me with it?
Best regards,
10-01-2020 05:40 PM
Hi,
Thanks for your inquiry.
If you cannot get the correct BME280 chip_id, then it means that your I2C or SPI communication is not working. Please use a logic analyzer to monitor the I2C or SPI bus to debug the communication issue.
Thanks.