grotius-cnc / hal-core

cnc and robot realtime controller. runs on a hal kernel module.
GNU General Public License v2.0
43 stars 20 forks source link

Error: rtapi_shmem_new failed due to shmget #17

Closed jjrbfi closed 3 years ago

jjrbfi commented 3 years ago

When adding initCmds config into the ethercat-conf.xml file I got this error:

Note: Using POSIX non-realtime rtapi_shmem_new failed due to shmget(key=0xacb572c7): Invalid argument lcec_conf: ERROR: couldn't allocate user/RT shared memory Waiting for component 'lcec' to become ready...

The line I have added: <initCmds filename="/opt/hal-core/rtlib/el7342.xml"/>

The content of el7342.xml:


<EtherCATMailbox><CoE><InitCmds>
    <InitCmd>
        <Transition>IP</Transition>
        <Timeout>0</Timeout>
        <Ccs>1</Ccs>
        <Index>61569</Index>
        <SubIndex>1</SubIndex>
        <Data>00001400</Data>
    </InitCmd>
</InitCmds></CoE></EtherCATMailbox>
jjrbfi commented 3 years ago

Solved with the last merge: #18