- Posts: 25
- Thank you received: 14
LitexCNC: firmware and driver for 5A-75B and 5A-75E
2 years 9 months ago #290810
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
The configuration actually seems to be OK. I can't find any errors in the 5a-75b_v8.0_i12o14p6s6e6.json.
Please Log in or Create an account to join the conversation.
2 years 9 months ago #290912
by TOLP2
Replied by TOLP2 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
The configuration was not OK, my apologies.
The cause is that I changed the config because of a changed watchdog. I forgot however to remove the pin used in the watchdog in the GPIO out. this means a pin was used twice in the config, leading to errors.
I have changed the configuration files in the documentation, or you can remove the line:
from the configuration file.
I messed up with a commit, my apologies.
The cause is that I changed the config because of a changed watchdog. I forgot however to remove the pin used in the watchdog in the GPIO out. this means a pin was used twice in the config, leading to errors.
I have changed the configuration files in the documentation, or you can remove the line:
Code:
{"direction": "out", "pin":"j1:8" , "name":"j1:9" },
I messed up with a commit, my apologies.
Please Log in or Create an account to join the conversation.
2 years 9 months ago #290916
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Thank you very much,
it works now. The firmware has been successfully created. Flashing the firmware to the board was also reported as successful. I will test whether it works in the next few days. I did not get a V8.0 but a V8.2 when I bought it. However, when comparing my board with the V8.0 described on the Internet, I could not find any differences in the hardware. The apparently successful flashing process also seems to confirm this.
Best regards
it works now. The firmware has been successfully created. Flashing the firmware to the board was also reported as successful. I will test whether it works in the next few days. I did not get a V8.0 but a V8.2 when I bought it. However, when comparing my board with the V8.0 described on the Internet, I could not find any differences in the hardware. The apparently successful flashing process also seems to confirm this.
Best regards
The following user(s) said Thank You: TOLP2
Please Log in or Create an account to join the conversation.
2 years 9 months ago - 2 years 9 months ago #290927
by TOLP2
Replied by TOLP2 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
The v6.x, v8.0 and v8.2 are identical, so no changes are required to your board or config.
Thank you for helping resolving this issue.
Thank you for helping resolving this issue.
Last edit: 2 years 9 months ago by TOLP2.
Please Log in or Create an account to join the conversation.
2 years 9 months ago #290963
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I have tried to connect to the board.
As you can see, I can successfully ping the board after flashing. So I think that the flashing was successful,
cnc@raspberrypi:~$ ping -c 5 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=128 time=0.257 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=128 time=0.149 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=128 time=0.164 ms
64 bytes from 10.0.0.10: icmp_seq=4 ttl=128 time=0.175 ms
64 bytes from 10.0.0.10: icmp_seq=5 ttl=128 time=0.162 ms
--- 10.0.0.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4080ms
rtt min/avg/max/mdev = 0.149/0.181/0.257/0.038 ms
cnc@raspberrypi:~$
The Litexcnc driver can also be loaded in halrun.
cnc@raspberrypi:~$ halrun
halcmd: loadrt litexcnc
Note: Using POSIX realtime
litexcnc: Loading Litex CNC driver version 1.1.0
litexcnc: Loading and registering default modules:
litexcnc: Registered module gpio
litexcnc: Registered module pwm
litexcnc: Registered module encoder
litexcnc: Registered module step
halcmd:
But the connection to the board via eth does not work.
halcmd: loadrt litexcnc_eth connections="eth:10.0.0.10"
Unknown parameter `connections=eth:10.0.0.10'
<stdin>:4: waitpid failed /usr/bin/rtapi_app litexcnc_eth
<stdin>:4: /usr/bin/rtapi_app exited without becoming ready
<stdin>:4: insmod for litexcnc_eth failed, returned -1
halcmd:
Have I forgotten a step?
As you can see, I can successfully ping the board after flashing. So I think that the flashing was successful,
cnc@raspberrypi:~$ ping -c 5 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=128 time=0.257 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=128 time=0.149 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=128 time=0.164 ms
64 bytes from 10.0.0.10: icmp_seq=4 ttl=128 time=0.175 ms
64 bytes from 10.0.0.10: icmp_seq=5 ttl=128 time=0.162 ms
--- 10.0.0.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4080ms
rtt min/avg/max/mdev = 0.149/0.181/0.257/0.038 ms
cnc@raspberrypi:~$
The Litexcnc driver can also be loaded in halrun.
cnc@raspberrypi:~$ halrun
halcmd: loadrt litexcnc
Note: Using POSIX realtime
litexcnc: Loading Litex CNC driver version 1.1.0
litexcnc: Loading and registering default modules:
litexcnc: Registered module gpio
litexcnc: Registered module pwm
litexcnc: Registered module encoder
litexcnc: Registered module step
halcmd:
But the connection to the board via eth does not work.
halcmd: loadrt litexcnc_eth connections="eth:10.0.0.10"
Unknown parameter `connections=eth:10.0.0.10'
<stdin>:4: waitpid failed /usr/bin/rtapi_app litexcnc_eth
<stdin>:4: /usr/bin/rtapi_app exited without becoming ready
<stdin>:4: insmod for litexcnc_eth failed, returned -1
halcmd:
Have I forgotten a step?
Please Log in or Create an account to join the conversation.
2 years 9 months ago #290968
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I must apologize.
I read the command: "litexcnc_eth" incorrectly from a forum.
The first command is correct:
"loadrt litexcnc" to append the "connections=eth:10.0.0.10".
Then the output looks better.
cnc@raspberrypi:~$ halrun
halcmd: loadrt litexcnc connections="eth:10.0.0.10"
Note: Using POSIX realtime
litexcnc: Loading Litex CNC driver version 1.1.0
litexcnc: Loading and registering default modules:
litexcnc: Registered module gpio
litexcnc: Registered module pwm
litexcnc: Registered module encoder
litexcnc: Registered module step
litexcnc: Setting up board drivers:
litexcnc: Registered driver eth
LitexCNC-eth: connected to board on '10.0.0.10:1234'
litexcnc: Setting up modules...
litexcnc: Reading 36 bytes
litexcnc: - Watchdog
litexcnc: - Wallclock
litexcnc: - gpio ... done!
litexcnc: - pwm ... done!
litexcnc: - encoder ... done!
litexcnc: - step ... done!
litexcnc: Creating read and write buffers...
litexcnc: Base addresses: init: 00000000, reset: 00000044, config: 00000048, write: 0000004C, read: 000000C8
litexcnc: - Write buffer: 124 bytes
litexcnc: - Read buffer: 96 bytes
litexcnc: Exporting functions...
I read the command: "litexcnc_eth" incorrectly from a forum.
The first command is correct:
"loadrt litexcnc" to append the "connections=eth:10.0.0.10".
Then the output looks better.
cnc@raspberrypi:~$ halrun
halcmd: loadrt litexcnc connections="eth:10.0.0.10"
Note: Using POSIX realtime
litexcnc: Loading Litex CNC driver version 1.1.0
litexcnc: Loading and registering default modules:
litexcnc: Registered module gpio
litexcnc: Registered module pwm
litexcnc: Registered module encoder
litexcnc: Registered module step
litexcnc: Setting up board drivers:
litexcnc: Registered driver eth
LitexCNC-eth: connected to board on '10.0.0.10:1234'
litexcnc: Setting up modules...
litexcnc: Reading 36 bytes
litexcnc: - Watchdog
litexcnc: - Wallclock
litexcnc: - gpio ... done!
litexcnc: - pwm ... done!
litexcnc: - encoder ... done!
litexcnc: - step ... done!
litexcnc: Creating read and write buffers...
litexcnc: Base addresses: init: 00000000, reset: 00000044, config: 00000048, write: 0000004C, read: 000000C8
litexcnc: - Write buffer: 124 bytes
litexcnc: - Read buffer: 96 bytes
litexcnc: Exporting functions...
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds