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

More
18 Dec 2023 18:17 - 18 Dec 2023 18:20 #288504 by Mecanix

Until the maintainer of Litex-cnc look into this (have you reported it on github?), you can install OSS-cad manually to get you going. Ensure your path is set.

$ mkdir oss-cad
$ cd oss-cad
$ wget github.com/YosysHQ/oss-cad-suite-build/r...nux-x64-20231017.tgz
$ tar -xvf oss-cad-suite-linux-x64-20231017.tgz
$ export PATH="/home/user/path-to/oss-cad-suite/bin/:$PATH"
Last edit: 18 Dec 2023 18:20 by Mecanix.

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

More
18 Dec 2023 18:20 #288505 by jmelson
You cannot run LinuxCNC on a 386, the memory model is different on the 386 from the 486, Pentium, etc. CPUs. But, you say it is an X64 i7 CPU. Something must have gotten seriously fouled up during the OS install, or during the setup for the OSS-Cad-Suite.
Jon

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

More
19 Dec 2023 04:24 #288542 by KlimukVI
Try this:
litexcnc install_toolchain --user --architecture x64 --os linux
The following user(s) said Thank You: horcsab

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

More
19 Dec 2023 07:54 - 19 Dec 2023 08:29 #288555 by horcsab
I try this method, but no working...
$ mkdir oss-cad
$ cd oss-cad
$ wget github.com/YosysHQ/oss-cad-suite-build/r...nux-x64-20231017.tgz  (I updated the name)
$ tar -xvf oss-cad-suite-linux-x64-20231017.tgz
$ export PATH="/home/user/path-to/oss-cad-suite/bin/:$PATH"

And I try this:
litexcnc install_toolchain --user --architecture x64 --os linux

It's work!!! :)
Last edit: 19 Dec 2023 08:29 by horcsab.

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

More
20 Dec 2023 15:20 - 20 Dec 2023 15:21 #288665 by horcsab
So, next problem..
I try flashing the FPGA (5A-75E v8.0) widt FT2232 modul, but always get this error:

nc@cnc:~/Downloads/proba2$ openFPGALoader -d /dev/ttyUSB0 -f prob.bit
write to flash
Jtag frequency : requested 6.00MHz   -> real 6.00MHz  
mpsse_write: fail to write with error -1 (usb bulk write failed)
mpsse_read: fail to flush buffer with error: -1 (usb bulk write failed)
JTAG init failed with: Unknown device with IDCODE: 0x1954fc56 (manufacturer: 0x62b (), part: 0x4a vers: 0x1

What is the problem?
 
Last edit: 20 Dec 2023 15:21 by horcsab.

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

More
20 Dec 2023 16:44 - 20 Dec 2023 16:46 #288673 by Mecanix
Prolly just because ya forgot to make a wish and didn't crossed your fingers... stuff's picky sometimes.
$ sudo openFPGALoader --unprotect-flash -c ft232 -f prob.bit
Last edit: 20 Dec 2023 16:46 by Mecanix.

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

More
20 Dec 2023 17:18 #288676 by horcsab
I tried but no change. (I see the /dev/ttyUSB0..3 the ftdi2232 modul)

$ sudo openFPGALoader --unprotect-flash -c ft232 -f prob.bit
write to flash
unable to open ftdi device: -3 (device not found)
JTAG init failed with: unable to open ftdi device

If I try this:
$ sudo openFPGALoader --unprotect-flash -c ft2232 -f prob.bit
write to flash
unable to open ftdi device: -3 (device not found)
JTAG init failed with: unable to open ftdi device

$ sudo openFPGALoader --unprotect-flash -d /dev/ttyUSB0 -f prob.bit
write to flash
Jtag frequency : requested 6.00MHz -> real 6.00MHz
mpsse_write: fail to write with error -1 (usb bulk write failed)
mpsse_read: fail to flush buffer with error: -1 (usb bulk write failed)
JTAG init failed with: Unknown device with IDCODE: 0x8d1d2c56 (manufacturer: 0x62b (), part: 0x68 vers: 0x8

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

More
20 Dec 2023 17:53 - 20 Dec 2023 17:56 #288680 by Mecanix
If it doesn't take the -c ft232 argument I suspect there is a driver issue.

$ sudo dmesg | grep FTDI
Post output. And while there enable --verbose-level=2 (or 3, forgot)
Last edit: 20 Dec 2023 17:56 by Mecanix.

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

More
20 Dec 2023 17:58 #288681 by horcsab
I'll try it tomorrow.

May be necessary external resistor? (4.7k)
TCK = Pull-down
TMS = Pull-up
TDI = Pull-up
TDO = Pull-up

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

More
20 Dec 2023 18:06 #288683 by Mecanix
No pullup/down required. Straight up ft232's AD0~AD03 to jtag inputs. Inserting a fully functional ft232/driver output below for your ref. Good luck with making this work.  

cnc@debian:~$ sudo dmesg | grep FTDI
[204748.812327] usb 1-1.4: Manufacturer: FTDI
[204748.843937] usbserial: USB Serial support registered for FTDI USB Serial Device
[204748.843970] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
[204748.848687] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
cnc@debian:~$




 

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

Moderators: PCWjmelson
Time to create page: 0.208 seconds
Powered by Kunena Forum