Hi,
I just updated LinuxCNC via the package manager.
When I set `syncToRefClock=“true”`, I still get the error `lcec_conf: ERROR: Invalid master attribute syncToRefClock`.
I've now downloaded the EtherCAT master from GitHub.
When I run `make`, I get the following errors:
Code:
devices/lcec_ep9214.c: In function ‘lcec_ep9214_write’:
devices/lcec_ep9214.c:206:23: warning: unused variable ‘hal_data’ [-Wunused-variable]
206 | lcec_ep9214_data_t *hal_data = (lcec_ep9214_data_t *)slave->hal_data;
| ^~~~~~~~
devices/lcec_ep9214.c:205:12: warning: unused variable ‘pd’ [-Wunused-variable]
205 | uint8_t *pd = slave->master->process_data;
| ^~
[code]Linking lcec.so
ld -d -r -o lcec.so.tmp lcec_main.o lcec_devicelist.o lcec_ethercat.o lcec_pins.o lcec_lookup.o lcec_modparam.o lcec_malloc.o
objcopy -j .rtapi_export -O binary lcec.so.tmp lcec.so.sym
(echo '{ global : '; tr -s '\0' < lcec.so.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > lcec.so.ver
gcc -shared -Bsymbolic -Wl,-rpath,/lib -Wl,--version-script,lcec.so.ver -o lcec.so lcec_main.o lcec_devicelist.o lcec_ethercat.o lcec_pins.o lcec_lookup.o lcec_modparam.o lcec_malloc.o -lm -Wl,--whole-archive liblcecdevices.a -Wl,--no-whole-archive -L/lib -llinuxcnchal -lethercat -lrt
chmod -x lcec.so
Compiling realtime lcec_conf.c
Compiling realtime lcec_conf_icmds.c
Compiling realtime lcec_conf_util.c
gcc -o lcec_conf lcec_conf.o lcec_conf_icmds.o lcec_conf_util.o lcec_devicelist.o lcec_ethercat.o lcec_pins.o lcec_lookup.o lcec_modparam.o lcec_malloc.o -Wl,-rpath,/lib -L/lib -llinuxcnchal -lexpat -Wl,--whole-archive liblcecdevices.a -Wl,--no-whole-archive -lethercat -lm
Compiling realtime lcec_devices.c
gcc -o lcec_devices lcec_devices.o lcec_devicelist.o lcec_ethercat.o lcec_pins.o lcec_lookup.o lcec_modparam.o lcec_malloc.o -Wl,-rpath,/lib -L/lib -llinuxcnchal -lexpat -Wl,--whole-archive liblcecdevices.a -Wl,--no-whole-archive -lethercat -lm
(cd configgen ; go build devicelist.go)
/bin/sh: 1: go: not found
make[1]: *** [Makefile:118: configgen/devicelist] Fehler 127
make[1]: Verzeichnis „/home/ich/Downloads/linuxcnc-ethercat-master/src“ wird verlassen
make: *** [Makefile:4: build] Fehler 2
[/code]
Edit:
I've used Git now.
git clone
github.com/sittner/linuxcnc-ethercat.git
There were no errors this time,
but the syncToRefClock=“true” still doesn't work.