Am 17.02.26 um 16:13 schrieb Ladislav Laska:
Hi!

I don't think people are actively working on the module. I also see
there are some PRs to address this issue. It would be nice to either
adopt one of them, or crate a new integrating all the previous efforts.

If you have samples, I suggest to open a PR into sigrok-dumps
repository, this can later be used by automated tests.

Namely, there is this PR:

https://github.com/sigrokproject/libsigrokdecode/pull/93

... though it seems it copied a large chunk of the SD decoder, so it
needs some work.

Additionally:

By the way,

It seems there might be bug in CMD decoder. The CMD4 is an command without
Response. Thus, after the CMD4 command all subsequent Fields "Command" and
"response" in PulseView seems to be swapped!

Adam
I'm not 100% sure, but this could be fixed in this PR I recently
reviewed:

https://github.com/sigrokproject/libsigrokdecode/pull/127

The logic was rewritten to look into each packet to determine if it is a
command or response and not rely on the hardcoded logic of
request-response. The motivation was primarily faulty or partial communication 
(no
reply), that would result in misinterpreted data.

It would be nice if you could contribute samples and test if this PR
actually solves the problem.

There are some minor issues that need to be resolved first that may
cause it to fail - namely, it does not properly reset the expectedBits
field. But I'm not familiar enough with the SD protocol to say if it
will work.

How different are eMMC and SD in practice? I understand they should be
mostly compatible with only minor differences due to patents/copyright
fees and perhaps the 8bit mode for eMMC?

Best regards,
Ladislav

I authored PR#127 and have also experimented with a data decoding the context of the sdcard_sd decoder. I agree that there should be similarities in the protocols, since the the SD-card protocol is an extension of the MMC protocol (https://en.wikipedia.org/wiki/SD_card#Command_interface).

I assume it would be worth the find the common parts in the sdcard_sd decoder and the eMMc decocder of the PR#93. If the PR#127 is done I could take a look on it.

Regards
Helge



_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to