Roberto Caminiti wrote:
> Hi,
> After the upgrade to EMC 2.2.7, I have modified my hal configuration
> in order to be compatible with hm2_pci.ko. After a lot of proofs, I
> have discovered that if I latch the function hm2_5i20.0.write to
> servo-thread, EMC 2.2.7 doesn't run! I don't know why...
> After I have tryied an other thing:
> 
> In the configuration I have loaded only hostmot2 and hm2_pci with the
> correct configuration but without latch any hm2_pci function to
> servo-thread.
> 
> After I have launched EMC2 (correctly) and I have loaded the Hal
> configuration from the EMC2 menu.
> And by using the command line i have wrote:
> 
> addf hm2_5i20.0.read servo-thread
> (EVERYTHING OK)
> addf hm2_5i20.0.read_gpio servo-thread
> (EVERYTHING OK)
> 
> addf hm2_5i20.0.write servo-thread
> (THE PC IS LOCKED AND SOMETIMES IT RESTART ITSELF)
> 
> Sincerely I don't know if this is an RTAI problem or not, because
> sometimes there are RTAI errors.
> How can I discover where is the problem?
> I have already made the latency test with zero overruns.
> (my base thread is 100000 ns).

There's no reason to run .read() and .read_gpio() in the same thread. 
.read() reads everything, including the GPIOs.  The only reason you'd 
ever use .read_gpio() is if you wanted to read GPIOs faster than the 
servo thread, you could put .read_gpio() in a faster thread.

I think there should be nothing in your base thread with hostmot2.  The 
base thread is in the FPGA.

If you meant that the servo thread is running at 100,000 ns, try slowing 
it down to 1,000,000 ns and see if that helps the lockups.  Wouldnt help 
the reboots though, that's strange...

If you can, get the machine to just before you add the .write(), and 
send us the output of dmesg and "halcmd show all".


-- 
Sebastian Kuzminsky
how many no money boys are crazy how many boys are raw
how many no money boys are rowdy how many start a war

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to