
For example, the MAC used is
00:00:08:44: ab :66
and the drivers used are
generic
:
MASTER0_DEVICE ="00:00:08:44: ab :66"
DEVICE_MODULES ="generic"
2. Execute the initialization script and specify the parameter start.
$ /etc/init.d/ethercat restart
3. Run the example application.
$ ec_user_example
• If the
init
script fails to start EtherCAT master, the command
insmod
or
modprobe
can be used to load the module
directly:
ec_master.ko
and
ec_generic.ko
are found in the path
/lib/modules/4.9.35-ipipe/extra/
$ insmod ec_master.ko main_devices= MAC address
$ insmod ec_generic.ko
• Run the example application.
$ ec_user_example
• Check whether the LED0 on EL2008 is blinking with 1Hz.
If the console prompts
Failed to open /dev/EtherCAT0
, the module fails to load, please check it.
ATTENTION
NXP Semiconductors
EtherCAT
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
154 / 199