09-26-2022 11:16 AM - edited 09-26-2022 11:17 AM
I am user stm32G070 with spi connect to bme688, and find the data not correct
Sample, TimeStamp(ms), Temperature(deg C), Pressure(Pa), Humidity(%), Gas resistance(ohm), Status
1, 46829, 106.39, -21015.71, 0.00, 82643128.00, 0x80
2, 49471, 106.39, -21015.71, 0.00, 82643128.00, 0x80
3, 52113, 106.39, -21015.71, 0.00, 82643128.00, 0x80
4, 54755, 106.39, -21015.71, 0.00, 82643128.00, 0x80
5, 57397, 106.39, -21015.71, 0.00, 82643128.00, 0x80
6, 60039, 106.39, -21015.71, 0.00, 82643128.00, 0x80
7, 62681, 106.39, -21015.71, 0.00, 82643128.00, 0x80
8, 65323, 106.39, -21015.71, 0.00, 82643128.00, 0x80
9, 67965, 106.39, -21015.71, 0.00, 82643128.00, 0x80
10, 70607, 106.39, -21015.71, 0.00, 82643128.00, 0x80
then run the self test check code, and got fail result:
API name [bme68x_selftest_check] Error [-5] : Self test error
Self-test failed
and I found that data[0].idac == 0, it mean that no heater,
so write the reg 0x5A for a value , and then read it out, the register 0x5A is still 0x00
the timing waveform is correct, so what can I do?
10-04-2022 05:15 PM
Hi xiaoheng,
The printf log of your "Temperature(deg C), Pressure(Pa), Humidity(%), Gas resistance(ohm), Status" were not correct.
You could refer attached example code which run on STM32F4, and check whether your migrated BME688 sensor API(https://github.com/BoschSensortec/BME68x-Sensor-API) to your platform successfully?