AM62x MCU+ SDK  10.01.00
I2C Read

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 SK-AM62, Board ID EEPROM address is 0x51u.

SCL and SDA pins of MCU_I2C0 are available at the MCU_HEADER in the board. MCU_I2C0 can be connected to Board ID EEPROM through making the following jumper connections as shown in the image.

  • Connect Pin 21 of J9 (MCU_I2C0_SDA) to Pin 27 of J3.
  • Connect Pin 24 of J9 (MCU_I2C0_SCL) to Pin 28 of J3.

JUMPER CONNECTIONS FOR I2C

To modify the example to use main/wakeup domain I2C, refer Accessing main and wakeup domain peripherals from MCU domain

Supported Combinations

Parameter Value
CPU + OS m4fss0-0 nortos
r5fss0-0 freertos
a53ss0-0 freertos
Toolchain ti-arm-clang
arm.gnu.aarch64-none
Board am62x-sk, am62x-sk-lp, am62x-sip-sk
Example folder examples/drivers/i2c/i2c_read

Steps to Run the Example

Attention
As the wake-up R5 is the device manager, it needs to be started by the SBL. So it can not be loaded through CCS. It should be flashed and booted through SBL.

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!!