This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

External EEPROM via I2C (Non-constant address declaration issue)

Hi,

EX_1.rar

Can I define "non-const" variable for writing data via I2C using "APP_TWI_Write" function? Similar for read.

When using External "EEPROM" one should define register address and data to be stored as a dynamic variable rather than const.

When I try to use macros, compiler says "error: initializer element is not constant".

Is it possible to communicate with EEPROM via I2C using "TWI transaction Manager"?

Any advice on this would be great.

Regards

Siva

Parents Reply Children
No Data
Related