- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- gitano
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 2
02 Oct 2025 09:04 - 02 Oct 2025 09:06 #335697
by gitano
Replied by gitano on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hello,
after a 6 months break from RIO and LinuxCNC i tried to play around again on the latest riocore git release (wow... the latest additions look VAST!) and can't get past this error:
which looks like some coding incompabilities between HAL and RIO, as far as i can see. This happens on my testing machine both with LinuxCNC 2.9 as well as master, both compiled from source, the system is latest Debian 12/13 unstable forky/sid.
Any ideas how to fix this?
Thank You very much!
Cheers,
-lgitano[/code]
after a 6 months break from RIO and LinuxCNC i tried to play around again on the latest riocore git release (wow... the latest additions look VAST!) and can't get past this error:
[code]LINUXCNC - 2.9.6
Machine configuration directory is '/media/gitano/DATA/Software/CAD+CAM/LinuxCNC-RIO/riocore/Output/Tangbob/LinuxCNC'
Machine configuration file is 'rio.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
twopass:invoked with <> options
twopass:found ./rio.hal
twopass:found ./pregui_call_list.hal
twopass:pass0: loadusr -W hal_manualtoolchange
riocomp.c: In function ‘rtapi_app_main’:
riocomp.c:539:37: error: passing argument 2 of ‘hal_export_funct’ from incompatible pointer type [-Wincompatible-pointer-types]
539 | retval = hal_export_funct(name, rio_readwrite, data, 1, 0, comp_id);
| ^~~~~~~~~~~~~
| |
| void (*)(void)
In file included from riocomp.c:4:
/usr/include/linuxcnc/hal.h:710:54: note: expected ‘void (*)(void *, long int)’ but argument is of type ‘void (*)(void)’
710 | extern int hal_export_funct(const char *name, void (*funct) (void *, long),
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
riocomp.c:48:6: note: ‘rio_readwrite’ declared here
48 | void rio_readwrite();
| ^~~~~~~~~~~~~
make: *** [/usr/share/linuxcnc/Makefile.modinc:117: riocomp.o] Error 1
# compiling and loading rio component...failed
rio: rtapi_app_main: Operation not permitted (-1)
twopass: load_the_modules cmd=<orig_loadrt rio>
waitpid failed /usr/bin/rtapi_app rio
/usr/bin/rtapi_app exited without becoming ready
insmod for rio failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/gitano/linuxcnc_debug.txt
and
/home/gitano/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminalwhich looks like some coding incompabilities between HAL and RIO, as far as i can see. This happens on my testing machine both with LinuxCNC 2.9 as well as master, both compiled from source, the system is latest Debian 12/13 unstable forky/sid.
Any ideas how to fix this?
Thank You very much!
Cheers,
-lgitano[/code]
Last edit: 02 Oct 2025 09:06 by gitano.
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 661
- Thank you received: 411
02 Oct 2025 10:50 #335701
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
fixed in main and dev branch
thanks !
thanks !
Please Log in or Create an account to join the conversation.
- gitano
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 2
02 Oct 2025 11:38 #335705
by gitano
Replied by gitano on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
updated and works again! Thank You!
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 661
- Thank you received: 411
10 Oct 2025 12:30 #336192
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Attachments:
The following user(s) said Thank You: tlightus, tommylight, kzali
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 661
- Thank you received: 411
11 Oct 2025 17:44 #336284
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
That makes it easier to imagine 
It should now also be possible to mix FPGA and RPI/Parport configurations.
Oh, there's a new I2C plugin for the Raspberry with pcf8574 and ads1115 support (digital IO + analog inputs / non-real-time).
It should now also be possible to mix FPGA and RPI/Parport configurations.
Oh, there's a new I2C plugin for the Raspberry with pcf8574 and ads1115 support (digital IO + analog inputs / non-real-time).
The following user(s) said Thank You: tlightus, royka
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 661
- Thank you received: 411
24 Oct 2025 07:33 #337027
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Attachments:
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 72
- Thank you received: 25
24 Oct 2025 08:06 #337030
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Awesome, those new tabs look great, the invert button on the scale is a nice touch.
Russell.
Russell.
The following user(s) said Thank You: meister, unknown
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 799
- Thank you received: 268
24 Oct 2025 10:07 #337035
by unknown
I'll second that.
Top work
Replied by unknown on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Awesome, those new tabs look great, the invert button on the scale is a nice touch.
Russell.
I'll second that.
Top work
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
- Dave3891
- Offline
- Senior Member
-
Less
More
- Posts: 47
- Thank you received: 7
30 Oct 2025 00:58 #337429
by Dave3891
Replied by Dave3891 on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi,
Great job on this project, I am really impressed with all the tools and features that keep getting added.
I made a custom board based on the TangBob and I wanted to add it to the setup tool.
Do you have a tool for building the board.json or have you been making them by hand?
Great job on this project, I am really impressed with all the tools and features that keep getting added.
I made a custom board based on the TangBob and I wanted to add it to the setup tool.
Do you have a tool for building the board.json or have you been making them by hand?
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 661
- Thank you received: 411
30 Oct 2025 07:03 #337444
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Thanks !
not really, in 'riocore/files/pin*.py' are some helper scripts for me (dev-branch),
but yes, most i do by hand.
@all
---- WARNING --- parts of the dev-branch is not usable at this time,
i do some bigger changes for the joint/axis configuration
not really, in 'riocore/files/pin*.py' are some helper scripts for me (dev-branch),
but yes, most i do by hand.
@all
---- WARNING --- parts of the dev-branch is not usable at this time,
i do some bigger changes for the joint/axis configuration
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Time to create page: 0.573 seconds