[etherlab-users] use rtdm interface failed

vilian_ch at sina.com vilian_ch at sina.com
Wed Mar 13 08:22:15 CET 2013


 Hello,every!
I have used rtdm interface of ethercat master(version 1.5.2) and created an easy example:
The source code is:
#include "ecrt.h"
int main(void)
{
       static ec_master_t *master = NULL;
        static ec_master_state_t ms = {};
        printf("Start requesting master...\n);
       master = ecrt_request_master(0);
      if(!master)
         return -1;
    ecrt_master_state(master,&ms);
     ecrt_release_master(master);
 
    return 0;
}
I compiled this example with lib ethercat_rtdm and run it, but got following error info:
Start requesting master...
Failed to get master state: Inappropriate ioctl for device
and "dmesg" info:
[ 1763.160719] EtherCAT: Requesting master 0...
[ 1763.160730] EtherCAT: Successfully requested master 0.
[ 1763.160736] RTDM: assertion failed at /rtai-3.9/rtai-3.9/addons/rtdm/../rtdm/rtdm_driver.h:574 (CONTEXT_IS_LOCKED(context))
[ 1763.160921] EtherCAT 0: Releasing master...
[ 1763.160927] EtherCAT 0: Released.
 
Anyone has occur such problem,may you give me some suggestions?
Thank you in advance!
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20130313/b03ee85f/attachment-0003.htm>


More information about the Etherlab-users mailing list