ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

  • ALittleOffTheRails
  • Visitor
  • Visitor
4 years 7 months ago - 4 years 7 months ago #236494 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Did you see this post about a mod to the 5V rail. I'm guessing you may of but just in case anyone else reads this thread.
Code:
https://twitter.com/claude1079/status/1231194849350647808

Direct link doesn't work, so you'll have to copy & paste link.
Last edit: 4 years 7 months ago by ALittleOffTheRails.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago - 4 years 7 months ago #236502 by TOLP2
Nice find with the mod, didn't see that one yet!

I've just received my ColorLight card and I managed to setup the communication between my laptop (Win10) and the card. As soon as a I get my toolchain working I can start trying to make a Hello world example work, communication sorted out and make a start on testing on LiteX-CNC. When both GPIO and PWM/PDM work, I'm more comfortable to start debugging the step generator as well.

The problem I have at this moment is that LiteX cannot find the cross-compiler for the elfs (most likely it is somewhere Rivendell as a well protected  ). I'm re-building my development container* to include LiteX, toolchain and oss-cad-suite, but that will take a good hour to cook. Will keep you posted whether it works. Update: It compiles now, some issues between installing as root (user root that is, not system wide as was intended) and trying to use it as a local user...

*Development container is basically a Docker container which mimics my LinuxCNC machine as good as possible, and allows for development on any machine (also Win10/11) within the same environment.
Last edit: 4 years 7 months ago by TOLP2.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago - 4 years 7 months ago #236532 by TOLP2
OK, I'm lost ...

As a hello world example I tried to build  this  example. After building I can download the svf-file to the 5A-75E V8.0 , so far so good.

When I try to start a connection using the litex-server (UDP) protocol I get a 
Code:
socket.timeout: timed out error
which leads to a
Code:
Exception: Unable to probe Etherbone server at 192.168.1.20. error. Any suggestions?

Maybe it is due that I have a straight UTP cable between the PC and the card instead of a cross-over?
Last edit: 4 years 7 months ago by TOLP2. Reason: Added board-info

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago - 4 years 7 months ago #236534 by cncwhacko
I dont think crossover is required, I connected via a shared switch however, doing my testing. I do recall reading something that you have to be connected at full 1000mbps (1gig) as the phy is only setup to work at that speed.

As you mentioned you have the 5A-75E V8. I will share my findings of the same board. I found that the revision 6.0 pinout to align, however, i also found an error in the litex board file:
github.com/litex-hub/litex-boards/blob/m...light_5a_75e.py#L216

you can see the last connector line:
```
("j16", "F14 G13 F12 - F13 F14 E14 N4 N5 N3 P3 P4 M3 N1 M4 -"),
```

The first pin is not F14 (and in fact you can see it repeated later, its actually G14 on my board, which was confirmed using the chubby75 pinscan gateware. The rest of the pins all matched up. As such, I edited the mappings in my toolchain locally, just something to point out. I've been meaning to cut an issue with the litex folks to update it as the error was propagated originally through from the chubby75 repo and made its way there. Both could/should be updated.

Edit:  github.com/litex-hub/litex-boards/issues/362 opened to get the pin mapping fixed.
Last edit: 4 years 7 months ago by cncwhacko.
The following user(s) said Thank You: TOLP2

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236719 by TOLP2
They fixed the error in the LiteX-boards repository.

In the meanwhile, I tried with a cross-cable to no avail. So something has to be wring. @ cncwhacko : is it possible to share a bit-file or svf-file which works on your card so I can verify my OpenOCD programmer actually works? Would be lovely if I can do a ping command or run a LiteX-server on the card and knowing it works.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236721 by cncwhacko
sure thing, attached my version built from the original colorlight .py files that OP posted. ip for this is configured is 192.168.1.50.

Turns out i dont have forum permissions to upload files, here's the link via google drive

Also note that you should be using the port nearest the 5v power connector, the other one doesnt work.
The following user(s) said Thank You: TOLP2

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.154 seconds
Powered by Kunena Forum