cancel
Showing results for 
Search instead for 
Did you mean: 

2 Chips with Different i2C Address on same I2c Bus , here how to ensure which i2c data is recieved? If any example for stm32f072 please share . Thanks , Rohit

RKade.1
Associate III
 
3 REPLIES 3

Check that each chip NACK to its slave address.

Check the error/status codes returned by the HAL_I2C functions.

You'll need to sequence your code such the it queries one at a time.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RKade.1
Associate III

Ok ,.

Actually am using SPL and Not HAL.

Can you please share more on NACK to Slave Address? How to confirm it?

I am not much familiar to it.

Rohit

It is part of the I2C protocol, should be detected and flagged as part of the driver implementation.

If you are currently having an issue, see how the driver is reporting error/status conditions, and how you react to them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..