i.MXRT1021DAG5A I2C EEPROM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MXRT1021DAG5A I2C EEPROM

615 次查看
davidagraham
Contributor I

Hi, I am roughing in my system using the EVK-MIMXRT1020. On the evaluation board there is an i.MXRT1021DAG5A. I need a small amount of EEPROM to hold some calibration data. I have selected the Microchip 24AA04 I2C Serial EEPROM to accomplish this. I have used the SDK for the EVAL board and implemented the LPI2C4 on GPIO_SD_B1_02 and 03 so I have access on J19.

My questions:

1) Is there a better way to implement a small amount of EEPROM?

2) Can someone direct me to a code sample for the Microchip 24AA04 or larger that would hook in nicely to the SDK I2C driver?

0 项奖励
1 回复

555 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi David,

1. EEPROM I2C protocol is very simple and slow. You can use LPI2C driver in SDK. You also can use gpio to emulate the protocol. There are lots of demo code in internet.

2. I can't find i.MX RT EEPROM example. But there are some S32K EEPROM examples in community. Since S32K has same LPI2C peripheral, you can refer to them.

LPI2C DRV + FreeRTOS OSIF error 

https://community.nxp.com/message/921493?commentID=921493#comment-921493 

...

Regards,

Jing

0 项奖励