Sample Rate does not match with the sampling rate allowed for that sensor

I am using the STM32F203C8T6 microcontroller to integrate the BM680 sensor. The IDE I am using is Keil5 (v5.36), and the compiler version is armcc v5.06. The library version for algobsec is 2.4.0.0. The configuration I am using is "bme680_iaq_33v_3s_4d" with a sample rate of BSEC_SAMPLE_RATE_LP (low power). Everything was working fine on Raspberry Pi 4 before migrating to the STM32F203CBT6.

When I call the bsec_update_subscription() function, I receive a warning before enabling MicroLIB,

The warning code is -16, and the description states that the sample rate of the requested output (virtual) sensor passed to bsec_update_subscription() is not correct.

After enabling MicroLIB, I encounter another warning with error code -12. The description indicates that the sample rate of the requested output (virtual) sensor passed to bsec_update_subscription() does not match the sampling rate allowed for that sensor.

 

Best reply by BSTRobin

Hi Mark-Walen,

As you used BSEC2.4.0.0, you can refer attached example code on STM32F4.

BSEC_2.4.0.0_ExampleCode.zip
20.05KB
View original
4 replies
Resolved