LitexCNC: firmware and driver for 5A-75B and 5A-75E
24 Feb 2024 12:27 - 24 Feb 2024 12:32 #294206
by Mecanix
For the Rl you *may* be required to provide pinouts as per:
FT232R and ft231X may be used as JTAG programmer. JTAG communications are emulated in bitbang mode.
To use these devices user needs to provides both the cable and the pin mapping:
openFPGALoader [options] -c ft23XXX --pins=TDI:TDO:TCK:TMS /path/to/bitstream.ext
Replied by Mecanix on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
what openocd command needed to flash firmware with ft232rl adapter ?
try:
Try:
$ sudo /opt/oss-cad-suite/bin/openFPGALoader --unprotect-flash -c ft232RL -f /home/xxx_folder_whatever/colorlight_5a_75e.bit
For the Rl you *may* be required to provide pinouts as per:
FT232R and ft231X may be used as JTAG programmer. JTAG communications are emulated in bitbang mode.
To use these devices user needs to provides both the cable and the pin mapping:
openFPGALoader [options] -c ft23XXX --pins=TDI:TDO:TCK:TMS /path/to/bitstream.ext
Last edit: 24 Feb 2024 12:32 by Mecanix.
Please Log in or Create an account to join the conversation.
25 Feb 2024 01:45 #294315
by vre
Replied by vre on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
FT232RL has CTS:TXD:RXD:DTR pinout how these map to TDI:TDO:TCK:TMS ?
Please Log in or Create an account to join the conversation.
25 Feb 2024 02:59 #294319
by Mecanix
Replied by Mecanix on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Bit bang data bus (assumption). Have little hope this will ever work but it cost nothing to try.
D0 --> TXD --> TDI
D1 --> RXD --> TDO
D2 --> RTS --> TCK
D3 --> CTS --> TMS
Ref: trabucayre.github.io/openFPGALoader/guide/advanced.html
D0 --> TXD --> TDI
D1 --> RXD --> TDO
D2 --> RTS --> TCK
D3 --> CTS --> TMS
$ sudo /opt/oss-cad-suite/bin/openFPGALoader --unprotect-flash -c ft232RL -f --pins=0:1:2:3 /path/to/colorlight_5a_75e.bit
Ref: trabucayre.github.io/openFPGALoader/guide/advanced.html
The following user(s) said Thank You: vre
Please Log in or Create an account to join the conversation.
25 Feb 2024 03:11 #294320
by Mecanix
Replied by Mecanix on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Please Log in or Create an account to join the conversation.
25 Feb 2024 16:58 - 25 Feb 2024 17:07 #294403
by vre
Replied by vre on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I have tried usb blaster clone and ft232RL but nothing works.
Has anyone the bin fine to flash directly the flash chip with programmer Xgecu TL II plus ?
# openFPGALoader --scan-usb
found 10 USB device
Bus device vid:pid probe type manufacturer serial product
002 003 0x0403:0x6001 ft232RL FTDI A50285BI FT232R USB UART
# openFPGALoader --detect --cable ft232RL
Jtag probe limited to 3MHz
Jtag frequency : requested 6000000Hz -> real 3000000Hz
ret 0
# openFPGALoader --unprotect-flash --cable ft232RL -f --pins=0:1:2:3 5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.bit
write to flash
Jtag probe limited to 3MHz
Jtag frequency : requested 6000000Hz -> real 3000000Hz
ret 0
Error: no device found
Has anyone the bin fine to flash directly the flash chip with programmer Xgecu TL II plus ?
# openFPGALoader --scan-usb
found 10 USB device
Bus device vid:pid probe type manufacturer serial product
002 003 0x0403:0x6001 ft232RL FTDI A50285BI FT232R USB UART
# openFPGALoader --detect --cable ft232RL
Jtag probe limited to 3MHz
Jtag frequency : requested 6000000Hz -> real 3000000Hz
ret 0
# openFPGALoader --unprotect-flash --cable ft232RL -f --pins=0:1:2:3 5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.bit
write to flash
Jtag probe limited to 3MHz
Jtag frequency : requested 6000000Hz -> real 3000000Hz
ret 0
Error: no device found
Last edit: 25 Feb 2024 17:07 by vre.
Please Log in or Create an account to join the conversation.
26 Feb 2024 11:07 #294498
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Hello, I have another question. On my V8.2 board, the two encoder inputs listed in the JSON file as " {"pin_A": "j3:5", "pin_B": "j3:6"}," seem to be connected to buffer U18. If I have only re-soldered the buffers U23, U24 and U28, as described in the example, I cannot use these two pins as encoders. Is this a special feature of my board version?
Please Log in or Create an account to join the conversation.
26 Feb 2024 12:45 #294510
by hmnijp
From the photos I can see that it looks like 8.0 (which is similar to 6.0). and U18 is on the other side...
Could you upload photos for comparison?
If this is not the case, and you have some new version of the board, then you will have to match the J-pin to FPGA-pin in the pinout table in the file \litex\litex-boards\litex_boards\platforms\colorlight_5a_75b.py"
and then edit the json according to the new direction of the buffers on your board...
Replied by hmnijp on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
chubby75/issues they said that pinout 8.2 corresponds to version 6.0.Hello, I have another question. On my V8.2 board, the two encoder inputs listed in the JSON file as " {"pin_A": "j3:5", "pin_B": "j3:6"}," seem to be connected to buffer U18. If I have only re-soldered the buffers U23, U24 and U28, as described in the example, I cannot use these two pins as encoders. Is this a special feature of my board version?
From the photos I can see that it looks like 8.0 (which is similar to 6.0). and U18 is on the other side...
Could you upload photos for comparison?
If this is not the case, and you have some new version of the board, then you will have to match the J-pin to FPGA-pin in the pinout table in the file \litex\litex-boards\litex_boards\platforms\colorlight_5a_75b.py"
and then edit the json according to the new direction of the buffers on your board...
Please Log in or Create an account to join the conversation.
26 Feb 2024 21:48 - 26 Feb 2024 21:52 #294548
by uba100
Replied by uba100 on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Attachments:
Last edit: 26 Feb 2024 21:52 by uba100.
Please Log in or Create an account to join the conversation.
27 Feb 2024 03:00 - 27 Feb 2024 06:11 #294572
by hmnijp
But I have the same 75B-8.2
J3:5 -> U24
J3:6 -> U18
U18 is also connected to the distributed pins.
This means you won't be able to use these pins as input. (only with baypass)
Change the JSON, assign the encoder to the pins that you made as input...
Replied by hmnijp on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Sorry, at first I thought you were talking about 75E.5A-75B_V8.2.jpeg
But I have the same 75B-8.2
J3:5 -> U24
J3:6 -> U18
U18 is also connected to the distributed pins.
This means you won't be able to use these pins as input. (only with baypass)
Change the JSON, assign the encoder to the pins that you made as input...
Last edit: 27 Feb 2024 06:11 by hmnijp.
The following user(s) said Thank You: uba100
Please Log in or Create an account to join the conversation.
27 Feb 2024 13:21 #294598
by vre
Replied by vre on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I have a ulink2 (with cmsis-dap firmware) can with this flash litexcnc bit file ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.119 seconds