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

openfpgaloader got stuck when I load to Tang primer 20k #396

Open
huangshaoxin opened this issue Oct 20, 2023 · 5 comments
Open

openfpgaloader got stuck when I load to Tang primer 20k #396

huangshaoxin opened this issue Oct 20, 2023 · 5 comments

Comments

@huangshaoxin
Copy link

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

@trabucayre
Copy link
Owner

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.

@huangshaoxin
Copy link
Author

huangshaoxin commented Oct 23, 2023 via email

@trabucayre
Copy link
Owner

Not sure to be able to read your answer

@Flinner
Copy link

Flinner commented Feb 17, 2024

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
Copy link

Flinner commented Feb 17, 2024

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.

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

3 participants