mjaakkol / bme680_esp_idf

BME680 software build on top of ESP-IDF 4.0 generation and Bosch BSEC stack
MIT License
11 stars 2 forks source link

error while initializing bme680 sensor #4

Open ameerhazo opened 3 years ago

ameerhazo commented 3 years ago

Hi @mjaakkol, thank you for creating this repo to show newbs like me how to build the BSEC lib on the IDF Framework. I've managed to build the project but unfortunately, I'm getting this error code during initialization phase of the code. Any ideas how I can fix this probem?

E (1374) bme680_sensor: initializing BME680 failed -2

mjaakkol commented 3 years ago

BME680 library is a blackbox to me so your guess is probably as good as mine on what potentially went wrong. However, as you are providing various callbacks for reading and writing to I2C as well as fetching the configuration so it is likely that some of those are not in happy place. If the function calls are successful, you may want to check your NV-memory initialization.

ameerhazo commented 3 years ago

Hi @mjaakkol, thanks for the reply, I'm using the exact same code in the main. I'll look into the NVS stuff.