Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Problem in dda_mmcsdBios.c

$
0
0

Hi,

I am using OMAP-L138 EVM along with UI board to sample signals using A/D converter and my intention is to write sampled data to SD card having file system. I have working RTFS based MMCSD code to write data to SD card and BSL based UPP code to sample signals, respectively.

When I add BSL based code with RTFS based project, it compiles fine but doesn't work. I have debugged the code and found out that it doesn't execute the code given below in bold. I mean after executing this line, it doesn't come back and kept running somewhere I don't know and project never executes afterwards. When I run only RTFS based MMCSD code, this line executes and pointer comes back to another 'if' given just below the bold condition and project executes successfully. Therefore, I think, this line has some problem which doesn't let merged projects to work properly. 

if (TRUE != SEM_pend(gMmcsdCallbackSem, SYS_FOREVER))
{
MMCSD_ERR_DEBUG(("\r\n MMCSD: Sem gMmcsdCallbackSem "
"Take failed"));
}

if (gMmcsdDetectError != 0)
{
MMCSD_DRV_DEBUG(("\r\n MMCSD: Card init. failed"));
result = gMmcsdDetectError;

blkEventInfo.EventId = PSP_BLK_EVT_MEDREM;
blkEventInfo.EvtData = \
&gMmcsdDdaObj[instanceId].blkDrvInfo;

I have no idea what's wrong. Can anyone please help me debugging the cause of this problem ?

I appreciate your help.

Thanks.

BAS


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>