Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEP0022

174 bytes removed, 17:55, 4 July 2011
m
Using EEPROM
The IGEP0022 expansion board provides an [http://www.atmel.com/dyn/resources/prod_documents/doc5156.pdf AT24C01B] serial EEPROM memory which is connected to the OMAP via I2C.<br>
You can use easily interact with it by using simple reads/writes to access to the following example.<br>eeprom:
*First of all, open a Serial console such as Putty and configure it as explained [[Serial Console (PuTTy)|here]].<br> *Use ' echo' to write to the memory:<br> In order to read or write the EEPROM you must set the right I2C bus. The EEPROM"hello world!" &nbspgt;memory in the IGEP0022 uses the second I2C bus (I2C /sys/devices/platform/i2c_omap.2) of the four I2C buses that the IGEPv2 OMAP can have/i2c-2/2-0050/eeprom cat /sys/devices/platform/i2c_omap.<br> 2/i2c-2/2-0050/eeprom
echo "hello world!" &gt; /sys/devices/platform/i2c_omap.2Or read/write from userspace using i2c-2/2-0050/eepromtools:
*Check what you have actually wrote i2cget <bus> <chip> <register> i2cset <bus> <chip> <register> <value> For example, the following writes the value 0x22 to the memory using 'cat'register 0x10 of device 0x50 on i2c bus 2:<br>
cat /sys/devices/platform/i2c_omap.i2cset -f -y 2/i2c0x50 0x10 0x22 i2cget -f -y 2/2-0050/eeprom0x50 0x10
If everything was right you will see your message from the EEPROM.<br>See also: i2dump(8), i2cget(8) and i2cset(8) man page
= Using CAN bus =
0
edits