Open
Conversation
It seems that with NX devices, simply sending LSC_REFRESH is not enough to reboot the FPGA (it stays in a blank state). With trial and error, I found out that doing a no-op (with 0xFF) after LSC_REFRESH seems to be enough to actually trigger the refresh. Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
During my tests with the CertusPro-NX evaluation board, I found that the current program command doesn't work reliably: the JTAG usually doesn't have access to the flash (reports an ID full of zeroes, and the operations don't work). I noticed that in contrast, the test operation always reported correct flash IDs, so using the usleep() calls in between the JTAG commands seems to help getting the flash command to work reliably. Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
It seems that using the current SRAM programming sequence on an already programmed NX FPGA leaves the on-chip memories un-initialized. The Radiant programmer sends an LSC_REFRESH command before the SRAM programming sequence, and it does seem to help, so do it here as well. Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
Owner
|
Thanks! I'll confirm the ECP5 still operates correctly, the diff looks like ECP5 should be fine. |
Author
|
Hello, As a follow-up for this, I recently tested ecpprog with these changes on an ECP5 board: it seems to be working OK. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While testing this great tool on the CrossLink-NX VVML and CertusPro-NX Evaluation boards, I had to make some tweaks in order to get the flash and SRAM programming and the reboot command working reliably.
I explained in more details in each commit message. Unfortunately I don't have access to ECP5 boards in order to check that I didn't break anything!