- 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)
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 627
- Thank you received: 379
04 Jul 2025 19:47 #331263
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
@Happppppppy
you need to configure your network !
you need to configure your network !
The following user(s) said Thank You: Happppppppy
Please Log in or Create an account to join the conversation.
- Happppppppy
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
04 Jul 2025 21:50 #331272
by Happppppppy
Replied by Happppppppy on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Argh, @meister thankyou, it works now. Took a bit of googling to figure out how to do that.
For other beginners, what I did in the terminal:
sudo ip addr add 192.168.10.1/24 dev eno1
sudo ip link set eno1 up
I also added the following to the "interfaces" file in /etc/network/
iface eno1 inet static
address 192.168.10.1
netmask 255.255.255.0
Change eno1 to your adaptor name
For other beginners, what I did in the terminal:
sudo ip addr add 192.168.10.1/24 dev eno1
sudo ip link set eno1 up
I also added the following to the "interfaces" file in /etc/network/
iface eno1 inet static
address 192.168.10.1
netmask 255.255.255.0
Change eno1 to your adaptor name
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 70
- Thank you received: 22
06 Jul 2025 03:08 - 06 Jul 2025 07:02 #331365
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Setting up a machine, have most things going, can see encoders in the test gui, inputs etc. As soon as I add a bit out to turn on the spindle the compile fails with :
Reading constraint file: "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst"
ERROR (CT1135) : "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst":54 | Can't find object named 'PINOUT_BITOUT0_BIT'
ERROR (CT1135) : "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst":55 | Can't find object named 'PINOUT_BITOUT0_BIT'
Physical Constraint parsed completed with errors
As far as I know I am doing as I always have, I did have a few silly mistakes but I have double checked the pin is valid and I tried not naming the plugin to spindle to see if that changed anything but no luck.
Cheers.
Russell.
Reading constraint file: "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst"
ERROR (CT1135) : "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst":54 | Can't find object named 'PINOUT_BITOUT0_BIT'
ERROR (CT1135) : "/home/me/riocore/Output/TangNano9K/Gateware/pins.cst":55 | Can't find object named 'PINOUT_BITOUT0_BIT'
Physical Constraint parsed completed with errors
As far as I know I am doing as I always have, I did have a few silly mistakes but I have double checked the pin is valid and I tried not naming the plugin to spindle to see if that changed anything but no luck.
Cheers.
Russell.
Last edit: 06 Jul 2025 07:02 by epineh.
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 70
- Thank you received: 22
06 Jul 2025 03:10 - 06 Jul 2025 06:29 #331366
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Deleted...
Last edit: 06 Jul 2025 06:29 by epineh.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 627
- Thank you received: 379
06 Jul 2025 07:55 #331372
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi Russell,
please add your config
Cheers Olli
please add your config
Cheers Olli
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 70
- Thank you received: 22
06 Jul 2025 11:06 #331382
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 627
- Thank you received: 379
07 Jul 2025 08:12 #331438
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
was my mistake, normally I give a warning/error if a pin is used twice, but I had once installed that you can use input pins more than once and forgot to check if both pins are marked as input.
is fixed in dev branch
is fixed in dev branch
The following user(s) said Thank You: epineh
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 70
- Thank you received: 22
07 Jul 2025 11:16 #331440
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I still have a weird issue that I am thinking is my hardware somehow, I can connect in the test GUI, see inputs, quadrature encoders and toggle outputs, but the terminal window keeps saying received data have wrong header. I have triple checked pins for conflicts. Apart from the terminal spamming that message it seems to test OK.
Unfortunately LinuxCNC won't get out of estop, and spams wrong header size.
I am still treating it as my hardware, going to setup a different PC, I took out the Tang Nano that is in my milling machine and flashed it but the fault persists. If not the PC, I'll start swapping out PCB's from my two working machines.
Worst part is it was all working nicely last night.
Unfortunately LinuxCNC won't get out of estop, and spams wrong header size.
I am still treating it as my hardware, going to setup a different PC, I took out the Tang Nano that is in my milling machine and flashed it but the fault persists. If not the PC, I'll start swapping out PCB's from my two working machines.
Worst part is it was all working nicely last night.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 627
- Thank you received: 379
07 Jul 2025 11:36 #331441
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
if the testgui works, the hardware and gateware should be ok.
the c/riocomp.c must always match the gateware.
so if you have made changes to the config.json and start your LinuxCNC GUI on a different computer or from a different directory, it cannot establish a connection because the protocol no longer matches.
another reason may be that linuxcnc is trying to connect to the wrong IP.
you can look in the riocomp.c to see which ip is there:
#define UDP_IP “192.168.11.194”
and check in config.json whether UDP is really being used:
"protocol": "UDP",
the c/riocomp.c must always match the gateware.
so if you have made changes to the config.json and start your LinuxCNC GUI on a different computer or from a different directory, it cannot establish a connection because the protocol no longer matches.
another reason may be that linuxcnc is trying to connect to the wrong IP.
you can look in the riocomp.c to see which ip is there:
#define UDP_IP “192.168.11.194”
and check in config.json whether UDP is really being used:
"protocol": "UDP",
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 70
- Thank you received: 22
08 Jul 2025 11:00 #331510
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I did a complete re-install and made sure I selected the right board starting config, and now everything works as normal. I must have accidentally started with a tangBOB starting config instead of the TangNano9K, or something along those lines, so as I was re-installing linux/checking hardware I brought the problem along with the original JSON file every time I tried fault finding.
If nothing else I can serve as a bad example !
Cheers.
Russell.
If nothing else I can serve as a bad example !
Cheers.
Russell.
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.263 seconds