cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747 evaluation board I2C

Sunshine
Associate

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

This is an example in Cube using I2C with DMA:

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H743ZI/Examples/I2C/I2C_TwoBoards_ComDMA

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

Hello,

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

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

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Sunshine
Associate

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

Hello,

This is an example in Cube using I2C with DMA:

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H743ZI/Examples/I2C/I2C_TwoBoards_ComDMA

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.