- Posts: 10
- Thank you received: 0
Remora - ethernet NVEM / EC300 / EC500 cnc board
3 years 1 month ago #281805
by aaamil13
Replied by aaamil13 on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
God bless you scotta, I was on my way to give up with EC500, but with the last build everything work great, except TFTP, but I rebuild it with changed default JSON. Thanks for the great work you do. Ping is between 200-400 us, stepgen works perfect with no follow error. Continue to test but for now works perfect.
Please Log in to join the conversation.
- oficinerobotica
- Offline
- Senior Member
-
Less
More
- Posts: 47
- Thank you received: 0
3 years 1 month ago #281807
by oficinerobotica
Replied by oficinerobotica on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
For the tftp error try
Sudo apt install python3-pip
Pip3 install tftpy
That did it for me. Sorry for the formatting but I'm on mobile but you get the idea.
Pip3 will install the python3 tftpy module. Pip will install only for the 2.7
Sudo apt install python3-pip
Pip3 install tftpy
That did it for me. Sorry for the formatting but I'm on mobile but you get the idea.
Pip3 will install the python3 tftpy module. Pip will install only for the 2.7
Please Log in to join the conversation.
3 years 1 month ago #281810
by aaamil13
Replied by aaamil13 on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Not a Python problem, just TimeOut while trying to upload config file. Tried to upload with script and TFTP in terminal ( the file produced from script) but with no success.
tcpdump port 69 -vv
tcpdump: listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
21:04:06.187537 IP (tos 0x0, ttl 64, id 53926, offset 0, flags [DF], proto UDP (17), length 43)
LinuxCNC.43235 > 10.10.10.10.tftp: [bad udp cksum 0x2851 -> 0x29d8!] TFTP, length 15, WRQ "config" octet
21:04:36.211690 IP (tos 0x0, ttl 64, id 61158, offset 0, flags [DF], proto UDP (17), length 43)
LinuxCNC.43235 > 10.10.10.10.tftp: [bad udp cksum 0x2851 -> 0x29d8!] TFTP, length 15, WRQ "config" octet
Unfortunately can't read debug messages on UART ( seems that TTL level shifter burned while been connected to RS232)
So i decided to compile with integrated config JSON and that is ok for me. The good news is that Version 2.0.0 with DMA is much better, the possibility to control pulse width and 500khz stepgen ( tested at 90khz and it is ok ).
tcpdump port 69 -vv
tcpdump: listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
21:04:06.187537 IP (tos 0x0, ttl 64, id 53926, offset 0, flags [DF], proto UDP (17), length 43)
LinuxCNC.43235 > 10.10.10.10.tftp: [bad udp cksum 0x2851 -> 0x29d8!] TFTP, length 15, WRQ "config" octet
21:04:36.211690 IP (tos 0x0, ttl 64, id 61158, offset 0, flags [DF], proto UDP (17), length 43)
LinuxCNC.43235 > 10.10.10.10.tftp: [bad udp cksum 0x2851 -> 0x29d8!] TFTP, length 15, WRQ "config" octet
Unfortunately can't read debug messages on UART ( seems that TTL level shifter burned while been connected to RS232)
Attachment not found
So i decided to compile with integrated config JSON and that is ok for me. The good news is that Version 2.0.0 with DMA is much better, the possibility to control pulse width and 500khz stepgen ( tested at 90khz and it is ok ).
Please Log in to join the conversation.
3 years 1 month ago #281816
by scotta
At low step rates the DMA stepgen has way less CPU load. The reason for the max 500khz is the point where there is not enough time within the servo thread to do the calcs for all 6 axes. Which most people will never need all 6 axes to be that fast simultaneously.
For the last point, the downside with the DMA stepgen is that it is tied to the GPIO port used for the step and direction outputs, GPIO1. The other outputs are on GPIO2, which could be used with the sowftware PWM module if needed.
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
The advantage of the DMA stepgen is the increased max step rate, from ~100khz to 500khz. So people with high micro stepping or reductions will be happy.May I ask what is the advantage of DMA stepgen? Is it faster or less cpu intense? Adjustable step length seems nice.
And one more question: Can it be used for generating PWM signals or is this a completly different can of worms.
At low step rates the DMA stepgen has way less CPU load. The reason for the max 500khz is the point where there is not enough time within the servo thread to do the calcs for all 6 axes. Which most people will never need all 6 axes to be that fast simultaneously.
For the last point, the downside with the DMA stepgen is that it is tied to the GPIO port used for the step and direction outputs, GPIO1. The other outputs are on GPIO2, which could be used with the sowftware PWM module if needed.
Please Log in to join the conversation.
- oficinerobotica
- Offline
- Senior Member
-
Less
More
- Posts: 47
- Thank you received: 0
3 years 1 month ago #281819
by oficinerobotica
Replied by oficinerobotica on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
@aaamil13 could you please share your ec500-rt1052.txt config file for the DMA branch? also the hal and ini files. I managed to flash the ec500 with the DMA stepgen bin, I can ping the card and bring Linuxcnc out of estop but I'm getting following errors as soon as I try to jog. I'm using the config provided by scotta in the github repo. No steppers yet attached.
Please Log in to join the conversation.
3 years 1 month ago #281833
by scotta
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I've just added my testing LinuxCNC config and EC500 config file to the DMAstepgen branch. Hope it works for you to. I've set the joint scales high for testing.
Please Log in to join the conversation.
- oficinerobotica
- Offline
- Senior Member
-
Less
More
- Posts: 47
- Thank you received: 0
3 years 1 month ago #281834
by oficinerobotica
Link for supporting your development please?
Edit:
In the remora-ec500.hal at line 9 I see "loadrt remora-nv PRU_base_freq=500000" but linuxcnc will throw an error complayning of not finding remora-nv.so. I can start linuxcnc only if I change it to "remora-eth" in the hal file.
Do I have the wrong remora components compiled for linuxcnc?
I used the remora eth branch to compile the lcnc components
Replied by oficinerobotica on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Oh man .... thank you so much. I still have allot to learn.I've just added my testing LinuxCNC config and EC500 config file to the DMAstepgen branch. Hope it works for you to. I've set the joint scales high for testing.
Link for supporting your development please?
Edit:
In the remora-ec500.hal at line 9 I see "loadrt remora-nv PRU_base_freq=500000" but linuxcnc will throw an error complayning of not finding remora-nv.so. I can start linuxcnc only if I change it to "remora-eth" in the hal file.
Do I have the wrong remora components compiled for linuxcnc?
I used the remora eth branch to compile the lcnc components
Please Log in to join the conversation.
3 years 1 month ago #281843
by scotta
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
No need to add the base_freq parameter, The DMA stepgen is hard coded.
remora-nv component is available from the following repo
github.com/scottalford75/Remora-NVEM/tre...Components/Remora-nv
remora-nv component is available from the following repo
github.com/scottalford75/Remora-NVEM/tre...Components/Remora-nv
Please Log in to join the conversation.
3 years 1 month ago #281844
by scotta
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Link for supporting development, yes I still need to get this up and more visible. Appreciate the support.
www.gofundme.com/f/remora-firmware-development
Hoping to move onto documentation improvement now the DMA stepgen is less in my head.
www.gofundme.com/f/remora-firmware-development
Hoping to move onto documentation improvement now the DMA stepgen is less in my head.
Please Log in to join the conversation.
3 years 1 month ago #281845
by rodw
Replied by rodw on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Can you share the DMA code or post a link?
I have given some thought to timer interrupt driven stepping, so would be interested to see how you do DMA
I have given some thought to timer interrupt driven stepping, so would be interested to see how you do DMA
Please Log in to join the conversation.
Time to create page: 0.447 seconds
