Introduction
This example demonstrates reading data from I2C based EEPROM devices present in the board. Application reads 20 samples from the EEPROM and exits.
- Attention
- For AM64xSK, Board ID EEPROM address is 0x51u.
Supported Combinations
- Attention
- A53 NORTOS support is experimental and is NOT supported by TI.
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
a53ss0-0 nortos |
a53ss0-0 freertos |
Toolchain | ti-arm-clang |
arm.gnu.aarch64-none |
Board | am64x-evm, am64x-sk |
Example folder | examples/drivers/i2c/i2c_read |
Steps to Run the Example
See Also
I2C
Sample Output
Shown below is a sample output when the application is run,
[I2C] Read data ... !!!
[I2C] Sample 0: 255
[I2C] Sample 1: 255
[I2C] Sample 2: 255
[I2C] Sample 3: 255
[I2C] Sample 4: 255
[I2C] Sample 5: 255
[I2C] Sample 6: 255
[I2C] Sample 7: 255
[I2C] Sample 8: 255
[I2C] Sample 9: 255
[I2C] Sample 10: 255
[I2C] Sample 11: 255
[I2C] Sample 12: 255
[I2C] Sample 13: 255
[I2C] Sample 14: 255
[I2C] Sample 15: 255
[I2C] Sample 16: 255
[I2C] Sample 17: 255
[I2C] Sample 18: 255
[I2C] Sample 19: 255
[I2C] Read data ... DONE !!!All tests have passed!!