cancel
Showing results for 
Search instead for 
Did you mean: 

I2C timing on STM32u385 Nucleo

RiyadAbd
Visitor

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

2 REPLIES 2
RiyadAbd
Visitor

Also see io muxing attached and timing

TDK
Super User

Do the example I2C projects work?

STM32CubeU3/Projects/NUCLEO-U385RG-Q/Examples/I2C/I2C_TwoBoards_ComDMA at main · STMicroelectronics/STM32CubeU3

 

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.

If you feel a post has answered your question, please click "Accept as Solution".