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.

ATA_format error in C5515

Hi Sir,

If the SD card format was error or SD card FAT was damaged , I can use format successful on the PC , but I can't format successful via ATA_format in C5515.

Could you give any suggestion?

Best Regards,

  • Sorry but this is again another function that is not used with the "#if 0" operate. Please pay attention to this operate. I will file an enhancement request to clean up.
    Regards.
  • Hi Sir,

    I used ccs_v5.0_examples code(CSL_MMCSD_SdCardFSExtExample) , the message is as below for your reference.

    If the SD card can be fixed via ATA_format command in C5515 , it would be good for our application.

    A good SD card:

    MMCSD-ATAFS TESTS!

    MMCSD-ATAFS POLL MODE TEST!

    SD Card detected
    SD card is High Capacity Card
    Memory Access will use Block Addressing
    SD card initialization Successful

    ATA File System Initialization successful

    File Creation/Open on SD card is Successful

    Writing Data to the file on SD card successful

    Reading Data from the file on SD card successful

    MMCSD Read and Write Buffers Match

    MMCSD-ATAFS POLL MODE TEST PASSED!!

    MMCSD-ATAFS DMA MODE TEST!

    SD Card detected
    SD card is High Capacity Card
    Memory Access will use Block Addressing
    SD card initialization Successful

    ATA File System Initialization successful

    File Creation/Open on SD card is Successful

    Writing Data to the file on SD card successful

    Reading Data from the file on SD card successful

    MMCSD Read and Write Buffers Match

    MMCSD-ATAFS DMA MODE TEST PASSED!!


    MMCSD-ATAFS TESTS PASSED!!

    A bad SD card:

    MMCSD-ATAFS TESTS!

    MMCSD-ATAFS POLL MODE TEST!

    SD Card detected
    SD card is High Capacity Card
    Memory Access will use Block Addressing
    SD card initialization Successful

    ATA File System Initialization successful

    File Creation/Open on SD card is Successful

    Writing Data to the file on SD card successful
    ATA_readLittleEndian Failed

    MMCSD-ATAFS POLL MODE TEST FAILED!!

    MMCSD-ATAFS DMA MODE TEST!

    SD Card detected
    SD card is High Capacity Card
    Memory Access will use Block Addressing
    SD card initialization Successful

    ATA File System Initialization successful

    File Creation/Open on SD card is Successful

    Writing Data to the file on SD card successful
    ATA_readLittleEndian Failed

    MMCSD-ATAFS DMA MODE TEST FAILED!!


    MMCSD-ATAFS TESTS FAILED!!

    Best Regards,

  • You can continue with that code to complete. Just comment out the "#if 0" to use it. Please note that it is not a complete verified code thus it is commented out.
    Regards.