Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD card initialization example: ACMD41 transmission bit missing #10

Open
pterodragon opened this issue Feb 14, 2021 · 0 comments
Open

Comments

@pterodragon
Copy link

https://github.com/cnoviello/mastering-stm32/blob/master/nucleo-f446RE/Middlewares/FatFs/src/drivers/sd_diskio_spi.c#L354
ACMD41 returns 0x05 (includes the illegal command flag) here

I think this line
https://github.com/cnoviello/mastering-stm32/blob/master/nucleo-f446RE/Middlewares/FatFs/src/drivers/sd_diskio_spi.c#L259
should have been

    cmd_message[0] = cmd | 0x40;

I'm using a SanDisk 64 GB microSDXC card, and after making the above correction, ACMD41 returns 0x00 and the SD card initialization process is successful

@pterodragon pterodragon changed the title ACMD41 transmission bit missing SD card initialization example: ACMD41 transmission bit missing Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant