openFPGALoader icon indicating copy to clipboard operation
openFPGALoader copied to clipboard

openfpgaloader got stuck when I load to Tang primer 20k

Open huangshaoxin opened this issue 1 year ago • 5 comments

Jtag frequency : requested 6.00MHz -> real 6.00MHz
Parse file Parse /home/hsx/FPGA/linux-on-litex-vexriscv/build/sipeed_tang_primer_20k/gateware/sipeed_tang_primer_20k.fs: Done DONE Jtag frequency : requested 2.50MHz -> real 2.00MHz

the program got stuck here without any reactions

huangshaoxin avatar Oct 20 '23 08:10 huangshaoxin

Could you try with --verbose-level = 2 and copy/paste display?

Also, could you try with master branch? Some issues was fixed in JTAG implementation.

trabucayre avatar Oct 23 '23 05:10 trabucayre

------------------ 原始邮件 ------------------ 发件人: "trabucayre/openFPGALoader" @.>; 发送时间: 2023年10月23日(星期一) 中午1:18 @.>; @.@.>; 主题: Re: [trabucayre/openFPGALoader] openfpgaloader got stuck when I load to Tang primer 20k (Issue #396)

Could you try with --verbose-level = 2 and copy/paste display?

Also, could you try with master branch? Some issues was fixed in JTAG implementation.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

huangshaoxin avatar Oct 23 '23 05:10 huangshaoxin

Not sure to be able to read your answer

trabucayre avatar Oct 25 '23 12:10 trabucayre

Hi, I face the same issue.

❯ openFPGALoader build/sipeed_tang_primer_20k/gateware/impl/pnr/project.fs --verbose-level=2

No cable or board specified: using direct ft2232 interface
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
Raw IDCODE:
- 0 -> 0x0000081b
- 1 -> 0xffffffff
- 2 -> 0xffffffff
- 3 -> 0xffffffff
- 4 -> 0xffffffff
found 1 devices
index 0:
	idcode 0x81b
	manufacturer Gowin
	family GW2A
	model  GW2A(R)-18(C)
	irlength 8
File type : fs
Parse file Parse build/sipeed_tang_primer_20k/gateware/impl/pnr/project.fs:
checksum 0xb746
Done
DONE
bitstream header infos
CRCCheck: ON
Compress: OFF
ConfDataLength: 2110
ProgramDoneBypass: OFF
SPIAddr: 00000000
SecurityBit: ON
idcode: 0000081b
loading_rate: 0
Jtag frequency : requested 2.50MHz   -> real 2.00MHz
displayReadReg 00000421
	CRC Error
	Memory Erase
	Non-jtag is active
pollFlag: a1
erase SRAM pollFlag: 81
pollFlag: 81
pollFlag: 81
pollFlag: 81
pollFlag: a1
Done
pollFlag: 421
pollFlag: a1
pollFlag: a1
pollFlag: a1
pollFlag: a1
pollFlag: a1
pollFlag: a1
pollFlag: a1
...

help appreciated

Flinner avatar Feb 17 '24 18:02 Flinner

Fixed; flash something on the flash (not sram), then unplug the power from the module and power it back. then flashing on SRAM regularly, works.

Flinner avatar Feb 17 '24 19:02 Flinner