2025-07-02 5:32 PM
Hi,
I am using NCLEO-U385RG-Q running STM32u385. I created a project using the board selector. I configured I2C2 using STM32CubeIDE to run in fastmode at 400khz for PINs PA6/PB2 per schematics described in MB1841. My clock sources are all defaults (see attached) also my calculated timings (attached).
I run the code and the timing doesn't match what I programmed. I am seeing an I2C clock at around 13.158 MHz. Can you please assist?
Thank you
2025-07-02 5:34 PM
2025-07-02 6:36 PM
Do the example I2C projects work?
The waveform has more things wrong than just the frequency. Start and stop bits are all over the place. Take an analog capture of SDA and SCL at the very start of the transaction to see if rise/fall times are acceptable.
You'll need external pullups in the 2 kOhm range to achieve reasonable speeds.