Closed pepijndevos closed 4 years ago
I have tested with another bitstream and precompiled binary with the same results. I have attached a strace and bitstream in case it is helpful.
could you try with -v (verbose) I suspect you will see long list of pollFlag: xxxx If I'm true it's not a regression but the FPGA in a wrong state. I need to to find how to unlock the FPGA (it's done by gowin programmer) but datasheet has missing informations for this topic.
For reference, I tried it and the FPGA finished programming. Apparently it was indeed in a wrong state.
I have this problem. If I use the -v, I do get a long list of pollFlag messages. Is there a workaround? I thought that maybe updating to a new ch552 firmware would help, but I don't think it has (or I have the wrong one). Any ideas?
EDIT: I built https://github.com/racerxdl/tangnano-yosys-hello and that was able to upload to my board. I was previously trying to upload the example pack.fs from apicula. Note that "openFPGALoader -b tangnano blinky-tangnano.fs" from apicula also succeeds.
I have lately tested different version of ch552 firmware with an external MCU, behaviour is more or less the same...
But according to your EDIT and apicula's issue I suspect an incompatible bitstream (built for a different device). A check for device and bitstream IDCode must be added and load the fs only if it's targeted for connected FPGA.
I'm trying to program the Tang Nano but it gets stuck at 99%
My git reflog looks as follows:
The oldest commit does not support the Tang Nano, and neither of the newer ones work. Now that I think about it I'm not sure I ever used OpenFpgaLoader with Tang Nano or only with the Trenz GW1NR-9 board.