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

SPI flash not working with the ECP5 when using the Lattice Diamond toolchain #2072

Open
dwalton65 opened this issue Sep 16, 2024 · 0 comments

Comments

@dwalton65
Copy link

Firstly #2064 needs not be addressed, as this is relevant when using trellis or diamond.

I am using a ULX3S for testing.
If the project is built using the Diamond toolchain, all reads from SPI flash return 0xff. Even reads from the ID register.
The problem appears to be the way the USRMCLK USERMCLKTS is used. The Lattice document "FPGA-TN-02039-2-2-ECP5-and-ECP5-5G-sysCONFIG.pdf" says "USRMCLKTS must be connected to a signal (it cannot be connected to a constant value)".
LiteSPIClkGen sets USRMCLKTS to 0.
If I change this line to i_USRMCLKTS = ResetSignal("sys"), the spi flash works as expected.

Setting USRMCLKTS to 0 works fine when using the trellis toolchain.

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

1 participant