On board HTS221 temperature sensor read values higher than expected
Environment
- Board: B-U585I-IOT02A (STM32U585AIIXQ)
- STM32CubeIDE, FreeRTOS (CubeMX-generated), CMSIS-RTOS v2
- Driver: ST vendored HTS221 component driver (`hts221.c` / `hts221_reg.c`),
untouched, accessed through the public `stmdev_ctx_t` of the object layer
- I2C2 @ standard mode, internal pull-ups, 1 Hz sampling in one-shot mode
Hi, application on the **B-U585I-IOT02A** discovery kit (STM32U585, FreeRTOS, STM32CubeIDE). The onboard HTS221 humidity/temperature sensor is driven by ST's vendored driver from BSP.
Symptoms that i am experiencing: Right after reset (cold boot), the HTS221 reports **~20 °C, then over the following minutes of operation the reading rises steadily and settles at **~30 °C**, while the actual room temperature stays ~20 °C.
The drift is smooth and monotonic (thermal-looking), not noisy or jumpy.
I have already verified that BSP driver conversion formula is correct. Also HTS221 internal heater is disabled.
My sensor configuration:
HTS221_Set_One_Shot(&hts_obj);
hts221_humidity_avg_set(&hts_obj.Ctx, HTS221_H_AVG_512);
hts221_temperature_avg_set(&hts_obj.Ctx, HTS221_T_AVG_256);
/* heater bit cleared in CTRL_REG2 */
HTS221_HUM_Enable(&hts_obj);
HTS221_TEMP_Enable(&hts_obj);My current hypotheses is that on board component heating up and cause sensor reading to be distorted.
Has anyone encountered it and whether it is known bug?
