Jubatian wrote: ↑Fri Jun 07, 2019 10:23 pm
What are you trying to accomplish by the way here? (Or is it some top secret stuff for a new awesome project? )
I got a few projects that involve SD cards. Most not on Uzebox but it's got an SD socket and is hooked to my computer. And also learning FAT16/32 format.
And although I still don't know why SPI crashed before with the C++ code and doesn't anymore after using an identical asm function (not sure I want to spend time investigating that), I found out why the other cards didn't work.
SD_SendCommand(SDCARD_COMMAND_ACMD41_START_SD, (1 << 30));
No L suffix.
headdesk
I gotta work on remembering int constants are 16bits.
What really threw me off was the 256MB SD card that came with the Uzebox kit.
it's not an SD card: It's an SDHC card.
It's under 2GB, sticker says plain "SD", but it won't accept MMC nor SD initialisation and it uses 512byte block addressing only.
it's a (reverse) fake SD card.
So 3/4 "SD" cards worked. Those that were actually SD cards. The "fake" SD threw me on a wild goose chase.