User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Trying to read a 24c128 eeprom using the eepromutils[Solved]

Thu Jun 11, 2015 1:16 pm

Hello,

Raspberry Pi2-B

Trying to use the eepromutils form GitHub.
i2cdetect seems to find an eeprom.
When I try to read, I get an error.
After the attempted read, i2cdetect shows UU.
In eepflash.sh, I changed the 4 instances of i2c-0 to i2c-1.
Can somebody help, its quite probable I'm making some sort of error.

Regards

Code: Select all

pi@mypi ~ $ modprobe i2c-bcm2708
pi@mypi ~ $ modprobe i2c-dev
pi@mypi ~ $ modprobe at24

Code: Select all

pi@mypi ~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

Code: Select all

pi@mypi ~ $ sudo /home/pi/hats/eepflash.sh -r -f=/home/pi/hatFiles/test2.eep -t=24c128
This will disable the camera so you will need to REBOOT after this process completes.
This will attempt to write to i2c address 0x50. Make sure there is an eeprom at this address.
This script comes with ABSOLUTELY no warranty. Continue only if you know what you are doing.
Do you wish to continue? (yes/no): yes
Reading...
dd: opening `/sys/class/i2c-adapter/i2c-1/0-0050/eeprom': No such file or directory
Error doing I/O operation.

Code: Select all

pi@mypi ~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 
Last edited by mad-hatter on Fri Jun 12, 2015 10:25 am, edited 1 time in total.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: Trying to read a 24c128 eeprom using the eepromutils[Sol

Fri Jun 12, 2015 10:24 am

Hello,
In eepflash.sh, I changed the the 4 instances of i2c-0 to i2c-1.
As well I changed all instances of '0x0050' to '1x0050'.

Regards

Return to “General programming discussion”