Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Cyclone V GX starter kit, can not write to micro SD card

Hi all,

I am trying the Cyclone V GX Starter kit's SD card examples. The SD card FAT32 reading was perfect.

However, it really surprised me that Terasic's example code do not support WRITING。

The HAL driver layer has functions for writing such as SD_CMD24, SDLIB_WriteBlock512.

I tried to use these lib function to write a block to SD cards. I tried many micro SD card, either return error code "CMD24 NG" or no error code but nothing changed.

Has anybody succeed to write to SD using Terasic's lib?

I also tried the FAT16 Unviersity Plan SPI SD card code, and failed even to read.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, I have the same problem, I didn't find a way to write the SD-Card. Did you find a solution?

    Thank you in advance.

    --- Quote Start ---

    Hi all,

    I am trying the Cyclone V GX Starter kit's SD card examples. The SD card FAT32 reading was perfect.

    However, it really surprised me that Terasic's example code do not support WRITING。

    The HAL driver layer has functions for writing such as SD_CMD24, SDLIB_WriteBlock512.

    I tried to use these lib function to write a block to SD cards. I tried many micro SD card, either return error code "CMD24 NG" or no error code but nothing changed.

    Has anybody succeed to write to SD using Terasic's lib?

    I also tried the FAT16 Unviersity Plan SPI SD card code, and failed even to read.

    --- Quote End ---