Skip to main content
RKade.1
Associate III
October 30, 2020
Question

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

  • October 30, 2020
  • 2 replies
  • 763 views

..

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
October 30, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
RKade.1
RKade.1Author
Associate III
November 1, 2020

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

Tesla DeLorean
Guru
November 1, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..