cancel
Showing results for 
Search instead for 
Did you mean: 

CONFLICT WHEN USING I2C1 STM32F4 DISCOVERY

bacnk
Associate

I use STM32F4 Discovery, and when using I2C1 for communication, I encounter a situation where the chip becomes unresponsive while using UART and during operation with I2C1. When I use other I2C interfaces, it works normally. I want to understand what is causing I2C1 to make the chip unresponsive.

When I use other I2C interfaces, the response is only within 100ms, but when using this I2C interface, the response takes several seconds

thanks you

2 REPLIES 2
Andrew Neil
Evangelist III

Have you checked the board's User Manual and/or Schematics to see if there's anything else on that pin?

Example just now:

https://community.st.com/t5/stm32-mcus-products/low-voltage-for-logic-high-on-nucleo-g431kb/td-p/737306

 

Imen.D
ST Employee

Hello @bacnk 

Make sure that there are no resource conflicts between I2C1 and other peripherals and that I2C1 is correctly initialized and configured in your code.

I advise you to enable timeout register and use an oscilloscope or logic analyzer to monitor the I2C bus.

 

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