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!
 
 
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to