Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS/OMAP-L138: MMCSD_FATFS example problem

$
0
0

Part Number:OMAP-L138

Tool/software: TI-RTOS

Hi 

I am trying to run mmcsd_fatfs PSP BIOS example. Everything looks fine but the output freezes at this point and nothing happens:

MMCSD_SAMPLE: Create Fat format on MMCSD

I have commented the  f_mkfs section but then in the fopen function it returns NULL and:

ERROR: FatFs fxn 'fopen' returned NULL

Any suggestion? My tools:

Hardware: LogicPD SOMOMAPL138

No CD,WP

CCS 5.3.0.00090

XDC 3.24.5.48

BIOSPSP 3.0.1.00

EDMA3 2.11.9

IPC 1.25.0.04

SYS/BIOS 6.34.2.18

Target: ti.targets.elf.C674

Platform: ti.platforms.evm6748

I have cleaned and build all the BIOSPSP libraries with the above tools. And please do not suggest to move to the latest tool sets because I have an older project working fine with these versions and I just want to add mmcsd_fafs support to it.

When I halt the program and bring Task from RTOS Object View (ROV) , it shows the idle Task is running:

The console print is shown here. I have added some print lines to see the progress:

[C674X_0] 
MMCSD_SAMPLE : Starting Sample Application Using BLOCK MEDIA
 MMCSD_SAMPLE:Card is inserted
 MMCSD_SAMPLE: Media is registered with FATfs 
Sector Count
Sector Count Done
Count is=5120
NUM_SECTORS is=6144 
FILESYS_BYTE_COUNT is=3145728 Bytes = 3 MegaByts
BYTE_COUNT is=5120 Bytes = 0 MegaByts
MMC_INST_ID is=0
PSP_MMCSD_SAMPLE_DRIVE is=1
File Name is=fat:1:sample.txt

MMCSD_SAMPLE: Create Fat format on MMCSD

And it just halt here and nothing happens.

I have tested the following micro SD Cards (formatted FAT32 with windows):

TOSHIBA SDHC 4G

Silicon Power 4G

Kingston SDHCi 8G

TOSHIBA SDHCi 16G

The hardware is OK because I ran Linux on ARM side from micro-sd cards.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



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