2025-04-29 9:10 PM - last edited on 2025-05-06 2:31 AM by KDJEM.1
Initialization issues, i2c communication with ccs811(air quality indicator module) using stm32u083cc mounted/swapped on stm32f411(blackpill) board. Only the hdc1080(RH/Temp) board connected on the same lines works.
Strangely, with stm32f411ce mounted on blackpill the same code works w/o any issues and I could read data from hdc1080 and well as ccs811.
In both the cases the initialization code was generated by stm32cubeMX. The code generated for 32f411 makes sense.
The i2c init code generated for 32f411 in -MX is very different from 32u083. Tried changing rise/fall time, digital filter coeff(0-15), enabling/disabling analog filter/no-stretch.
2025-05-15 6:44 AM
Hello @skc and welcome to the community;
I think the Demonstration in STM32CubeU0 package can help you to check your code. You can find in this demonstration an air quality demo.
In this demonstration a MIKROE-2953 Sensor module allows the measurements of the air quality. This done through the use of an I2C based MICROE (CCS811) sensor.
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.