Comments (8)
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.
Many thanks for this info. I'm happy to see the issue is resolved.
from pcileech-fpga.
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.
It looks like LeetDMA devices are the same as NinjaDMA which are pretty affordable. Thanks for this, helped me out.
from pcileech-fpga.
@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.
I have followed @Relys' method for flash compiling the firmware, but I encountered an error. What could be the possible issue?
from pcileech-fpga.
@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 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)
- Flash memory can be programmed but not used. What should I do to fix it? HOT 1
- about memory issue HOT 3
- Does the firmware support Kintex 7 Chips? HOT 1
- Q about TLP completion timeout HOT 1
- Xilinx PCIe parameters HOT 3
- Q on receiving data from FPGA HOT 3
- Question: Can I effectively use the Screamer PCIe Squirrel in a single PC setup. HOT 1
- 0x55556666 padding in the middle of receiving a TLP? HOT 4
- This device cannot be started. (Code 10) HOT 1
- pls help me HOT 2
- About solutions to some problems and some overlooked code. HOT 20
- Advice Request: Ported project to new board and 1Gbit Ethernet, how can I make it faster? HOT 5
- Is it possible to limit the number and frequency of TLPs that are actively sent on the software side?
- Keys HOT 1
- memory issue HOT 1
- Leetdma Abnormal speed measurement
- Leetdma Abnormal speed measurement HOT 2
- How to fix disconnect to the fpga board HOT 1
- ERROR: [Common 17-170] Error when generating project files HOT 6
- zdma ip core seems to be broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcileech-fpga.