Coder Social home page Coder Social logo

Comments (8)

Relys avatar Relys commented on June 4, 2024 6

So I just picked up a LeetDMA card for 1299 Yen (~$185) from taobao and used pandabuy site as a courier. $206.79 total for everything with DHL Express and Insurance. Very good deal.

Initially, I had issues getting the jtag port to work. I plugged in the cable and two USB To UART+JTAG interfaces show up by QinHeg Electronics USB\VID_1A86&PID_55DD&MI_00 & USB\VID_1A86&PID_55DD&MI_02 respectively.

Anyways, I was able to figure out that they used QinHeg CH347 chip instead of FTDI https://www.wch.cn/

Drivers can be found in:
https://www.wch.cn/search?q=USB%E8%BD%AC%E4%B8%B2%E5%8F%A3&t=downloads
CH341PAR.EXE
CH343SER.EXE

Additionally, a custom version of OpenOCD is needed which can be found here: https://github.com/WCHSoftGroup/ch347/tree/main/OpenOCD_CH347/bin

Here's how to backup existing custom firmware on the device for all you other poor souls out there who haven't used openocd in years.

To dump:

# 指定CH347-JTAG 调试器
adapter driver ch347
ch347 vid_pid 0x1a86 0x55dd

# 设置TCK时钟频率
adapter speed 10000

source [find cpld/xilinx-xc7.cfg]
source [find cpld/jtagspi.cfg]
init
jtagspi_init 0 bscan_spi_xc7a35t.bit
flash read_bank 0x0 output.bin
shutdown

To flash:

# 指定CH347-JTAG 调试器
adapter driver ch347
ch347 vid_pid 0x1a86 0x55dd

# 设置TCK时钟频率
adapter speed 10000

proc fpga_program {} {
	global _CHIPNAME
	xc7_program $_CHIPNAME.tap
}

source [find cpld/xilinx-xc7.cfg]
source [find cpld/jtagspi.cfg]
init
jtagspi_init 0 bscan_spi_xc7a35t.bit
jtagspi_program pcileech_squirrel_top.bin 0x0
fpga_program
shutdown

from pcileech-fpga.

ufrisk avatar ufrisk commented on June 4, 2024 2

Many thanks for this info. I'm happy to see the issue is resolved.

from pcileech-fpga.

ufrisk avatar ufrisk commented on June 4, 2024

Hi, the LeetDMA is directly compatible with the Squirrel. You can download the pre-built firmware and flash it, or download the Squirrel sources and modify them to your wishes.

I should add something about this in the documentation...

from pcileech-fpga.

dvGrab avatar dvGrab commented on June 4, 2024

It looks like LeetDMA devices are the same as NinjaDMA which are pretty affordable. Thanks for this, helped me out.

from pcileech-fpga.

dexus1337 avatar dexus1337 commented on June 4, 2024

@Relys first of all, thanks for your guide! Just what i was looking for.

However, it doesnt seem to work for me, i get the following error message:

openocd.exe -f dump.cfg
Open On-Chip Debugger 0.12.0+dev (2023-07-24-11:41)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : CH347 Open Succ.
Info : clock speed 10000 kHz
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
Error: Unknown flash device (ID 0xffffff)

Info : Close the CH347. 

Also the board seems to hang after trying to run this command. The green (status?) led is constantly ON as well. Restetting the system will bring it back though.

Any chance you've run into similar issues?

from pcileech-fpga.

z12crypto avatar z12crypto commented on June 4, 2024

image
I have followed @Relys' method for flash compiling the firmware, but I encountered an error. What could be the possible issue?

from pcileech-fpga.

Relys avatar Relys commented on June 4, 2024

@dexus1337 @z12crypto Maybe try lowering the adapter speed? They could have also changed spi flash chip. Take a look into that. idk

from pcileech-fpga.

Relys avatar Relys commented on June 4, 2024

@Relys first of all, thanks for your guide! Just what i was looking for.

However, it doesnt seem to work for me, i get the following error message:

openocd.exe -f dump.cfg
Open On-Chip Debugger 0.12.0+dev (2023-07-24-11:41)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : CH347 Open Succ.
Info : clock speed 10000 kHz
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
Error: Unknown flash device (ID 0xffffff)

Info : Close the CH347. 

Also the board seems to hang after trying to run this command. The green (status?) led is constantly ON as well. Restetting the system will bring it back though.

Any chance you've run into similar issues?

This is what happens when the FPGA is not powered on but you're trying to connect via USB JTAG. Make sure the board is powered on.

from pcileech-fpga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.