Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH347 stuck on load for Xilinx and chip id mismatch on Lattice FPGA #380

Open
LearnShareAlways opened this issue Sep 18, 2023 · 7 comments

Comments

@LearnShareAlways
Copy link

LearnShareAlways commented Sep 18, 2023

I have Xilinx Kintex XC7K325 board and ECP5 color light 75b board and openFPGALoader works fine with ft2232 cable. However, I am not able to load the bitstream using CH347. I tried both Xilinx and Lattice FPGAs :

Xilinx

`openFPGALoader -c ch347_jtag qmtech_xc7k325t.bit -v
JTAG TCK frequency set to 4 MHz

found 1 devices
index 0:
idcode 0x3651093
manufacturer xilinx
family kintex7
model xc7k325t
irlength 6
File type : bit
Open file DONE
Parse file DONE
bitstream header infos
date: 2023/04/29
design_name: qmtech_xc7k325t
hour: 20:31:53
part_name: 7k325tffg676
toolVersion: 2022.2
userID: 0XFFFFFFFF
load program
(stuck here)`

Lattice

`openFPGALoader -c ch347_jtag colorlight_5a_75b.bit -v
JTAG TCK frequency set to 4 MHz

found 1 devices
index 0:
idcode 0x1111043
manufacturer lattice
family ECP5
model LFE5UM-25
irlength 8
File type : bit
Open file: DONE
Parse file: DONE
bitstream header infos
Part: LFE5U-25F-6CABGA256
idcode: 41111043
mismatch between target's idcode and bitstream idcode
bitstream has 0x41111043 hardware requires 0x00111043
Error: Failed to program FPGA: std::exception
`

@LearnShareAlways LearnShareAlways changed the title CH347 stuck on load for Xilinix and chip id mismatch on Lattice FPGA CH347 stuck on load for Xilinx and chip id mismatch on Lattice FPGA Sep 18, 2023
@LearnShareAlways
Copy link
Author

LearnShareAlways commented Sep 18, 2023

Tried binary build from review branch created for #379 and I see it works for ECP5:
`
openFPGALoader -c ch347_jtag colorlight_5a_75b.bit -v
JTAG TCK frequency set to 7 MHz

found 1 devices
index 0:
idcode 0x41111043
manufacturer lattice
family ECP5
model LFE5U-25
irlength 8
File type : bit
Open file: DONE
Parse file: DONE
bitstream header infos
Part: LFE5U-25F-6CABGA256
idcode: 41111043
IDCode : 41111043
displayReadReg
Config Target Selection : 0
Done Flag
Std PreAmble
No err
Enable configuration: DONE
SRAM erase: DONE
Loading: [==================================================] 100.00%
Done
userCode: 00000000
Disable configuration: DONE
displayReadReg
Config Target Selection : 0
Done Flag
Std PreAmble
No err
`

However, it still does not work for Xilinx FPGA:

` openFPGALoader -c ch347_jtag qmtech_xc7k325t.bit -v
JTAG TCK frequency set to 7 MHz

found 1 devices
index 0:
idcode 0x3651093
manufacturer xilinx
family kintex7
model xc7k325t
irlength 6
File type : bit
Open file DONE
Parse file DONE
bitstream header infos
date: 2023/04/29
design_name: qmtech_xc7k325t
hour: 20:31:53
part_name: 7k325tffg676
toolVersion: 2022.2
userID: 0XFFFFFFFF
load program
(stuck here)
`

@aystarik
Copy link
Contributor

51292f0 this might help

@LearnShareAlways
Copy link
Author

51292f0 this might help

Now getting "input buffer underflow" error (used your repo->master):

JTAG TCK frequency set to 7 MHz

found 1 devices
index 0:
idcode 0x3651093
manufacturer xilinx
family kintex7
model xc7k325t
irlength 6
File type : bit
Open file DONE
Parse file DONE
bitstream header infos
date: 2023/05/06
design_name: qmtech_kintex.frames
hour: 21:11:19
part_name: xc7k325tffg676-1
toolVersion: xc7frames2bit
userID: xc7frames2bit
load program
Error: Failed to program FPGA: input buffer underflow

@aystarik
Copy link
Contributor

try again?

@LearnShareAlways
Copy link
Author

No buffer underflow error but It stuck at load again:

JTAG TCK frequency set to 7 MHz

found 1 devices
index 0:
idcode 0x3651093
manufacturer xilinx
family kintex7
model xc7k325t
irlength 6
File type : bit
Open file DONE
Parse file DONE
bitstream header infos
date: 2023/04/29
design_name: qmtech_xc7k325t
hour: 20:31:53
part_name: 7k325tffg676
toolVersion: 2022.2
userID: 0XFFFFFFFF
load program

@henrypenghong
Copy link

henrypenghong commented Dec 15, 2023

With CH347T (bcdDevice 4.42, lateast firmware) and latest source code, I also get "input buffer underflow" error in programming bit file to Xilinx FPGA while detecting is OK.
Could anyone help on this? Thanks.

sudo openFPGALoader -c ch347_jtag --detect
JTAG TCK frequency set to 7.500 MHz

index 0:
idcode 0x3656093
manufacturer xilinx
family kintex7
model xc7k410t
irlength 6

sudo openFPGALoader -c ch347_jtag -b --fpga-xc7k410t --freq 10000000 spiOverJtag.bit
JTAG TCK frequency set to 15.000 MHz

Open file DONE
Parse file DONE
load program
Error: Failed to program FPGA: input buffer underflow

@racerxdl
Copy link

Had the same problem, but #424 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants