Hi,
I am using the MMCSD driver (via the block media driver) in RAW mode. Currently, the writing speeds I am experiencing is roughly 0.06Mbyte/s, which is two orders (!) of magnitude slower than the speed I anticipated (6Mbyte/s for a class 6 card). I've tried various SD cards but this doesn't seem to make much difference.
I am using PSP 1.30.01 with a C6748. Currently I am using the zoom EVM board. In case it helps, here is how I set up the drivers:
The MMCSD driver:
const uint32_t MMCSD0_CLOCK_FREQUENCY = (150u * 1000u * 1000u);
const uint32_t MMCSD0_INSTANCE_ID = 0u;
const uint32_t MMCSD0_HWI_NUMBER = 7u;
PSP_MmcsdConfig mmcsdConfig;
mmcsdConfig.opMode = PSP_MMCSD_OPMODE_DMAINTERRUPT;
mmcsdConfig.hEdma = hEdma[0];
mmcsdConfig.eventQ = PSP_MMCSD_EDMA3_EVENTQ_0;
mmcsdConfig.hwiNumber = MMCSD0_HWI_NUMBER;
mmcsdConfig.pscPwrmEnable = false;
mmcsdConfig.pllDomain = PSP_MMCSD_PLL_DOMAIN_0;
const int32_t MMCSD_DRIVER_INIT_RESULT = PSP_mmcsdDrvInit(MMCSD0_CLOCK_FREQUENCY,
MMCSD0_INSTANCE_ID,
&mmcsdConfig);
The block media driver:
const uint8_t BLOCK_MEDIA_DRIVER_EMDA_EVENT_QUEUE_NUMBER = 0x00;
const uint8_t BLOCK_MEDIA_DRIVER_TASK_PRIORITY = 0x02u;
const uint16_t BLOCK_MEDIA_DRIVER_STACK_SIZE = 4096u;
const int32_t BLOCK_MEDIA_DRIVER_INIT_RESULT = PSP_blkmediaDrvInit(hEdma[0],
BLOCK_MEDIA_DRIVER_EMDA_EVENT_QUEUE_NUMBER,
BLOCK_MEDIA_DRIVER_TASK_PRIORITY,
BLOCK_MEDIA_DRIVER_STACK_SIZE);
Any help would be much appreciated.
Kind regards,
Mark