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_sdcard: add CMD18 - CMD_READ_MULTIPLE_BLOCK #8913
Conversation
Thanks! At a glance this looks like a great cleanup and addition, and I'll do a more in-depth review when I have some time. Are you working on something either inside or outside of MAME that uses CMD_READ_MULTIPLE_BLOCK? |
Hi,
Sure take your time. I have one concern about with this implementation.
I changed idle response from 0..0 to 1..1 which per my understanding is
correct. Ideally that needs to be tested in existing drivers which use SPI.
I'm trying to implement tsconf zx-evolution driver in mame. READ_MULTI was
essential. Later I will add WRITE as well when reach this point. Just tring
to minimize pressure on reviewers.
Let me know if you have any questions regarding this pr.
…On Tue, Nov 30, 2021, 9:03 PM R. Belmont ***@***.***> wrote:
Thanks! At a glance this looks like a great cleanup and addition, and I'll
do a more in-depth review when I have some time. Are you working on
something either inside or outside of MAME that uses
CMD_READ_MULTIPLE_BLOCK?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8913 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOGK6QZRTUUY54CZ2GQ5DUOV65LANCNFSM5JDHXBHA>
.
|
Why have you added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The “checklist review” stuff I was looking at has all been addressed. I’ll leave it to @rb6502 to review the actual logic here.
Thank your rapid responses and patience! |
Hey @holub, was the change to the CMD8 response intentional? It should be valid for SD version 2 and later - does the Spectrum device assume version 1 and a different response? Anyway, I've merged your changes and reverted the CMD8 response, because the different response was confusing the firmware of the Apple II SD. |
Interesting case indeed. Ref (4.3.13 Send Interface Condition Command (CMD8)) respond with voltage info. Weird Apple ll just echos back. I'll take a look what can be missed and where. |
You can see what the Apple II firmware's doing at line 249 here: It wants the first response byte to be 0x01, and it wants R33 to contain 0xAA for the card to pass as version 2. |
Appreciate your help. I've just checked: Evo perfectly works with voltage
response. That was hardcoded for early experiments and unfortunately missed
when I reviewed this large refactoring of the code.
…On Wed, Dec 1, 2021, 9:00 PM R. Belmont ***@***.***> wrote:
You can see what the Apple II firmware's doing at line 249 here:
https://github.com/freitz85/AppleIISd/blob/master/Firmware/src/AppleIISd.s
It wants the first response byte to be 0x01, and it wants R33 to contain
0xAA for the card to pass as version 2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8913 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOGK56P32KSYB6OHNHAILUO3HKRANCNFSM5JDHXBHA>
.
|
SPI_SDCARD: