I2C Scanner

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C Scanner

639 Views
raduansarif
Contributor I

Hello, I am using MKL27Z128LH4 MCU and  MCUxpresso IDE, with different sensors and I2C communication. Now I could not find out one sensor in I2C. In order to find out that device in I2C,  I want to use the I2C scanner.  I am requesting your help with the I2C scanner, how will I get it..?? 

 

Thank you

Raduan

0 Kudos
1 Reply

631 Views
ErichStyger
Senior Contributor V

Are you looking for something which scans the I2C bus and reports the devices found on it?

See https://mcuoneclipse.com/2012/12/23/csi-crime-scene-investigation-with-i2cspy-and-freedom-board/ and the implementation of it (working with the MCUXpresso SDK as well) is on GitHub here:

https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuI2CSpy.c

It features scanning the bus, including a command line interface, plus the ability to read and dump the device memory map and content.

I hope it helps,

Erich

0 Kudos