- Posts: 10
- Thank you received: 0
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
1 year 4 weeks ago #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:
[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 terminal
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]
Please Log in to join the conversation.
1 year 4 weeks ago #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 to join the conversation.
1 year 4 weeks ago #335705
by gitano
Replied by gitano on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
updated and works again! Thank You!
Please Log in to join the conversation.
1 year 2 weeks ago #336192
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I have expanded rio so that you can also create rpi5-gpio and parport configs.
it's not direct mixable with the FPGA configs
Attachment not found
Attachment not found
it's not direct mixable with the FPGA configs
Please Log in to join the conversation.
1 year 2 weeks ago #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).
Please Log in to join the conversation.
1 year 1 week ago #337027
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
adding some images and tabs:
images for some plugins:
new Tab for all axis configurations in one screen (incl. calculator)
new Tab for the ini
and one for some basic settings
images for some plugins:
Attachment not found
new Tab for all axis configurations in one screen (incl. calculator)
Attachment not found
new Tab for the ini
Attachment not found
and one for some basic settings
Attachment not found
Please Log in to join the conversation.
1 year 1 week ago #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.
Please Log in to join the conversation.
1 year 6 days ago #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
Please Log in to join the conversation.
1 year 1 day ago #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 to join the conversation.
1 year 1 day ago #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 to join the conversation.
Time to create page: 0.552 seconds
