- 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: 24
- Thank you received: 7
15 Dec 2024 04:01 #316689
by kzali
Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
What is the mod as marked in the attached photo?
Please Log in or Create an account to join the conversation.
- meister
- Away
- Platinum Member
Less
More
- Posts: 486
- Thank you received: 307
15 Dec 2024 09:07 #316694
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
what exactly do you mean?What happened with enable and error hardware implementation in riocore?
The following user(s) said Thank You: Zayoo
Please Log in or Create an account to join the conversation.
- meister
- Away
- Platinum Member
Less
More
- Posts: 486
- Thank you received: 307
15 Dec 2024 09:10 #316695
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
it lowers the voltage of the level shifters on the FPGA side to cope with the 1.8V on certain ports, is fixed in the current git for the boardWhat is the mod as marked in the attached photo?
The following user(s) said Thank You: kzali
Please Log in or Create an account to join the conversation.
- Zayoo
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 9
15 Dec 2024 13:36 #316705
by Zayoo
Replied by Zayoo on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
In old RIO there was error and enable pins that could be enable in configuration file.
In case of some error, lost communication with LinuxCNC or similar there need to be some pin on board that will indicate such event.
Thanks
"enable": {
"invert": true,
"pin": "69"
},
In case of some error, lost communication with LinuxCNC or similar there need to be some pin on board that will indicate such event.
Thanks
Please Log in or Create an account to join the conversation.
- meister
- Away
- Platinum Member
Less
More
- Posts: 486
- Thank you received: 307
16 Dec 2024 06:22 #316728
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
now we have modifier's for all pin's:seems more complicated at first glance, but is much more flexible
"enable": {
"name": "enable",
"type": "bitout",
"pins": {
"bit": {
"modifier": [
{
"type": "onerror",
"invert": false
}
]
}
}
}
The following user(s) said Thank You: Zayoo
Please Log in or Create an account to join the conversation.
- MirkoCNC
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 2
16 Dec 2024 09:50 #316736
by MirkoCNC
Replied by MirkoCNC on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
@meister
Tangbob board:
What is the reason to add the 10k resistors as pull-down or pull-up resistor?
The FPGA is not configured as open-drain or open-source output.
The standard output configuration of the FPGA would not need the resistors.
Correct?
I would like to leave them out, but the cannot be added later when the FPGA has been soldered. That's why I am asking.
Tangbob board:
What is the reason to add the 10k resistors as pull-down or pull-up resistor?
The FPGA is not configured as open-drain or open-source output.
The standard output configuration of the FPGA would not need the resistors.
Correct?
I would like to leave them out, but the cannot be added later when the FPGA has been soldered. That's why I am asking.
Please Log in or Create an account to join the conversation.
- meister
- Away
- Platinum Member
Less
More
- Posts: 486
- Thank you received: 307
16 Dec 2024 09:58 #316738
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
the pull up/down resistors are there to have a defined state when starting / flashing,
otherwise it could happen that the spindle simply starts or the motors start uncontrollably
As there can be differences from board to board (BOB's), it can be installed using a jumper.
I have plugged in the TangNano and not soldered it on
otherwise it could happen that the spindle simply starts or the motors start uncontrollably
As there can be differences from board to board (BOB's), it can be installed using a jumper.
I have plugged in the TangNano and not soldered it on
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 8
16 Dec 2024 10:38 - 16 Dec 2024 10:39 #316739
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Sorry in advance for the noob question, I am finally setting up some hardware, generated a simple 3 axis step/dir machine.
When I try to compile I get make:gw_sh: No such file or directory
make***[Makefile:34: impl/pnr/project.fs] Error 127
I figured I hadn't set the path to the /home/user/gowin/IDE/bin folder but I double and triple checked and it seems correct.
I'm trying to program a tang nano 9K
When I try to compile I get make:gw_sh: No such file or directory
make***[Makefile:34: impl/pnr/project.fs] Error 127
I figured I hadn't set the path to the /home/user/gowin/IDE/bin folder but I double and triple checked and it seems correct.
I'm trying to program a tang nano 9K
Last edit: 16 Dec 2024 10:39 by epineh.
Please Log in or Create an account to join the conversation.
- meister
- Away
- Platinum Member
Less
More
- Posts: 486
- Thank you received: 307
16 Dec 2024 11:06 - 16 Dec 2024 11:10 #316740
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
in this case you can try in your terminal:
to verify your installation
if you are on the dev branch: (git checkout dev)
you can also set the gowin path in 'riocore/toolchains.json'
export PATH=/home/user/gowin/IDE/bin:$PATH
gw_sh
*** GOWIN Tcl Command Line Console ***
% [CTRL+d]
to verify your installation
if you are on the dev branch: (git checkout dev)
you can also set the gowin path in 'riocore/toolchains.json'
{
"gowin": "/home/user/gowin/IDE"
}
Last edit: 16 Dec 2024 11:10 by meister.
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 8
16 Dec 2024 11:47 #316742
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I get the command line console and it quits out with ctrl+d as you say, but I'm still getting the same issue, I had changed the filename to something other than config.json to suit the machine, so I changed it back to config.json but no dice.
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.145 seconds