Open lifehackerhansol opened 1 year ago
It should be noted that the G003 does not double check the commands here; it will read and write to the SD, no questions asked, proceeding to corrupt the file system to oblivion.
Also, sector addresses should be shifted <<1
, not <<9
.
For SDIO (uncertain about flash IO), the MSByte of the sector address is actually CARD_COMMAND[7]. CARD_COMMAND[1-3] are the following bits.
So it should in fact be:
Alternatively: