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

Handle data starting to come back before response is finished #26

Open
paulusmack opened this issue May 5, 2021 · 1 comment
Open

Comments

@paulusmack
Copy link
Contributor

I have noticed on logic analyzer traces that at slow clock speeds (e.g. 400kHz), the microSDXC card I am using sometimes starts clocking the data out on the data lines before it has finished clocking the response out on the CMD line. The litesdcard interface only starts looking for the data after the response is complete, so it doesn't see the data, and eventually times out.

As far as I can see in the SD spec, it is legal for the card to start clocking the data out any time after the response has started. I think we need to start the state machine for receiving data at the same time when the state machine for receiving the response is started, not when the response state machine finishes.

@enjoy-digital
Copy link
Owner

Thanks @paulusmack, interesting. We should indeed then decouple the Cmd-Path/Data-Path reception in the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants