Problem with SD card

I've been using an old 4GB SDHC memory card until today when I managed to break its plastic casing.
Today I bought a 32GB micro SD card which I'm using with the help of an adapter. I've formatted it to FAT32, just like the previous one but when I inserted it in my sd module on my 1.8inch TFT screen and tried running the CardInfo example code from the SD library on my Arduino UNO it kept telling me that it's missing the FAT16/FAT32 partition.

Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card

I also tried formatting it to FAT16 but it still didn't work.

I tried formatting it using the SdFat SDFormatting example code but I kept getting this error after choosing to format the SD:

All data set to 0xff

Erase done

Format Failed

SD errorCode: SD_CARD_ERROR_WRITE_DATA = 0x21

SD errorData = 0x0

Here is the full info about my SD card(using the SDInfo example code from SDFat)

init time: 231 ms

Card type: SDHC

sdSpecVer: 6.00

HighSpeedMode: false

Manufacturer ID: 0XFE

OEM ID: 4V

Product: ASTC

Revision: 1.2

Serial number: 0X37D

Manufacturing date: 11/2022

cardSize: 31266.44 MB (MB = 1,000,000 bytes)

flashEraseSize: 128 blocks

eraseSingleBlock: true

dataAfterErase: ones

OCR: 0XC0FF8000

read MBR failed.

SD errorCode: SD_CARD_ERROR_CMD18 = 0XC

SD errorData = 0X0

Is there any way to fix it?
I'm pretty new to arduino and alot of the errors I found here I can't find the solution to on the internet

It is often recommended to use only the Secure Digital format tool.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.