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.

RTOS/AM3352: SD card filesystem error

Part Number: AM3352

Tool/software: TI-RTOS

details:

using TI-RTOS with

PDK 1.0.7,

SYSBIOS 6.46.5.55,

EDMA3LLD 2.12.4

Linaro GNU compiler 4.9.3

Custom board. NOT an emulation board.

So here is my problem. we are trying to get the FATFS with SDCard drivers to work on our board tied to MMC0, i am using the example project MMCSD_FatfsConsole_evmAM335x_DMA_armExampleProject as the basis for how to set everything up. i am using the following  code to set up the SDCard and FATFS:

if(MMCSD_socGetInitCfg(0,&hwAttrsConfig)!=0) {
//MMCSD_log ("\nUnable to obtain MMCSD config.Exiting. TEST FAILED.\r\n");
return;
}

/* The default hwAttrsConfig for instance 0 is configured as SD card (in compliance with the 335x GP EVM).
In the custom board, since we are using instance 0 with EMMC, the hwAttrs (defined with defaults in ti/drv/mmcsd/soc/am335x/MMCSD_soc.c)
needs to be changed to reflect that. This includes, the bus width too (8 bit width for EMMC, instead of 1bit or 4bit width for SD cards) */
hwAttrsConfig.cardType=MMCSD_CARD_SD;
hwAttrsConfig.supportedBusWidth= MMCSD_BUS_WIDTH_4BIT;
hwAttrsConfig.edmaHandle = gEdmaHandle;

if(MMCSD_socSetInitCfg(0,&hwAttrsConfig)!=0) {
//MMCSD_log ("\nUnable to set config.Exiting. TEST FAILED.\r\n");
return;
}

/* MMCSD FATFS initialization */
FATFS_init();

FATFS_open(0U, NULL, &fatfsHandle);

and everything seems to go just fine. i don't get any errors. when i attempt to do an f_open as such: result = f_open(&pf, p_FileName, FA_OPEN_EXISTING | FA_READ);

my result is FR_NOT_ENABLED. 

i had the exact same problem with my eMMC chip from post:   but i remove that chip and put in an SDCard and i am getting the same error:

i have verified that there is no activity on the MMC clk line.