Other Parts Discussed in Thread: SYSBIOS, OMAPL138
DSP: C6748 running at 364.8MHz (DDR2 running at 300MHz)
Board: Custom PCB
SYSBIOS: 6.35.0.20
XDCtools: 3.24.6.63
BIOSPSP: 3.00.01.00
EDMA3LLD: 2.11.06.01
Code Composer: V5.3
File System: FatFS
SD Card: Kingston 4GB SDHC micro
Everything in our system works. We can read / write files to the SD card just fine. However, the time to access the files seems to be very very very slow. For example, we are attempting to read (4) picture files from the SD card. Each picture file is around 200kB in size. It is taking around 6 seconds to read the files.
We are using the PSP / EDMA3 drivers to access the SD card. The MMCSD_CLK is running at 45.6MHz. If I understand the SD card interface correctly, that should result in a max throughput of: 45.6MHz x 4 Data lines = 182.4Mbits per sec = 22.8MB per sec. The (4) files we want to read is around 800kB total, so the access time should be well below 1 second (not the 6 seconds we are seeing). Someone please confirm my numbers are correct.
Assuming my numbers are correct above, something else must be preventing the C6748 from moving data from the SD card to DDR2 memory quickly. We have many other things going on in this system. We are using the LCDC to drive a 1024 x 600 x 16bits per pixel display. We are also using the Ethernet MAC. Both of these modules have there own DMA controller to move data between DDR2 and the module. Furthermore, per TI's recommendation, we have changed the LCDC Master Priority from the default 5 to 0. The LCDC needs to grab 1024 x 600 x 2 = 1.3MB out of the DDR2. How fast this happens depends on the PCLK (which we have set to 30.4MHz), horizontal blank time, and the vertical blank time. My calculations come out to around 24mS per frame. So that means the LCDC moves 1.3MB every 24mS, plus whatever the EMAC is doing, plus whatever the CPU needs (cache lines). Now we have added on top of that the SD card access via EDMA3.
Is it possible we are swamping the Switched Central Resource that controls the access out to the DDR2?
What else could cause slow access between the SD card and DDR2?
- Dean