- 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: 730
- Thank you received: 445
24 Mar 2026 06:01 #344654
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
de.aliexpress.com/item/1005008834546994....gatewayAdapt=glo2deu
benötigt aber noch einen usb-blaster zum programmieren.
benötigt aber noch einen usb-blaster zum programmieren.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 445
24 Mar 2026 08:41 #344658
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I'm trying to decide on a connection for my satellites
Ethernet or Firewire Cables, 5V or 24V ?
* RJ45 is cheaper, but could be confused with Ethernet
* FireWire uses thicker cablesCheaper
* satellite boards can be built using 5V, but 24V is practical for many sensors and limit switches
* RJ45 and 5V are compatible with Mesa-SmartSerial (except for the firmware)
Does anyone have any ideas?
Ethernet or Firewire Cables, 5V or 24V ?
* RJ45 is cheaper, but could be confused with Ethernet
* FireWire uses thicker cablesCheaper
* satellite boards can be built using 5V, but 24V is practical for many sensors and limit switches
* RJ45 and 5V are compatible with Mesa-SmartSerial (except for the firmware)
Does anyone have any ideas?
Please Log in or Create an account to join the conversation.
- hitchhiker
- Offline
- Elite Member
-
Less
More
- Posts: 221
- Thank you received: 19
24 Mar 2026 09:38 #344661
by hitchhiker
Replied by hitchhiker on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Ok!
Aber was könnte man direkt nutzen ohne zusätzliche hardware? Direkt am rpi4?
Danke
Aber was könnte man direkt nutzen ohne zusätzliche hardware? Direkt am rpi4?
Danke
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 445
24 Mar 2026 09:50 #344662
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
generell finde ich es pratischer die konfiguration am pc zu machen (VM mit Linux geht auch), dann könnte man auch den TangNano9k programmieren.
Für das ECP5 board brauch man den programmer (usb-blaster, der funktioniert auch am PI und die toolchan auch (arm64) )
Zum betrieb am RPI4 kann man SPI (Jumperwire kabel) nutzen oder en W5500 Ethernet-Adapter (~4-5Euro).
Dann musst du aber noch schauen was du ansteuern möchtest, also z.B. Stepper,
da wird es mit den dev-boards etwas umständlich.
Wie soll denn dein test-aufbau aussehen ?
Oder wenn du eine 7c81hast kannst du die auch nutzen, brauchst aber wie einen PC/VM + USB-Blaster zum programmieren.
Für das ECP5 board brauch man den programmer (usb-blaster, der funktioniert auch am PI und die toolchan auch (arm64) )
Zum betrieb am RPI4 kann man SPI (Jumperwire kabel) nutzen oder en W5500 Ethernet-Adapter (~4-5Euro).
Dann musst du aber noch schauen was du ansteuern möchtest, also z.B. Stepper,
da wird es mit den dev-boards etwas umständlich.
Wie soll denn dein test-aufbau aussehen ?
Oder wenn du eine 7c81hast kannst du die auch nutzen, brauchst aber wie einen PC/VM + USB-Blaster zum programmieren.
Please Log in or Create an account to join the conversation.
- hitchhiker
- Offline
- Elite Member
-
Less
More
- Posts: 221
- Thank you received: 19
24 Mar 2026 12:25 #344665
by hitchhiker
Replied by hitchhiker on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Warum brauch ich für die 7c81 ein usb-blaster?
Kann man nicht mit dem w5500 modul zugreifen und per mesaflash flashen per ethernet?
Kann man nicht mit dem w5500 modul zugreifen und per mesaflash flashen per ethernet?
Please Log in or Create an account to join the conversation.
- bladekel
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 3
24 Mar 2026 12:27 - 24 Mar 2026 12:32 #344666
by bladekel
Replied by bladekel on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hello everyone,
First of all, Meister, I’d like to congratulate you on this amazing work.
I decided to use this project on my machine.
I made some adjustments to use the TangNano9K with an RPi 5 over SPI.
I currently have two LEDs connected to the TangNano9K, and for now I just wanted to start by turning them on and off.
I configured everything through the Setup-GUI, then generated, compiled, and flashed it to the TangNano9K.
I also compiled rio.c using halcompile.
After that, I ran the test GUI from Setup-GUI, selected SPI communication, and was able to control the LEDs successfully from that interface.
However, when I tried to run and test my own configuration rioDeneme with LinuxCNC, I encountered some issues.
When the Axis GUI opened, I first pressed the E-stop button.
After pressing it, I received several consecutive "USRMOT: ERROR: command timeout" errors.
Then I opened HAL Show and tried to change the LED states from there.
Although I could make changes within HAL Show, I couldn’t actually change the state of the LEDs in the real world.
Where do you think the problem might be?
First of all, Meister, I’d like to congratulate you on this amazing work.
I decided to use this project on my machine.
I made some adjustments to use the TangNano9K with an RPi 5 over SPI.
I currently have two LEDs connected to the TangNano9K, and for now I just wanted to start by turning them on and off.
I configured everything through the Setup-GUI, then generated, compiled, and flashed it to the TangNano9K.
I also compiled rio.c using halcompile.
After that, I ran the test GUI from Setup-GUI, selected SPI communication, and was able to control the LEDs successfully from that interface.
However, when I tried to run and test my own configuration rioDeneme with LinuxCNC, I encountered some issues.
When the Axis GUI opened, I first pressed the E-stop button.
After pressing it, I received several consecutive "USRMOT: ERROR: command timeout" errors.
Then I opened HAL Show and tried to change the LED states from there.
Although I could make changes within HAL Show, I couldn’t actually change the state of the LEDs in the real world.
Where do you think the problem might be?
Last edit: 24 Mar 2026 12:32 by bladekel.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 445
24 Mar 2026 12:31 #344667
by meister
du könntest noch rio darüber drauf flashen aber danach nicht mehr.
Flashen über Ethernet/SPI ist in rio nicht eingebaut.
@ bladekel:
i take look later
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
weil das ganze mesa zeugs nur mit der mesa gateware läuft, also auch das mesaflash,Warum brauch ich für die 7c81 ein usb-blaster?
Kann man nicht mit dem w5500 modul zugreifen und per mesaflash flashen per ethernet?
du könntest noch rio darüber drauf flashen aber danach nicht mehr.
Flashen über Ethernet/SPI ist in rio nicht eingebaut.
@ bladekel:
i take look later
The following user(s) said Thank You: bladekel
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 445
24 Mar 2026 12:46 #344671
by meister
you try to mix software stepgen with rio stuff,
there is a working/generated hal/ini template in Output/cgr/LinuxCNC/
you can start it with :
sudo halcompile --install riocore/files/rio.c
sh Output/cgr/LinuxCNC/start.sh
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hello everyone,
First of all, Meister, I’d like to congratulate you on this amazing work.
I decided to use this project on my machine.
I made some adjustments to use the TangNano9K with an RPi 5 over SPI.
I currently have two LEDs connected to the TangNano9K, and for now I just wanted to start by turning them on and off.
I configured everything through the Setup-GUI, then generated, compiled, and flashed it to the TangNano9K.
I also compiled rio.c using halcompile.
After that, I ran the test GUI from Setup-GUI, selected SPI communication, and was able to control the LEDs successfully from that interface.
However, when I tried to run and test my own configuration rioDeneme with LinuxCNC, I encountered some issues.
When the Axis GUI opened, I first pressed the E-stop button.
After pressing it, I received several consecutive "USRMOT: ERROR: command timeout" errors.
Then I opened HAL Show and tried to change the LED states from there.
Although I could make changes within HAL Show, I couldn’t actually change the state of the LEDs in the real world.
Where do you think the problem might be?
you try to mix software stepgen with rio stuff,
there is a working/generated hal/ini template in Output/cgr/LinuxCNC/
you can start it with :
sudo halcompile --install riocore/files/rio.c
sh Output/cgr/LinuxCNC/start.sh
Please Log in or Create an account to join the conversation.
- bladekel
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 3
24 Mar 2026 13:09 #344673
by bladekel
Replied by bladekel on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I tried it as you said but nothing changed.
Again receving "USRMOT: ERROR: command timeout" errors and couldnt control the LEDs.
Again receving "USRMOT: ERROR: command timeout" errors and couldnt control the LEDs.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 445
24 Mar 2026 13:12 #344674
by meister
"rpi5": "true",
->
"rpi5": true,
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I tried it as you said but nothing changed.
Again receving "USRMOT: ERROR: command timeout" errors and couldnt control the LEDs.
"rpi5": "true",
->
"rpi5": true,
The following user(s) said Thank You: bladekel
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.163 seconds