cancel
Showing results for 
Search instead for 
Did you mean: 

I2C protocol communication

harshpanchal_6
Associate III

Hello Community,

I’m currently working with an STM32G4 MCU and the BQ7697202 BMS IC, and I’m trying to establish basic I2C communication between the two. According to the BMS IC datasheet, I’ve configured the I2C address correctly, but I’m still unable to detect the IC on the bus.

Additionally, I implemented an I2C scan to search for available devices, but the scan returns “No device found.” Please find the attached I2C configurations for the reference.  

Any guidance or suggestions would be greatly appreciated.

Thank you!

 

i2c_config-1.PNG

i2c_config-2.PNG

  

1 REPLY 1

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results; in particular, please provide full hardware details and show your code.

 

Have you used an oscilloscope to verify your I2C waveforms? In particular, this will show if you have pullup problems.

Have you used an analyser (or the scope) to verify your I2C comms?

 

PS:

The BQ7697202 is a TI product - nothing to do with ST.

https://www.ti.com/product/BQ76972

Have you posted on their forums to verify your setup?

https://www.ti.com/product/BQ76972#support-training 

You could post your analyser trace there for their comment ...

 

PPS:


@harshpanchal_6 wrote:

I implemented an I2C scan to search for available devices, but the scan returns “No device found.” 


Have you tested it with any other I2C devices?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.