Eeprom/Fram - ICP DAS USA LinPAC AM335 Series User Manual

Hide thumbs Also See for LinPAC AM335 Series:
Table of Contents

Advertisement

6.4. EEPROM/FRAM

To Enable EEPROM/EEPROM working status, there are four steps to this process, which are
described below.
(1) Startup GPIO function.
# echo
64
> /sys/class/gpio/export
(2) The EEPROM/FRAM is write protected by default, the user needs to modify default value.
# echo
out
> /sys/class/gpio/gpio64/direction
(3) Change to writable of EEPROM/FRAM.
# echo
0
> /sys/class/gpio/gpio64/value
(4) To write a data to EEPROM/FRAM.
# 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 © 2021 ICP DAS Co., Ltd. All Rights Reserved.
or
version 2.0.4
Page: 107
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents