I am using BME680 with nRF52840 (ARM Cortex M4 with FPU). IDE: Segger Embedded Studio. Compiler: gcc. Normal version of BSEC, Cortex M4F.
Temperature and humidity metering works just fine. BSEC status is OK. But IAQ accuracy remains 0, IAQ remains 25, CO2 equivalent remains 500. Running LP mode. Tried to wait more than hour for sensor to initialize.
Attached file bme_user.c is done according to provided bsec_iot_example.
I found this example in community topic https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BME-680-IAQ-stuck-at-25-and-accuracy-alw...
Attacehd file bme_user_modified.c is done according to community topic - It is adding bsec_update_subscription(), bsec_serialized_configurations_iaq - generic_33v_3s_4d and changing config_load()
Am I missing anything? Could you please help?
I checked bme_user_updated.c, didn't find anything is incorrect, but I have one point to doubt that your timestamp is not appropriate.
It is not the system timestamp, only the variable value you created, probably it can not be used as BSEC timpstamp.
I share my source code which is STM32fF411 platform, it is similar with your bme_user_updated.c.
Hopefully, it helps you.
thanks for exampe code. It seems to be very similar to my code. I am still not able to run it succesfully.
Problem should not be timestamp. Function "HAL_GetTick()" only returns number of elapsed miliseconds from the start of program.
I use the same configuration file ".\BSEC_184.108.40.206\config\generic_33v_3s_4d\bsec_serialized_configurations_iaq.h"
Do you have any other idea where the problem could be?