Hi BSTRobin,
I am not able to get the BME688 up and running and facing issues and need your help.
Here are the list of things I have done so far following the "BST-BME688-Integration-Guide-AN008-06.pdf" document.
- Took following files from "BSEC_2.0.6.1_Generic_Release_04302021" repo : bme68x.c, bme68x.h, bme68x_defs.h, bsec_datatypes.h, bsec_interface.h, bsec_serialized_configurations_selectivity.c, bsec_serialized_configurations_selectivity.h
- As our source code is written in C and in the above repo has "bsec.cpp" file present so I had to convert this file from .cpp to .c. (Attached)
- Execution sequence :
- "bsec_init()" is successfull and able to read the BSEC version information.
- "bsec_set_configuration" returns -34 (BSEC_E_CONFIG_VERSIONMISMATCH) insted of 0(BSEC_OK).
- "bsec_update_subscription" returns 0(BSEC_OK).
- "bme68x_init" returns 0(BSEC_OK).
- In a infinite loop, executing "read_sensor_and_process_data" or "Bsec::run"(in bsec.cpp).
- Inside "set_bme68x_parallel_mode" is called and "bme68x_set_heatr_conf" functions returns -2 (BSEC_E_DOSTEPS_VALUELIMITS) after which it exits the function and runs in a loop.
Can you please let me know where is the issue ?
I have attached the converted c file and logs for your reference.