Hello,

 I'm new to Ethercat and slowly figuring this out. I'm using it in tandem with 
Linuxcnc.

Running The linuxcnc ethercat driver it appears the memory is overflowing for 
io.process_data;

I added a couple lines for debugging in lib/master.c :: ecrt_master_activate
```c
 fprintf(stderr, "Failed to map process data: %ld\n",
            io.process_data_size);
```

```shell
chad@CHAD-I7-LINUX:~/Downloads/ethercat$ halrun
halcmd: loadusr -W lcec_conf ~/conf.xml
halcmd: loadrt lcec
Note: Using POSIX realtime
Failed to map process data: 0
Failed to map process data: Cannot allocate memory
Failed to map process data: -120615566573566
LCEC: failed to activate master 0
lcec: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app lcec
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for lcec failed, returned -1
```


Build information:
```
latest from GitLab
./configure --disable-8139too
make all modules
sudo make modules_install install
```
uname -r
5.10.30-rt39
No errors appearing in dmesg
-- 
Etherlab-users mailing list
Etherlab-users@etherlab.org
https://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to