Hi all,
I am working on synthesize a C6747 code project which can record using audioSample.pjt and mmcsdSample.pjt both from PSP drivers 01_30_01.
At first, I confronted the I2C problem and I followed the advice by link http://e2e.ti.com/support/embedded/f/355/p/63131/229120.aspx#229120
But I still have no output in my headphone and SD card. I debug the project finding that the code fails at the mmcsd task in
//Configure MMCSD
#ifdef Mmcsd_GPIO_CDWP_ENABLE
configureMmcsd(mmcsdGpioInputIsr); //it fails at this line!!!!
#else
configureMmcsd(NULL);
#endif
I debug into that line find that it calls function edma3init() which is already called once by the audio task. I know this replicate call is forbidden.
My question is how can I initialize two EDMA handles which are for McASP and MMCSD, respectively? edma3init() for C6747 seems initialize one handle only. I tried the main_multi_edma.c in edma example in package edma3_lld_01_11_01_04, but it did not work for the second edma handle neither.
I need EDMA to control communication between memory and McASP and communication between memory and SD card. I think two EDMA handles are needed to fulfill this aim. What should I do? Can it return two EDMA handles when I call edma3init() once? Or I should first initialize one handle by edma3init() then edma3deinit() and consequently initialize another one by edma3init() then edma3deinit() again?
Any advice is welcomed!!
Best regards!
Bo Li