This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Had to work on other things for a while. Did enable R5 & R7 (equivalents) via P4.0 & P7.2 internal pull-up resistor enable - that was the problem! The LP is now writing to small MicroSD cards:256 MB & 1 GB FAT16 successfully, but can't write to 32 or 64 GB cards which would be FAT32. The code looks like it supports both FAT sizes. Is there anything else I need to do to work with these larger cards?
// enable P4.0 internal pull-up resistor
P4REN = 0x01;
// enable P7.2 internal pull-up resistor
P7REN = 0x04;
I will need these larger sizes eventually, if not in the current SBC design. The 432 LP & BOOSTXL+SHARP does support 32 & 64 GB MicroSD cards.
Digi-Key does stock some of these older, smaller MicroSD cards.
I don't know what code you are using but for those larger sizes you must support high capacity. This requires setting the high capacity bit during initialization (ACMD41) and using block numbers for addressing.
I'm just using the LP's Out of the Box example for the microSD card. I see where ACMD41 is defined and used in mmc.c, but don't see where it's set. Doing a project search in CCS doesn't find any other references to it.
That file name isn't encouraging as it suggests an out of date implementation. You will need to consult the SD card specification (part 1 simplified) to see how badly out of date it is.
An earlier comment about either soldering the two missing resistors, or enabling the internal pull-ups fixed the initial problem. The code is running fine on the LP and writing to the uSD card.
**Attention** This is a public forum