Hi All,
I have been working on SD Card reading and writing.
My configuration: CCS ver 4.0; C5515 USB ezDSP stick.
I am able to Build and Run the CSL_MMCSD_dmaExample. It works fine. It means using DMA, I am able to write and read from SD Card.
Then when I execute the CSL_MMCSD_SdCardExample the Writing takes place fine but the code hangs during the reading phase.
Could someone point out why this could be so ? I am just running the code as it is. Using the linker command file that came with this example VC5505_MMCSD.cmd.
Also I have Built and included the atafs_bios_drv_lib.lib into this project.
The output at the console is:
CSL MMCSD - SD CARD POLL MODE TEST!
API: MMC_open Successful
SD card Detected!
SD card is Standard Capacity Card
Memory Access will use Byte Addressing
API: MMC_write Successful
The code hangs at the following lines of code which are at approximately line numbers: 3803-3810 of file csl_mmcsd.c
do
{
status = hMmcsd->mmcRegs->MMCST0;
if((status & CSL_MMCSD_DATA_TOUT_CRC_ERROR) != 0)
{
reIssueReadFlag = 1;
break;
}
} while((status & CSL_MMCSD_READ_READY) != CSL_MMCSD_READ_READY);
Any clues for a solution to the code hanging issue,
Thanks,
AV.