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

ecp5_evn example doesn't work #179

Open
podhrmic opened this issue Oct 13, 2021 · 2 comments
Open

ecp5_evn example doesn't work #179

podhrmic opened this issue Oct 13, 2021 · 2 comments

Comments

@podhrmic
Copy link

The provided ECP5 example runs only for a few seconds, and then gets stuck (no more LED movement) as shown in the video below. Tested on two different eval boards, with the latest Yosys, netxprtr and prjtrellis versions. Am I missing something in the example that needs to happen?

https://drive.google.com/file/d/1DxMFrxwb7LuZHveqQ4cLank8fDfldTex/view?usp=sharing

Screenshot from 2021-10-13 16-11-18

@gatecat
Copy link
Member

gatecat commented Oct 14, 2021

I remember this is something to do with the FTDI going into sleep and shutting off it's clock, unfortunately, I can't remember what the solution I found was.

@podhrmic
Copy link
Author

@gatecat thanks for the pointer. Switching to the internal oscillator clock fixed the problem!

From the Lattice demo I copied:

wire          osc_clk;        // Internal OSCILLATOR clock
defparam OSCI1.DIV = "128";
OSCG OSCI1 (.OSC(osc_clk));

And then used osc_clk instead clk in the demo and all works.

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