Hi,
I have already worked on mcbsp applications using DSPBIOS and has been doing the development involving the mcbsp peripheral quite successfully.
I started facing problems when i was compelled to migrate to sysbios and syslink due to some unavoidable circumstances.
The configuration which worked successfully on DSPBIOS doesnt seem to work on SYSBIOS.
I am using the following components :
biospsp_03_00_01_00
bios_6_34_02_18
xdctools_3_24_05_48
ipc_1_25_00_04
syslink_2_21_01_05.
The issue that i am facing is that mcbsp doesnt seem to transmit any data, I am using the mcbsp sample application provided in biospsp_03_00_01_00 as reference.
I fill a temporary buffer with known data and copy its contents to the buffers reclaimed from the output stream. Rest of my code is similar to the mcbsp sample application.
My configuration for mcbsp is as follows :
#define NUM_OF_CHANNELS 64
#define FRM_SZ 40
#define BUFSIZE (FRM_SZ * NUM_OF_CHANNELS)
#define NUM_BUFS 2
Mcbsp_DataConfig mcbspChanConfigtx =
{
Mcbsp_Phase_SINGLE,
Mcbsp_WordLength_8,
Mcbsp_WordLength_8, /* Dont care for single phase*/
NUM_OF_CHANNELS,
NUM_OF_CHANNELS, /* Dont care for single phase*/
Mcbsp_FrmSync_DETECT,
Mcbsp_DataDelay_0_BIT,
Mcbsp_Compand_ALAW,
Mcbsp_BitReversal_DISABLE,
Mcbsp_IntMode_ON_SYNCERR,
Mcbsp_RxJust_RZF, /* Dont care for TX */
Mcbsp_DxEna_OFF
};
/**< clock setup for TX section */
Mcbsp_ClkSetup mcbspClkConfigtx =
{
Mcbsp_FsClkMode_EXTERNAL,
8000, /*8Khz*/
Mcbsp_TxRxClkMode_EXTERNAL,
Mcbsp_FsPol_ACTIVE_HIGH,
Mcbsp_ClkPol_RISING_EDGE /*must be rising edge for xmit*/
};
/**< Multi channel setup */
Mcbsp_McrSetup mcbspMultiChanCtrltx =
{
//Mcbsp_McmMode_ALL_CHAN_ENABLED_UNMASKED,
//Mcbsp_McmMode_ALL_CHAN_ENABLED_MASKED,
Mcbsp_McmMode_ALL_CHAN_DISABLED_UNMASKED,
Mcbsp_PartitionMode_CHAN_0_15,
Mcbsp_PartitionMode_CHAN_16_31,
Mcbsp_PartitionMode_8 /*for 64 channels*/
};
Mcbsp_ChanParams mcbspChanparamtx =
{
Mcbsp_WordLength_16, /* wordlength configured */
NULL, /* loop job buffer internal */
0, /* user loopjob length */
NULL, /* global error callback */
NULL, /* edma Handle */
1, /* EDMA event queue */
8, /* hwi number */
Mcbsp_BufferFormat_MULTISLOT_INTERLEAVED,
TRUE, /* FIFO mode enabled */
&mcbspChanConfigtx, /* channel configuration */
&mcbspClkConfigtx, /* clock configuration */
&mcbspMultiChanCtrltx, /* multi channel control */
/*for 64 channels*/
0xffffffff,
0xffffffff,
0x00,
0x00
};
Could anybody pls guide me through this?? what am i doing wrong???
Thanks & regards
Pankaj Bamola