AM263x MCU+ SDK  09.02.00
I2C Memory Read Polling LLD

Introduction

This example demonstrates writing data to & reading data from the EEPROM connected to the I2C controller. Application writes 10 Bytes to the EEPROM in interrupt mode and then reads back the same 10 Bytes.

The application makes use of the I2C LLD driver and it's memory read/write polling APIs.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Boards am263x-cc, am263x-lp
Example folder examples/drivers/i2c/i2c_memory_read_polling_lld

Steps to Run the Example

See Also

I2C Low Level Driver

Sample Output

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

[I2C] LLD Memory Read test Started ... !!!
[I2C] Application will write 10 consecutive bytes in polling Mode to EEPROM memory address 0x400 ...
[I2C] Application will Read 10 consecutive bytes in polling Mode from EEPROM memory address 0x400 ...
[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!!