应该是大意了。
我找了另一个SDMMC 烧写工程里是按要求配的参数(OMAP-L138_FlashAndBootUtils_2_40OMAP-L138CCSSDMMCWriter)
const SDMMC_ConfigObj DEVICE_SDMMC_config =
[
SDMMC_LITTLE_ENDIAN, // writeEndian
SDMMC_LITTLE_ENDIAN, // readEndian
SDMMC_DAT3_EDGE_DETECT_DISABLE, // dat3Detect
#if (1)
249, // initModeClockRate (target 300 KHz with 150 MHz input to module)
7, // dataModeClockRate (target 10 MHz with 150 MHz input to module)
#else
19, // initModeClockRate (target 300 KHz with 12 MHz input to module)
0, // dataModeClockRate (target 3 MHz with 6 MHz input to module)
#endif
SDMMC_4BIT_DATABUS, // busWidth
0xFF, // timeoutResponse (none)
0x0000FFFF, // timeoutData
SDMMC_FIFO_LEVEL_HIGH // fifoThreshold
];
SDMMC_ConfigHandle const hDEVICE_SDMMC_config = (SDMMC_ConfigHandle) &DEVICE_SDMMC_config;
static Uint32 LOCAL_sdmmcwriter()
[
SDMMC_MEM_InfoHandle hSDMMCMemInfo;
Int8 fileName[256];
Uint32 baseAddress = 0;
Bool useHeaderForApp = FALSE;
DEBUG_printString( "Starting " );
DEBUG_printString( (String) devString );
DEBUG_printString( " SDMMCWriter.rn" );
// Initialize SD/MMC Memory Device
hSDMMCMemInfo = SDMMC_MEM_open(DEVICE_SDMMCBOOT_PERIPHNUM, hDEVICE_SDMMC_config);
http://processors.wiki.ti.com/index.php/Main_Page
Think Over Before Asking.
http://www.catb.org/~esr/faqs/smart-questions.html#goal