SIGN IN SIGN UP

sdcard: Compute CRC7 for all SPI commands.

Some SD cards (e.g. SDXC) have CRC checking permanently enabled in SPI
mode. Sending commands with CRC=0x00 causes them to return ILLEGAL_COMMAND,
making initialisation fail. Fix this by computing a valid CRC7 for every
command.

Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
K
Kwabena W. Agyeman committed
446038da9b03ad2aa67e256134937e19ff8d0a73
Parent: cc67cbe
Committed by Damien George <damien@micropython.org> on 3/2/2026, 1:17:14 PM