LitexCNC: firmware and driver for 5A-75B and 5A-75E

More
09 Mar 2024 17:40 #295526 by wzor
Could you tell me if it is possible to flash a 5a-75e directly through orange pi?

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

More
11 Mar 2024 00:17 - 11 Mar 2024 00:19 #295608 by vre
I have a ulink2 adapter with cmsis-dap firmware.

I tried to flash and is says success but after ping 10.10.10.10 doesn't do anything host unreachable..
If flash is successful onboard led blinks ?

$ litexcnc flash_firmware --programmer cmsis-dap ../5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.svf --permanent
INFO: Converting /home/lcnc/Downloads/5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.svf to flash...
IDCODE in bitstream is 0x41111043
INFO: Conversion complete, output stored in /home/lcnc/Downloads/5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.flash!
INFO: Flashing firmware to LED-card.
Open On-Chip Debugger 0.12.0-rc2+dev-00028-g9501b263e-dirty (2022-12-04-02:06)
Licensed under GNU GPL v2
For bug reports, read
openocd.org/doc/doxygen/bugs.html
jtag
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: FW Version = 1.0
Info : CMSIS-DAP: Interface Initialised (JTAG)
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : cmsis-dap JTAG TLR_RESET
Info : cmsis-dap JTAG TLR_RESET
Info : JTAG tap: ecp5.tap tap/device found: 0x41111043 (mfg: 0x021 (Lattice Semi.), part: 0x1111, ver: 0x4)
Warn : gdb services need one or more targets defined
svf processing file: "/home/lcnc/Downloads/5a-75e_v6.0_i48o56/ok/gateware/colorlight_5a_75e.flash"
30% Info : cmsis-dap JTAG TLR_RESET
Info : cmsis-dap JTAG TLR_RESET
95% Info : cmsis-dap JTAG TLR_RESET
INFO: Successfully flashed the LED-card
Last edit: 11 Mar 2024 00:19 by vre.

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

More
11 Mar 2024 16:58 #295656 by vre
Also tried with ecpdap tool says success but after flashing it does nothing.

$ ./ecpdap_linux_x86_64 -p c251:2722 flash write "5a-75e_v6.0_i48o56/new/gateware/colorlight_5a_75e.bit"
Erasing [━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━] 224.00 KiB/224.00 KiB (198.74 KiB/s; 00:00:00) Writing [━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━] 202.25 KiB/202.25 KiB (7.35 KiB/s; 00:00:00) Reading [━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━] 202.25 KiB/202.25 KiB (12.94 KiB/s; 00:00:00) Finished in 46.24s

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

More
13 Mar 2024 18:11 - 14 Mar 2024 13:13 #295844 by vre
Works...
It was my fault because config has 10.0.0.10 ip
and wrongly search it to 10.10.10.10
PEBCAK

ecpdap is a good tool for flashing (works with cmsis-dap adapters)

5A-75E ports are hardwired as outputs?
If unsolder 245 octal tranciever chips and replace them with shorts then all pins will be selectable as inputs or outputs?
Like this github.com/Disasm/hc245t-bypass
Or is better to rewire-hardwire some 245 trancievers as inputs?
 
Last edit: 14 Mar 2024 13:13 by vre.

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

More
21 Apr 2024 07:13 - 21 Apr 2024 07:20 #298763 by wzor

Heads up! LitexCNC version 1.3.0 will be released on 1st March 2024.

Version release question, should we expect a version release soon?
Last edit: 21 Apr 2024 07:20 by wzor.

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

More
21 Apr 2024 09:20 #298764 by cornholio

Works...
It was my fault because config has 10.0.0.10 ip
and wrongly search it to 10.10.10.10
PEBCAK

ecpdap is a good tool for flashing (works with cmsis-dap adapters)

5A-75E ports are hardwired as outputs?
If unsolder 245 octal tranciever chips and replace them with shorts then all pins will be selectable as inputs or outputs?
Like this github.com/Disasm/hc245t-bypass
Or is better to rewire-hardwire some 245 trancievers as inputs?

 


Those bypass as a PITA to solder.
Remember any chip you solder in place will be powered from 5v & have 5v outputs, not what you want on the FPGA side. Short the pads with some wirewarp wire and for the inputs use 74lvc245 powered by 3.3v on a separate board, or have a look at the mesa 7c81 schematics and see how the level shifting is done.

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

More
23 Apr 2024 02:46 #298885 by vre
I have soldered these flex bypass.For me was very easy to solder with flux.
Can i use the 5A-75E with this bypass with the simple parallel 5axis breakout board?

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

More
23 Apr 2024 04:23 - 23 Apr 2024 04:28 #298889 by cornholio
No, because the Colorlight boards operate at 5v and the FPGA operates at 3.3v, as I mentioned in my previous post. The bypass boards do nothing to convert voltages.

You'll have to use something similar to what I did, this was for different project but based on how Mesa implements their 3.3v to 5v conversion. You will need to supply 3.9v (3.9v is a common zener value) to 4.2v power to the SN74CBT3245CPWR chips, be aware that these are NOT equivalent to 74LS245, 74HC245.

 

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:
Last edit: 23 Apr 2024 04:28 by cornholio.

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

More
23 Apr 2024 04:41 #298891 by cornholio
This is why I moved away from the colorlight boards and used a FPGA dev card (only had to change the EEPROM out) to run Mesa firmware. It was far, far less hassle and if I used 7c81 or 7i90 firmware Linuxcnc has proven drivers that work, and the Mesa firmware is tried & proven. So far I have only used SPI & EPP interfaces but am looking at an Ethernet based on Mesa's hardware. Also it gives me the option of using Smart Serial interface cards or Mesa DB25 cards such as the 7i76 (not 7i76e). Also I can directly interface with common run of the mill parallel port break out boards.

In the past when using a Beagle Bone black I made some breakout cards the did the 3.3v to 5v translation. The only thing is the connector is not wired up as per std parallel port numbering, this had to do with the board that fitted to the Beagle Bone Black. Although it may give you an idea of how to use 74lvc245 & 74hc\ls540 in this application. These are very very basic but I used them for a good while.

github.com/ozzyrob/pp_bob_input
github.com/ozzyrob/pp_bob_output


I have nothing against these projects, they are awesome, but I decided to take a different path.

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

More
24 Apr 2024 21:34 #299028 by Ehsan_R
I am controlling a robotic arm using a few servo motors and Litexcnc
Sometimes it is necessary to disable the motors and move the arm manually. In this case, I want to receive the position change from the motor encoder.
Does anyone know how to do this?

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

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