-
Notifications
You must be signed in to change notification settings - Fork 268
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
Hang on "Enable configuration:" programming ECP5 not alone on a JTAG chain #133
Comments
Hi! |
After re-reading this issue I have seen that you use litex-acorn-baseboard. It's true? |
Hi @trabucayre, @sergachev is indeed using the litex-acorn-baseboard and designed it. The FPGA configuration is working when JTAG is directly connected to each FPGA and the issue only happens when chaining the JTAG. When chained, Diamond is able to correctly configure the Lattice ECP5 and Vivado the Artix7, so the hardware/chain seems to be OK. |
Ok. it's more clear about board! |
The strange thing in fact is: programming the artix works, it's only when programming lattice in the full chain... |
Hi! Apart from what @enjoy-digital already answered:
|
In fact now your setup is more clear to me. Previous questions are about common sources of issues but in this case it no more make sense, and if diamond works the problem is not about hardware. |
Just a small question: have you tested with openOCD? It's works? Its just to see if this issue is specific to openFPGALoader or is common all non proprietary tools. |
I tested with OpenOCD too and it also fails somewhere with 2 devices on the chain (flash programming of Artix for sure, but maybe something else too). Will be able to test again in a week. |
It's really interesting! If both fails there is maybe something particular done by diamond. |
I'm back to tests with this board; latest openFPGALoader still fails the same way.
I'm no expert in SVF files but suspect that it needs to generated in a way that it's aware of both FPGAs to work correctly. I'm using this config for OpenOCD which at least detects both chips successfully and throws no warnings. |
It's really weird. I assume openOCD works as openFPGALoader: it know jtag chain topology and there is no need to have something about this aspect in the SVF file. Maybe checking signals between probe and EPC5, between FPGAs, and between artix and probe? The most strange this is lattice is able to deal with this chain, maybe there is a specific configuratiion when ECP5 is not alone... Do you know public availabilty for the board? It's generaly more easy to find something when the hardware is near computer :-) |
Sure - see --index-chain x in the commands in the 1st message.
What exactly would you check? The chain overall does work, both devices are detected, Artix gets configured.
Totally understandable, but unfortunately no info. I should try to chain such 2 devices using off-the-shelf boards as promised already though. |
|
Hi.
This is interesting because second scheme shows this issue is not related to a bug into algorithm. Cables in my setup adds 1 to 3 ns due to the length but seems not relevant too. I have to try with diamond but unfortunately, this tool is unable to see my JTAG probe :-/ I have added |
We have the same problem here, with different boards and different lattice chips in a chain. Here the command line: The output is:
which I stopped with Ctrl-C. With debug level 3 I see that the following is repeated endlessly:
|
Thanks for this information. |
I have a board with 2 FPGAs on the JTAG chain:
If I try to program ECP5 like that openFPGALoader hangs on "Enable configuration:" :
At the same time it can program the artix:
And if I physically disconnect the artix from the chain it works fine with ECP5:
Lattice Diamond Programmer works in both configurations.
The text was updated successfully, but these errors were encountered: