t1042rdb eeprom writing problem

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

t1042rdb eeprom writing problem

跳至解决方案
2,728 次查看
love_hate_and_repeat
Contributor III

i'm trying to write eeprom via i2c interface but i could'nt.

i2c eeprom address is 0x50 and i use following u-boot commands.

=>i2c md 0x50 0x00 0x01 // firstly i read 0x0000 eeprom address 

0000: ff   .

=>i2c mw 0x50 0x00 0x41 0x01 // 0x41 is written to 0x0000 eeprom adress 

=>i2c md 0x50 0x00 0x01

0000: ff   .                               // but it's same not changing.

i miss something when i try to write eeprom ?

thanks in advance.

标记 (2)
0 项奖励
回复
1 解答
2,147 次查看
love_hate_and_repeat
Contributor III

the problem was about using i2c command wrongly.

it works like the following; 

 

i2c mw 0x50 0.2 0x41 0x1

 

thanks.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,148 次查看
love_hate_and_repeat
Contributor III

the problem was about using i2c command wrongly.

it works like the following; 

 

i2c mw 0x50 0.2 0x41 0x1

 

thanks.

0 项奖励
回复
2,147 次查看
yipingwang
NXP TechSupport
NXP TechSupport

It seems that 0x50 is not the valid address, please refer to the following.

=> i2c md 0x75 0 1
0000: 00    .
=> i2c mw 0x75 0x00 0x41 0x01
=> i2c md 0x75 0 1
0000: 41    A
=>

0 项奖励
回复
2,147 次查看
love_hate_and_repeat
Contributor III

i'm sure eeprom addres is 0x50 and this address  was specified in QorIQ T1042DR Reference Design Board Ref Man.

the following is output of i2c probe command.

=>i2c probe

Valid chip addresses : 00 19 36 37 38 40 4C 50 51 68 6A 75

0 项奖励
回复