- 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)
09 Aug 2024 09:29 #307314
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
@meister
Similarly, I can't make the stepper work. This is NOT a good start for me man, ouchy lol
The dir works on all axis, however getting no pulse from any of them. Can you also share a stepgen config for an axis? Below is what I've blindly attempted, but getting nowhere (as usual!!).
Similarly, I can't make the stepper work. This is NOT a good start for me man, ouchy lol
The dir works on all axis, however getting no pulse from any of them. Can you also share a stepgen config for an axis? Below is what I've blindly attempted, but getting nowhere (as usual!!).
{
"type": "stepdir",
"pins": {
"step": {
"pin": "13"
},
"dir": {
"pin": "14"
}
},
"is_joint": true,
"axis": "X",
"signals": {
"velocity": {
"net": "joint.0.vel-cmd"
},
"position": {
"net": "joint.0.motor-pos-fb"
}
}
},
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:34 - 09 Aug 2024 09:36 #307316
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
joints need no signal config
EDIT: better using the rio-setup tool
even i now have problems doing this in pure json
{
"type": "stepdir",
"pins": {
"step": {
"pin": "13"
},
"dir": {
"pin": "14"
}
},
"is_joint": true,
"axis": "X"
},
EDIT: better using the rio-setup tool
even i now have problems doing this in pure json
![:) :)](/media/kunena/emoticons/smile.png)
Last edit: 09 Aug 2024 09:36 by meister.
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:39 #307317
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Attachments:
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:41 - 09 Aug 2024 09:43 #307318
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Wow. I didn't get a pulse on any axis with the original config, that's why I tried with the signals. Neither config pulses. Snap, now what.
Pulse PIN is always HIGH. Dir pin works fine though!
Can you show a functional HAL file with a functional step/dir stepper config? I'll compare it to mine and see what's not updating in mine.
Pulse PIN is always HIGH. Dir pin works fine though!
Can you show a functional HAL file with a functional step/dir stepper config? I'll compare it to mine and see what's not updating in mine.
Last edit: 09 Aug 2024 09:43 by Mecanix.
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:49 #307319
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
all flashed ? halcompile ?
check it in rio-test gui (do not forget the enable checkbox)
i'm not at home, so i can not test a config and send you, but it should work
check it in rio-test gui (do not forget the enable checkbox)
i'm not at home, so i can not test a config and send you, but it should work
![:( :(](/media/kunena/emoticons/sad.png)
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:55 #307323
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Ah man no rush, you're too kind for real. I'm so not making thousand-dollar parts, just testing this gowin pinouts and timings, and so nothing to worry about.
Yeah gateware flashed, LinuxCNC files overwritten and halcomp'd, everything routine after each generate.
I'll play around with it. Obviously something I'm doing wrong. I'll update if I get anywhere.
Yeah gateware flashed, LinuxCNC files overwritten and halcomp'd, everything routine after each generate.
I'll play around with it. Obviously something I'm doing wrong. I'll update if I get anywhere.
Please Log in or Create an account to join the conversation.
09 Aug 2024 10:00 #307325
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
i had done a major update, but i just compared one with an old version and everything looks good.
Unfortunately I can't tell you what the problem might be at the moment
Unfortunately I can't tell you what the problem might be at the moment
![:( :(](/media/kunena/emoticons/sad.png)
The following user(s) said Thank You: Mecanix
Please Log in or Create an account to join the conversation.
09 Aug 2024 10:16 #307327
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
PIN 13 (x_pulse) is NOT working on my FPGA. w t f
If I swap pins and place the step on PIN 14, I'm getting steps (!!). Told you the problem was at my end, but I'll have to keep you responsible for this one - guilty!! You picked those random pins![;) ;)](/media/kunena/emoticons/wink.png)
In all seriousness, something's not right with PIN13. Let's hope it's just hardware (bad soldering) and not gowin's internals or their place/routing compiler. Yikes. See? That's why I wanted to test ALL PINS on that thing before sending out some PCB work... don't trust - verify!
If I swap pins and place the step on PIN 14, I'm getting steps (!!). Told you the problem was at my end, but I'll have to keep you responsible for this one - guilty!! You picked those random pins
![;) ;)](/media/kunena/emoticons/wink.png)
In all seriousness, something's not right with PIN13. Let's hope it's just hardware (bad soldering) and not gowin's internals or their place/routing compiler. Yikes. See? That's why I wanted to test ALL PINS on that thing before sending out some PCB work... don't trust - verify!
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
09 Aug 2024 10:17 #307328
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
if you are playing around anyway, you can also set the enable bits of the stepdir instances to 1 in rio.v
but if that works, something is wrong with the connection and the board is in ERROR state
assign PINOUT_STEPDIR11_STEP = PINOUT_STEPDIR11_STEP_RAW;
assign PINOUT_STEPDIR11_DIR = PINOUT_STEPDIR11_DIR_RAW;
wire PINOUT_STEPDIR11_STEP_RAW;
wire PINOUT_STEPDIR11_DIR_RAW;
wire UNUSED_PIN_STEPDIR11_EN;
stepdir stepdir11 (
.clk(sysclk),
.step(PINOUT_STEPDIR11_STEP_RAW),
.dir(PINOUT_STEPDIR11_DIR_RAW),
.en(UNUSED_PIN_STEPDIR11_EN),
.velocity(VAROUT32_STEPDIR11_VELOCITY),
.enable(1),
.position(VARIN32_STEPDIR11_POSITION)
);
but if that works, something is wrong with the connection and the board is in ERROR state
The following user(s) said Thank You: Mecanix
Please Log in or Create an account to join the conversation.
09 Aug 2024 11:06 - 09 Aug 2024 11:06 #307340
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Quick update:
Changed all the pinouts to the ones that works. So far PIN13 and PIN15 are persistently HIGH. As if they were physically shorted but they aren't (good soldering). Just putting this out there, to be aware.
So far got stepgen, spindle pwm, spindle encoder & index, and home switches. [TESTED]. Everything that makes up for the essentials!! Super happy about that.
Those screwed-up pins are discouraging me though. But I'm not coming down to any cynical conclusion yet. I'll have a look in their datasheet again and see if I can find any reason for those being HIGH on crack...
Changed all the pinouts to the ones that works. So far PIN13 and PIN15 are persistently HIGH. As if they were physically shorted but they aren't (good soldering). Just putting this out there, to be aware.
So far got stepgen, spindle pwm, spindle encoder & index, and home switches. [TESTED]. Everything that makes up for the essentials!! Super happy about that.
Those screwed-up pins are discouraging me though. But I'm not coming down to any cynical conclusion yet. I'll have a look in their datasheet again and see if I can find any reason for those being HIGH on crack...
Last edit: 09 Aug 2024 11:06 by Mecanix.
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.128 seconds