I am using Elm-chan FatFs module. I ported it correctly as it works when using a 16GB SD card. But when using a 32GB card, the code is getting stuck at the CMD55, ACMD41 set up loop.
Bellow is the print out of the command and response I am experiencing
cmd0, resp = 0x01
cmd8, resp = 0x01
cmd55, resp = 0x01
cmd41, resp = 0x01
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0x7F
cmd55, resp = 0xFF
cmd55, resp = 0xFF
Then from there, cmd55 always gets a response of 0xFF indefinitely. I've looked at other questions, spi SDC guides, and other ff.c implementations, and I am for the most part following it, because the code does work for a 16GB card, just when I switch to a 32GB card and restart the code, the 32GB card does not initialize.
Does it matter on the brand? the 32GB card is a samsung evo select micro sdhc. The 16GB is a Lexar micro sdhc