Hi,
I just bought a 6747 EVM and I am trying to convert a
dsk6713 project to it.
For the dsk 6713 I had used the
CCS\examples\dsk6713\bsl\dsk_app project with ping pong buffering.
I
was looking for something similar with the new board. So I tried the
audio sample project given in pspdrivers_01_20_00 and
pspdrivers_01_30_01\packages\ti\pspiom\examples\evm6747\audio.
My
problems are the following:
1- How would I handle ping pong buffering with this example?
2- When I use the 01_20_00 version, the program works fine but I can't seem to make it work for 96kHz which is what I need. It seems that even when configured at 96kHz, the codec works at 48kHz.
3- I would like to set the codec to 32 bits data but I am not quite sure how this has to be done, I have tried the following in the audioSample_io.c but I get "Create output stream FAILED".
#define RX_NUM_SERIALIZER (2u)
#define TX_NUM_SERIALIZER (2u)
Mcasp_ChanParams
mcasp_chanparam[Audio_NUM_CHANS] =
{
{ 0x0002, /* number of serialisers */
{ Mcasp_SerializerNum_0, }, /* serialiser index */
&mcaspRcvSetup, TRUE, Mcasp_OpMode_TDM, /* Mode
(TDM/DIT) */
Mcasp_WordLength_32, NULL, 0, NULL, NULL, 1, /* number of TDM
channels */
Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_2, TRUE, TRUE },
{ 0x0002, /* number of serialisers */
{ Mcasp_SerializerNum_5, }, &mcaspXmtSetup, TRUE, Mcasp_OpMode_TDM,
Mcasp_WordLength_32, /* word width */
NULL, 0, NULL, NULL, 1, /* number of TDM channels */
Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_2, TRUE, TRUE }
};
4- When I use the pspdrivers_01_30_01, the project can't be built, and I get the following message
-------------------------- audioSample.pjt - Debug
--------------------------
[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
undefined first
referenced
symbol in
file
---------
----------------
_SWI_new C:/Program Files/Texas
Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6747/audio/build/ccs3/../../../../../../../ti\pspiom\mcasp\lib\C6747\Debug\ti.pspiom.mcasp.a674<Mcasp.obj>
error: unresolved symbols remain
"Mcasp.c", line 766: warning: relocation from function "mcaspMdBindDev"
to
symbol "_SWI_new" overflowed; the 31-bit relocated address 0xcfff01c0
is too
large to encode in the 21-bit signed PC-Relative field (type =
'R_C60PCR21'
(82), file = "C:/Program Files/Texas
Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6747/audio/bu
ild/ccs3/../../../../../../../ti\pspiom\mcasp\lib\C6747\Debug\ti.pspiom.mcas
p.a674<Mcasp.obj>", offset = 0x00000b40, section =
".text:_mcaspMdBindDev")
error: errors encountered during linking; "C:/Program Files/Texas
Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6747/audio/bu
ild/ccs3/../../bin/Debug/audioSample.out" not built
>> Compilation failure
Build Complete,
1 Errors, 1 Warnings, 0 Remarks.
Any help would be greatly appreciated,
JL