![ICP DAS USA LP-22 Series User Manual Download Page 102](http://html.mh-extra.com/html/icp-das-usa/lp-22-series/lp-22-series_user-manual_3722566102.webp)
AM335X-PAC Series User Manual version 2.0.1 Page: 102
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
6.4. EEPROM
To
Enable EEPROM
working status, there are four steps to this process, which are described
below.
(1)
Startup EEPROM GPIO function.
# echo
64
> /sys/class/gpio/export
(2)
The EEPROM is write protected by default, the user needs to modify default value of EEPROM.
# echo
out
> /sys/class/gpio/gpio64/direction
(3)
Change to writable of EEPROM.
# echo
0
> /sys/class/gpio/gpio64/value
(4)
To write a data to EEPROM.
# echo hello > /sys/bus/i2c/devices/1-0050/eeprom
More detailed information, please refer to the demo code:
C:\cygwin\LinPAC_am335x_SDK\examples\common\eeprom.c
or
root@LinuxPC-ICPDAS:/icpdas/linpac_am335x_sdk/i8k/examples/common/eeprom.c