Eeprom - ICP DAS USA LP-22 Series User Manual

Hide thumbs Also See for LP-22 Series:
Table of Contents

Advertisement

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
root@LinuxPC-ICPDAS:/icpdas/linpac_am335x_sdk/i8k/examples/common/eeprom.c
AM335X-PAC Series User Manual
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved.
or
version 2.0.1
Page: 102
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents