sdmmc-analyzer icon indicating copy to clipboard operation
sdmmc-analyzer copied to clipboard

fix CRC7 implementation

Open apmorton opened this issue 11 years ago • 1 comments

I have been trying to add CRC7 checking to this analyzer (along with exporting), and I have not been able to make the CRC7 implementation work.

I had the analyzer generate some simulated data, and the CRC's differ from what valid data should be.

CMD0 with arg=0 should produce CRC value 0x4A, but the simulated data produces CRC value 0x49

The fixed code was taken from here http://www.humblesoft.com/n-card/kernel-patch-2.4.21-pre4/mmc-driver.txt

apmorton avatar Dec 30 '13 05:12 apmorton

Hi, thanks for your patch.

From a quick look, it seems the CRC7 related code in SDMMCSimulationDataGenerator::CreateResponse48() might still be problematic.

Sadly, I do not have access to hardware right now so I can't do much testing. Do you have a reference CRC7 value at hand for a response?

dirker avatar Feb 03 '14 12:02 dirker