- Posts: 598
- Thank you received: 0
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
4 years 7 months ago #236853
by vre
Replied by vre on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Which are correct files for 5A-75E v8 board ?
Please Log in to join the conversation.
4 years 7 months ago #236898
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
With thanks to cncwhacko I finally got the board working. The problem had two layers:
- Windows was incorrectly configured for directly talking to the card on the given IP-address. I had to assign the PC an IP-address in the same subnet manually under the IPv4 settings. I.e. when the card has 192.168.1.20 as an address, the PC should get something in the range of 192.128.1.### with a subnet of 255.255.255.0 (or /
. After this change, the .svf-file as supplied by cncwhacko worked. - Part deux: my own Hello world version still didn't work. This was I think due to the flag with_hw_init_reset=False which was not set.
Please Log in to join the conversation.
4 years 7 months ago #237005
by cncwhacko
Replied by cncwhacko on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Great to hear you got it responding on the network!
I tried pulling in your package with VS Code and created the docker envs from within, still dont know how to access the actual linuxcnc container, do you have a run through of how to do that?
I also played with ice studio a little bit to see what your current stepper verilog looks like. Currently shows a syntax error in the very last block but it doesnt look like one as far as I can tell. Did you source that from somewhere else?
I tried pulling in your package with VS Code and created the docker envs from within, still dont know how to access the actual linuxcnc container, do you have a run through of how to do that?
I also played with ice studio a little bit to see what your current stepper verilog looks like. Currently shows a syntax error in the very last block but it doesnt look like one as far as I can tell. Did you source that from somewhere else?
Please Log in to join the conversation.
4 years 7 months ago #237025
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
First a quick check question: did you install the Remote containers plugin in VSCode? With this plugin you can easily start the container and use the VS Code terminal to interact with the container. For more information see the
documentation
.
I have improved the container (available on GitLab). I've put oss-cad-suite and LinuxCNC on the path.:
I have improved the container (available on GitLab). I've put oss-cad-suite and LinuxCNC on the path.:
- Building firmare:
- cd to the root (workspace);
- type python3 -m firmware <config-file>
- the output will be placed in a folder with the name of the config-file, cd to this folder and then to gateware, i.e. /workspace/<config-name>/gateware
- in this folder run chmod +x build_<cardname>.sh followed by ./build_<cardname>.sh;
- use your tool of choice to load the image to the card.
- Testing:
- You can test the firmware and driver with halrun;
- Start testing with the following command sequence:
- loadrt litexcnc
- loadrt litexcnc_eth config_file=<path_to_config_file>
- loadrt threads name1=servo-thread period1=100000 fp1=1
- addf <card_name>.0.read servo-thread
- addf <card_name>.0.write servo-thread
- show pin
- show function
- start
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
4 years 7 months ago #237035
by tommylight
Replied by tommylight on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Someone ... (missed it
),
Please do not change the subject when replying, it makes a mess with the database and whoever is trying to help.
Thank you.
If anyone needs to change the title, ask us mods/admins so we can change it for the entire topic.
soooo What should the tittle of this topic be ?
Please do not change the subject when replying, it makes a mess with the database and whoever is trying to help.
Thank you.
If anyone needs to change the title, ask us mods/admins so we can change it for the entire topic.
soooo What should the tittle of this topic be ?
Please Log in to join the conversation.
4 years 7 months ago #237117
by cncwhacko
Replied by cncwhacko on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I think something along the lines of "Discussion of Colorlight 5A-75E/5A-75B as FPGA controller board" would be more descriptive.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
4 years 7 months ago #237128
by tommylight
Replied by tommylight on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Done, thank you.
Removed "discussion" as this is a discussion board so it is redundant, and added "colorcnc" so it can be found by those who have not been here lately.
Removed "discussion" as this is a discussion board so it is redundant, and added "colorcnc" so it can be found by those who have not been here lately.
Please Log in to join the conversation.
4 years 7 months ago #237146
by cncwhacko
Replied by cncwhacko on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
thank you! I was able to get the dev env working locally, this will be handy for testing thing out.
i found a few typos in your testing notes:
```
loadrt litexcnc_etch config_file=<path_to_config_file>
```
should be
```
loadrt litexcnc_eth config_file=<path_to_config_file>
```
and then:
```
loadrt threads name1=servo-thread period=100000 fp=1
```
should be
```
loadrt threads name1=servo-thread period1=100000 fp1=1
```
would <board_name> in my case be something like, `colorlight_5a_75e` ? its not super clear where thats defined.
i found a few typos in your testing notes:
```
loadrt litexcnc_etch config_file=<path_to_config_file>
```
should be
```
loadrt litexcnc_eth config_file=<path_to_config_file>
```
and then:
```
loadrt threads name1=servo-thread period=100000 fp=1
```
should be
```
loadrt threads name1=servo-thread period1=100000 fp1=1
```
would <board_name> in my case be something like, `colorlight_5a_75e` ? its not super clear where thats defined.
Please Log in to join the conversation.
4 years 7 months ago #237193
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I typed those commands as I remembered, my apologies for the typos. For clarity, I updated the typos in the original post.
Regarding the <board-name>, this is defined in the JSON file with the tag "name". However, I discovered that it is hard-coded to 'test' at this moment. Tonight I will update this to use the correct name. In halcmd it is quiet easy to retrieve the board name, after adding the board with
You can retrieve the functions with
This tells you which functions can be added to the thread and you could derive the board-name from this output.
Regarding the <board-name>, this is defined in the JSON file with the tag "name". However, I discovered that it is hard-coded to 'test' at this moment. Tonight I will update this to use the correct name. In halcmd it is quiet easy to retrieve the board name, after adding the board with
Code:
loadrt litexcnc_etch config_file=<path_to_config_file>
Code:
show function
Please Log in to join the conversation.
4 years 7 months ago #237212
by cncwhacko
Replied by cncwhacko on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
awesome, thank you! I see the section where test name is hardcoded--I am new to C so am dangerous at this point
, but was able to see it connect to the board over my network from the container.
I am going to attempt to replace a few of the buffers and test inputs/outputs on the board. Just purchased a hot air rework station so that will be another fun thing to try out.
, but was able to see it connect to the board over my network from the container.I am going to attempt to replace a few of the buffers and test inputs/outputs on the board. Just purchased a hot air rework station so that will be another fun thing to try out.
Please Log in to join the conversation.
Time to create page: 0.338 seconds
