Skip to main content
Visitor II
July 3, 2025
Question

I2C timing on STM32u385 Nucleo

  • July 3, 2025
  • 3 replies
  • 965 views

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

    This topic has been closed for replies.

    3 replies

    RiyadAbdAuthor
    Visitor II
    July 3, 2025

    Also see io muxing attached and timing

    Super User
    July 3, 2025

    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.

    ST Employee
    July 11, 2025

    Hello @RiyadAbd,

    This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

    Best regards,
    Maxime

    RiyadAbdAuthor
    Visitor II
    July 11, 2025

    Hi Maxime, 

    This is no longer an issue please close.

    Thank you

    Super User
    July 11, 2025

    @RiyadAbd wrote:

    This is no longer an issue please close.


    You close the issue by marking the solution - see:

    https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256