AM261x MCU+ SDK: I2C Memory Read

| AM261x MCU+ SDK 26.00.00 |

I2C Memory Read

# Introduction

This example demonstrates writing 10 Bytes of data to I2C based EEPROM devices present in the board and then reading back the same data from the EEPROM.

# Supported Combinations

Parameter | Value
--- | ---
CPU + OS | r5fss0-0 nortos
r5fss0-0 freertos
Toolchain | ti-arm-clang
Boards | am261x-som, am261x-lp
Example folder | examples/drivers/i2c/i2c_memory_read

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

# See Also

I2C

# Sample Output

Shown below is a sample output when the application is run,

[I2C] Writing data to EEPROM ... !!!
[I2C] Reading data from EEPROM ... !!!
[I2C] Data at address 0x400 : 0x0
[I2C] Data at address 0x401 : 0x1
[I2C] Data at address 0x402 : 0x2
[I2C] Data at address 0x403 : 0x3
[I2C] Data at address 0x404 : 0x4
[I2C] Data at address 0x405 : 0x5
[I2C] Data at address 0x406 : 0x6
[I2C] Data at address 0x407 : 0x7
[I2C] Data at address 0x408 : 0x8
[I2C] Data at address 0x409 : 0x9
All tests have passed!!