- 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)
- kzali
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 10
04 Mar 2025 08:51 #323132
by kzali
So I did installOpenOCDSo now I cannot ping 192.168.10.94 even though I have made the intel nuc 192.168.10.1 and put 8.8.8.8 as dns. Trired 192.168.10.93 and gateway 192.168.10.1. maybe the w55000 is not powered and wonder if there is a jumper on the tangoboard. I will check the solders in the morning.
The 5axis bob as setup in your default config is great for me however I am probably too silly to understand how the pins map out on the china bob, other than the steppers. But I will leave that for more research.
Than you
I would imagine that the attached image is somewhat of areference
Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Thanks for your incredible workThanks for testing
ohh, i forgot a package in the installer:apt-get install openfpgaloader the BOB is added as module in the sample config, you can convert/split this into single plugins: [attachment=68228]split.png[/attachment] The pins on the left and right connector are named P1->P17, like on the DB26 connectors: [attachment=68229]pins.png[/attachment] hope that helps. T
So I did install
openfpgaloader but I still got an error. However when I installed
it flashed without errors.
The 5axis bob as setup in your default config is great for me however I am probably too silly to understand how the pins map out on the china bob, other than the steppers. But I will leave that for more research.
Than you
I would imagine that the attached image is somewhat of areference
Attachments:
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 517
- Thank you received: 323
04 Mar 2025 09:32 #323134
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
never trired OpenOCD, but you can send me the error mesage of the openfpgaloader.
with openocd you should make sure that it is written to the flash and not just to the ram, otherwise everything will be gone again after a restart
You can see whether it has worked by the flashing LED
btw, the default ip is '192.168.10.194'
the w5500 module has a little power led on the bottom, there is no jumper to power on/off this module.
not realy shure what you mean with the mapping,
the bob pins are mapped 1:1, if you need P17 (relais) on the BOB, you can use 'LEFT:P17' in your config.
if your BOB is connected to the other connector on the right, then you need to use 'RIGHT:P17'
with openocd you should make sure that it is written to the flash and not just to the ram, otherwise everything will be gone again after a restart
You can see whether it has worked by the flashing LED
btw, the default ip is '192.168.10.194'
the w5500 module has a little power led on the bottom, there is no jumper to power on/off this module.
not realy shure what you mean with the mapping,
the bob pins are mapped 1:1, if you need P17 (relais) on the BOB, you can use 'LEFT:P17' in your config.
if your BOB is connected to the other connector on the right, then you need to use 'RIGHT:P17'
Attachments:
Please Log in or Create an account to join the conversation.
- kzali
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 10
05 Mar 2025 06:44 #323239
by kzali
Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hello Oliver
1. So I removed all of the Rio folder and openFPGALoader, openocd etc.. I noticed you had updated the installer (Thankyou) I then did a new git pull and installed a fresh. With th default config for Tangobob loaded in UI setup tool all went smooth. A flash got me the following output. Led on Tangnano blinking:-Generate
Resources | Usage
Logic | 2226/8640 26%
--LUT,ALU,ROM16 | 2202(1634 LUT, 568 ALU, 0 ROM16)
--SSRAM(RAM16) | 4
Register | 2774/6693 42%
--Logic Register as Latch | 0/6480 0%
--Logic Register as FF | 2764/6480 43%
--I/O Register as Latch | 0/213 0%
--I/O Register as FF | 10/213 5%
CLS | 2206/4320 52%
I/O Port | 28
I/O Buf | 28
--Input Buf | 8
--Output Buf | 19
--Inout Buf | 1
IOLOGIC | 0%
BSRAM | 0%
DSP | 0%
PLL | 0/2 0%
DCS | 0/8 0%
DQCE | 0/24 0%
OSC | 0/1 0%
User Flash | 0/1 0%
CLKDIV | 0/8 0%
DLLDLY | 0/8 0%
DHCEN | 0/8 0%
DHCENC | 0/4 0%
======================
Flash
openFPGALoader -b tangnano9k impl/pnr/project.fs -f
empty
write to flash
Jtag frequency : requested 6.00MHz -> real 6.00MHz
Parse file Parse impl/pnr/project.fs:
Done
DONE
Jtag frequency : requested 2.50MHz -> real 2.00MHz
Erase SRAM DONE
Erase FLASH DONE
Erasing FLASH: [==================================================] 100.00%
Done
write Flash: [========= ] 16.12%
write Flash: [================= ] 32.44%
write Flash: [========================= ] 48.76%
write Flash: [================================= ] 65.28%
write Flash: [========================================= ] 81.60%
write Flash: [================================================= ] 97.82%
write Flash: [==================================================] 100.00%
Done
CRC check: Success
cp -v hash_new.txt hash_flashed.txt
'hash_new.txt' -> 'hash_flashed.txt'
On W5500 there is a tiny led under the lan port and is a faint red when the bob is powered. I cannot conect with Lan, can some one give me a tcp 4 setting for the host pc so I can ping the bob on 192.168.10.194.
Thanks for the guidance regarding the pin assignment. Great work
Thanks Ollie and the team
1. So I removed all of the Rio folder and openFPGALoader, openocd etc.. I noticed you had updated the installer (Thankyou) I then did a new git pull and installed a fresh. With th default config for Tangobob loaded in UI setup tool all went smooth. A flash got me the following output. Led on Tangnano blinking:-Generate
Resources | Usage
Logic | 2226/8640 26%
--LUT,ALU,ROM16 | 2202(1634 LUT, 568 ALU, 0 ROM16)
--SSRAM(RAM16) | 4
Register | 2774/6693 42%
--Logic Register as Latch | 0/6480 0%
--Logic Register as FF | 2764/6480 43%
--I/O Register as Latch | 0/213 0%
--I/O Register as FF | 10/213 5%
CLS | 2206/4320 52%
I/O Port | 28
I/O Buf | 28
--Input Buf | 8
--Output Buf | 19
--Inout Buf | 1
IOLOGIC | 0%
BSRAM | 0%
DSP | 0%
PLL | 0/2 0%
DCS | 0/8 0%
DQCE | 0/24 0%
OSC | 0/1 0%
User Flash | 0/1 0%
CLKDIV | 0/8 0%
DLLDLY | 0/8 0%
DHCEN | 0/8 0%
DHCENC | 0/4 0%
======================
Flash
openFPGALoader -b tangnano9k impl/pnr/project.fs -f
empty
write to flash
Jtag frequency : requested 6.00MHz -> real 6.00MHz
Parse file Parse impl/pnr/project.fs:
Done
DONE
Jtag frequency : requested 2.50MHz -> real 2.00MHz
Erase SRAM DONE
Erase FLASH DONE
Erasing FLASH: [==================================================] 100.00%
Done
write Flash: [========= ] 16.12%
write Flash: [================= ] 32.44%
write Flash: [========================= ] 48.76%
write Flash: [================================= ] 65.28%
write Flash: [========================================= ] 81.60%
write Flash: [================================================= ] 97.82%
write Flash: [==================================================] 100.00%
Done
CRC check: Success
cp -v hash_new.txt hash_flashed.txt
'hash_new.txt' -> 'hash_flashed.txt'
On W5500 there is a tiny led under the lan port and is a faint red when the bob is powered. I cannot conect with Lan, can some one give me a tcp 4 setting for the host pc so I can ping the bob on 192.168.10.194.
Thanks for the guidance regarding the pin assignment. Great work
Thanks Ollie and the team
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 183
- Thank you received: 69
05 Mar 2025 08:19 #323244
by unknown
Replied by unknown on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
This info assumes a single NIC with a driect cable connection from the Host machine to the other device.
All the host needs is an IP address on the same subnet so 192.168.10.xx
DNS - not required (only used for accessing hosts via host names not needed for IP addresses)
GATEWAY - not required (only required when there is a second machine that has access to a network outside of the 192.168.10 network)
NETMASK - 255.255.255.0 or 192.168.10.0/24 (depending on how you are required to input this info)
All the host needs is an IP address on the same subnet so 192.168.10.xx
DNS - not required (only used for accessing hosts via host names not needed for IP addresses)
GATEWAY - not required (only required when there is a second machine that has access to a network outside of the 192.168.10 network)
NETMASK - 255.255.255.0 or 192.168.10.0/24 (depending on how you are required to input this info)
Please Log in or Create an account to join the conversation.
- kzali
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 10
05 Mar 2025 09:07 #323246
by kzali
Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I tried that but maybe there is an issue with my w5500. Thanks great Cornholio
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 517
- Thank you received: 323
05 Mar 2025 12:56 #323258
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
give us the output of the command:
ip address show
Please Log in or Create an account to join the conversation.
- kzali
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 10
06 Mar 2025 04:26 #323327
by kzali
Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
My bad
Okay so when I was looking up the schematics and pcb files I realised that I had inserted the Tang nano in the wrong direction , when I fixed that tand powerd the bob a bright red led light up on the w5500 module and the Lan link was connected to the host, when I pressed test gui button the select target popped up for udp 192.168.10.194. pressed ok and tested wled selecting the 3 boxes lit up the wled on the bob and tested all colors worked like a charm. There was this warning in the terminal (dont know if it is important) connection via: UDP
IP: 192.168.10.194
PORT: 2390
WARNING: can not set timeouts: timed out
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 449, resource id: 10551690, major code: 40 (TranslateCoords), minor code: 0
RIO-TestGui is great. Next step power the 5axis bob and setup some test hardware and usb power the China Bob. Great work Olly. Me super excited. Thank you Robert and Oliver for your quick responses.
Cheers
Kam
Okay so when I was looking up the schematics and pcb files I realised that I had inserted the Tang nano in the wrong direction , when I fixed that tand powerd the bob a bright red led light up on the w5500 module and the Lan link was connected to the host, when I pressed test gui button the select target popped up for udp 192.168.10.194. pressed ok and tested wled selecting the 3 boxes lit up the wled on the bob and tested all colors worked like a charm. There was this warning in the terminal (dont know if it is important) connection via: UDP
IP: 192.168.10.194
PORT: 2390
WARNING: can not set timeouts: timed out
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 449, resource id: 10551690, major code: 40 (TranslateCoords), minor code: 0
RIO-TestGui is great. Next step power the 5axis bob and setup some test hardware and usb power the China Bob. Great work Olly. Me super excited. Thank you Robert and Oliver for your quick responses.
Cheers
Kam
The following user(s) said Thank You: meister, unknown
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 517
- Thank you received: 323
06 Mar 2025 08:07 #323336
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi Kam,
thanks
the warning and BadWindow stuff can be ignored
Cheers
Olli
thanks

the warning and BadWindow stuff can be ignored
Cheers
Olli
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 183
- Thank you received: 69
06 Mar 2025 12:52 #323348
by unknown
Replied by unknown on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
hahaha Kam
It's intriguing how people will try to point the finger at the hardware or software rather than themselves......Yes I've been guilty of that myself, but I'm less likely to do that now, at least I hope.
It's intriguing how people will try to point the finger at the hardware or software rather than themselves......Yes I've been guilty of that myself, but I'm less likely to do that now, at least I hope.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 358
- Thank you received: 124
07 Mar 2025 19:42 - 07 Mar 2025 19:45 #323456
by royka
Replied by royka on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Just to let you know, that the SPI connection (generic) also works with the Orange Pi 5 and the TangNano9k.
Great work meister!
By the way I think that supporting Mesa boards would be beneficial for many, since it's much easier to adjust the functions of the pins.
Great work meister!
By the way I think that supporting Mesa boards would be beneficial for many, since it's much easier to adjust the functions of the pins.
Last edit: 07 Mar 2025 19:45 by royka.
The following user(s) said Thank You: meister
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.206 seconds