cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing bosch bme688 sensor with Stm32

Mayank_07
Associate

Hello,
I’m working on interfacing the Bosch BME688 sensor with my STM32 Nucleo-F446ZE development board using the BSEC library. The sensor is correctly providing temperature, pressure, humidity, and gas resistance data. However, I’m facing an issue when trying to calculate the IAQ (Indoor Air Quality).

The function bsec_do_steps() returns the following errors during debugging:

  • BSEC_E_DOSTEPS_VALUELIMITS
  • BSEC_I_DOSTEPS_NOOUTPUTSRETURNABLE

Here’s what I’ve done so far:

  1. Initialized the BME688 and configured it in forced mode using settings from bsec_sensor_control().
  2. Populated the bsec_input_t array with sensor data and called bsec_do_steps().
  3. Verified that timestamps and sensor signals are correctly passed.

Despite this, IAQ outputs are not generated. I suspect the issue might be related to input data limits or incorrect configuration, but I’m not sure how to resolve it.

Has anyone encountered similar errors or could provide guidance on resolving these issues?
Any help would be greatly appreciated!

Thanks in advance!

1 REPLY 1

@Mayank_07 wrote:

 The sensor is correctly providing temperature, pressure, humidity, and gas resistance data. !


So the problem is not in interfacing the sensor - that part is working fine?

 


@Mayank_07 wrote:

 using the BSEC library. 


This: https://www.bosch-sensortec.com/software-tools/software/bme680-software-bsec/ ?

That's Bosch's software - nothing to do with ST - you need to contact Bosch for support with their software.

https://community.bosch-sensortec.com/

 


@Mayank_07 wrote:

The function bsec_do_steps() returns the following errors during debugging:

  • BSEC_E_DOSTEPS_VALUELIMITS
  • BSEC_I_DOSTEPS_NOOUTPUTSRETURNABLE

So step into that function, and see what causes it to return those errors.

 

PS:

Also try googling those error names - this document refers to them, with suggested fixes:

https://git.digital-infinity.de/DigitalInfinity/ESP32-PaxCounter/raw/commit/17cd82da686440d9e41a3f8a2fab59e9441f43a0/lib/Bosch-BSEC/docs/BST-BME680-Integration-Guide-AN008-47.pdf

presumably it should be available direct from Bosh somewhere...