Skip to main content
Visitor II
April 30, 2025
Solved

i2c with stm32u083

  • April 30, 2025
  • 1 reply
  • 499 views

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.

Best answer by KDJEM.1

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

1 reply

KDJEM.1
KDJEM.1Best answer
Technical Moderator
May 15, 2025

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.