Skip to main content
Visitor II
April 4, 2024
Solved

STM32H747 evaluation board I2C

  • April 4, 2024
  • 2 replies
  • 1114 views

Hi!I'm having some troubles in configuring the I2C bus on my STM32H747 evaluation board.

I've configured it in CubeMX as in the image below, using DMA buffer (rx and tx). Gpio pins are configured as open drain (no pull) and hardware is ok.

It seems like the peripheral is not correctly initialized because I can't see any toggle of SCL pin on my scope (both SCL and SDA go low during initialization but, after that, they don't move anymore).

Can someone help me please?

Thanks

 

Sunshine_0-1712232606219.png

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    April 4, 2024

    Hello,

    Did you configure the pull-ups on SDA/SCL pins?

    PS: you can inspire from this example provided in STM32CubeH7 package.

    SunshineAuthor
    Visitor II
    April 4, 2024

    Thanks SofLit, I've already looked at that example, but it doesn't use DMA..

    can you tell me if there is any command (about initialization) that I have to add to the code generated by the Cube? There is any command related to the timer enable?

    Thanks

    mƎALLEmAnswer
    Technical Moderator
    April 5, 2024