oyama / pico-vfs

Thin virtual file system for Raspberry Pi Pico
Other
9 stars 2 forks source link

Unusable card error with 32GB SD card #40

Closed oyama closed 3 months ago

oyama commented 3 months ago
int err = fs_format("/", sd, fat);
err == 01 && errno == 5007
CMD:0    arg:0x0         Response:0x1
CMD:8    arg:0x1aa       Response:0x1
V2-Version Card
R3/R7: 0x1aa
CMD8 Pattern mismatch 0x1aa : 0x0
Fail to initialize card
Test of FAT on sd:
CMD:0    arg:0x0         Response:0x1
CMD:8    arg:0x1aa       Response:0x1
V2-Version Card
R3/R7: 0x1aa
CMD8 Pattern mismatch 0x1aa : 0x0
Fail to initialize card
device->init error ==-5007

Probably a problem with the card initialisation procedure