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

Error: Failed to claim FPGA device: mismatch between target's idcode and fs idcode #252

Closed
neuberfran opened this issue Sep 3, 2022 · 5 comments

Comments

@neuberfran
Copy link

Hi,

I stay trying this: https://trabucayre.github.io/openFPGALoader/vendors/gowin.html with my tangnano 1k by sipeed with issue:

Error: Failed to claim FPGA device: mismatch between target's idcode and fs idcode

Everything looks OK and the installation of openFPGALoader looks OK.

Screenshot from 2022-09-03 18-31-07
Can anyone help

@trabucayre
Copy link
Owner

Your install seems ok. This error is displayed when you create a gateware for an FPGA and you try to load it into another, different, FPGAs. For example you have a project for GW1N-2 and your target is GW1N-1.
Each model has a specific idcode (a unique number by model) and this information is available into the bitstream.
Could you use -v option to have more verbose ouput and recheck physical device?
Keep in mind there is two tangNano1K:

  • original one with a GW1N-1 and with a ch552 as jtag interface
  • new one with a GW1NZ-1 and with a bl702.

So if you use an existing project for the original: risks are great to have a gateware configured to the wrong FPGA.

@neuberfran
Copy link
Author

@trabucayre
Copy link
Owner

This issue is tangNano first generation related. If you have bought recently your board I think you have an bl702 interface.
According to your screenshot you use Tang-Nano-examples

But if you have new one you have to use
TangNano-1K-examples

@neuberfran
Copy link
Author

@trabucayre Solved. Nothing change in my board because already comes with this program installed(I think)

Screenshot from 2022-09-03 19-18-07

Yes. I have new one

@trabucayre
Copy link
Owner

Great!
Most important thing is: openFPGALoader has passed idcode check. But I'm agree message is a bit cryptic and it's requires to be reviewed with more relevants informations!
Thanks!
Can I close this issue?

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

2 participants