Can the OPI5 be Configured to Run LCNC?

More
08 Jun 2024 13:21 - 08 Jun 2024 13:23 #302627 by royka
To improve the latency by the way, you could add the following to /boot/armbianEnv.txt :
extraargs=cma=128M isolcpus=5,7

I've just tried to compile it and it seems to work fine, do you have the following file?
/usr/lib/linuxcnc/modules/hal_op5_io.so

In case you don't have that file you could try to copy the already compiled file (hal_op5_io.so from the zip file) to "/usr/lib/linuxcnc/modules/"
Last edit: 08 Jun 2024 13:23 by royka.
The following user(s) said Thank You: Hossein74Majidi

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 06:20 #302663 by Hossein74Majidi
Yeah, I do have the hal_op5_io.so file in that directory.
Now I'm getting this error:
Thread 'base-thread' not found.
does it mean something wrong with my hal_op5_io?

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 07:00 #302664 by cornholio
Means there's an issue with your config, could be a typo.

Posting hal & ini helps.
The following user(s) said Thank You: Hossein74Majidi

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 07:06 - 09 Jun 2024 07:35 #302665 by Hossein74Majidi
Here's my hal and ini file.
The whole error is attached too.
 
Attachments:
Last edit: 09 Jun 2024 07:35 by Hossein74Majidi.

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 10:16 #302672 by cornholio
Your hal file in missing the lines that load the base & servo thread. And few other bits & pieces.
At the start of your hal file you'll need something like this
# first load all the RT modules that will be needed
# kinematics
loadrt [KINS]KINEMATICS
# motion controller, get name and thread periods from INI file
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS

And you need to sort out the issue with
mv: cannot stat 'dev/ttyFIQ0'
This could be the file not existing or you don't have the correct permissions to access the file. Unfortunately as the whole error log isn't there, just a screenshot or a small part, I can't comment any further.
The following user(s) said Thank You: Hossein74Majidi

Please Log in or Create an account to join the conversation.

More
09 Jun 2024 12:13 #302676 by Hossein74Majidi
Yes Thanks a lot. That was the problem
and also after correcting that, "mv: cannot stat 'dev/ttyFIQ0'" doesn't show up anymore too.
Thank u

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum