cancel
Showing results for 
Search instead for 
Did you mean: 

I2C4 does not work using the STM32H745 Discovery Kit

BGibs
Associate II

I am trying to use I2C4 Pins PD12 (SCL/D15) and PD13 (SDA/D14) but cannot get it to work. I used CubeMX to generate my project. Also, I am using the Cortex M7 for the I2C4 connections. Please tell me how I can get I2C4 to work with the  STM32H745 Discovery Kit

1 ACCEPTED SOLUTION

Accepted Solutions
BGibs
Associate II

I have solved my issue. It looks like the sensor, I was using was faulty which made it look like I2C4 did not work using the STM32H750 Discovery Kit and STM32H745 Discovery Kit.

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @BGibs​ 

Make sure to configure correctly the clock.

Did you check other pins?

  • I2C4_SDA, (PF15, PH12,..)
  • I2C4_SCL (PF14, PH11..)

We need more details in order to deduce if the problem here seems related to the hardware or software environment.

Check the signals on the SCL/SDA pins and try debug your project to identify what is going wrong.

Try other board, maybe you have a problem with this board.

Please follow this article which describes few tips related to I2C peripheral on STM32 devices: STM32 I2C does not work.

Please, keep us informed about your progress on this issue.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
BGibs
Associate II

Hi, so sorry for the late response. i tried the same setup with the STM32H750 Discovery Kit and is getting the same issue of I2C4 pins PD12 and PD13 not working. I used CubeMX to generate the I2C4 setup code so I should be able to use I2C4 with no issue. I have the STM32WB55 Nucleo board that works with no issue.

BGibs
Associate II

I have solved my issue. It looks like the sensor, I was using was faulty which made it look like I2C4 did not work using the STM32H750 Discovery Kit and STM32H745 Discovery Kit.