It sounds like your I2C works during setup but fails in the loop, which may indicate timing or bus handling issues on the STM32. Make sure you’re properly handling I2C interrupts and not blocking the bus in your main loop. Also, check that your I2C clock speed matches what the PPS module supports. STM32’s HAL I2C functions sometimes behave differently from Arduino’s Wire library, so review how you manage repeated start conditions and error handling. Double-check pull-up resistors on the I2C lines and confirm the voltage levels are stable at 3.3V during runtime.
Subcategories
-
510
Topics1.9k
Posts -
197
Topics984
Posts -
481
Topics1.8k
Posts -
1.3k
Topics5.5k
Posts -
51
Topics195
Posts -
235
Topics788
Posts