How to flash Gowin FPGA with MRJTAGER_V2 cable via "--busdevnum"

Open
#668 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Domain
devtools

Research direction

Start by comparing the reported usbscan, --scan-usb, and --detect results, then check the --busdev-num option and FT2232 device-opening path. The report names no source files or tests; done means identifying why the device cannot be opened and whether this setup is supported, with a reproducible resolution.

Written by the indexing model from the issue text.

Description

I use a flash calble called MRJTAGER_V2(FT2232H) to flash a gameboy cart FPGA ( Gowin GW1NZ) and try to find device via busdevnum, it always fail as below:

E:\openFPGALoader>usbscan
bus=001,address=004

E:\openFPGALoader>openFPGALoader.exe --unprotect-flash --external-flash --busdev-num 001:004 mrcart.fs
empty
write to flash
←[33mNo cable or board specified: using direct ft2232 interface←[0m
unable to open ftdi device: -4 (libusb_open() failed) (USB bus 1 addr 4)
←[31mJTAG init failed with: unable to open ftdi device←[0m

when I try to scan usb:

E:\openFPGALoader>openFPGALoader --scan-usb
empty
←[32mBus device vid:pid probe type manufacturer serial product←[0m
←[31mError: can't open device with vid:vid = 0x0403:0x6010. Error code -5 Entity not found←[0m

and detect:
E:\openFPGALoader>openFPGALoader --detect
empty
←[33mNo cable or board specified: using direct ft2232 interface←[0m
unable to open ftdi device: -4 (usb_open() failed)
←[31mJTAG init failed with: unable to open ftdi device←[0m

Can you guy help to define this situation? anything else I need configure before do this step.
Thank a lot!

Dominant language
C++
Stars
1.7k
Forks
396
Avg merge
2d 4h
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from trabucayre/openFPGALoader

All issues in trabucayre/openFPGALoader

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.