This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6655: McBSP driver example code for TMS320C6655

Part Number: TMS320C6655
Other Parts Discussed in Thread: TLV320AIC20K

Tool/software:

Hi,

We need to configure the McBSP module in the "TMS320C6655" device, for driving the audio CODEC IC "TLV320AIC20K".

As we are new to this configurations, Can you please share any example code for configuring the McBSP module?

Regards,

Sivarama Raju

  • Chamarthi Sivaram,

    Oh, yes, We have a good working example for McBSP which runs perfectly on C6657 EVM.

    This example is part of Processor SDK 6.3. PROCESSOR-SDK-RTOS-C667x  06_03_00_106
    https://software-dl.ti.com/processor-sdk-rtos/esd/C667x/latest/index_FDS.html

    Once installed, follow this FAQ to generate the McBSP example:- [FAQ] TMS320C6657: How to generate the CCS PDK examples for C6657? - Processors forum - Processors - TI E2E support forums

    Regards

    Shankari G

  • Hi Shakari,

    Thanks for your response,

                       As you mentioned, we have generated the PDK example in our local PC by following the steps provided in the link. After flashing the code into the C6655 device of our custom board, but we printed the same messages into the debug console as follows. 

    Yet, we don't know how to utilize those API's for transferring data through McBSP port.

    Can you please help on this point?

    Regards,

    Sivarama Raju

  • ,

    It is a loopback example. compare your screenshot with my screenshot above.

    In yours, it does not print the messages from RX path.

    --

    First of all,

    1. For custom board, you have to check the differences between the TI-EVM and your custom board.

    2. Accordingly. change the code as per your custom design.

    3. Make sure the loopback example first works with TX and RX path.

    4. Then you can connect any AICs , A/D, D/A serial devices etc via McBSP.

    Regards

    Shankari G

  • Hi Shankari,

    Thanks for your kind inputs.

    1. As you mentioned, I also checked with my hardware team, regarding the changes in our custom board schematic with respect to EVM schematic. Seems like there is a change in the power sequencing compared to the EVM schematic. Will it affect the working of the present digital loop back example?

    2. I also looked into the EDMA3 initialization part of the GEL file we are using. Seems like the events and interrupts of the peripheral, are disabled. please see the following code, 

    OnRestart( int nErrorCode )
    {
    // Allows only core 0 to access EDMA controller
    if (DNUM == 0)
    {
    // Disable EDMA3 events and interrupts and clear any pending events. */
    GEL_TextOut("Disable all EDMA3 interrupts and events.\n");
    // EDMA controller 0
    *(int*)EDMA3_IECRH = 0xFFFFFFFF; // IECRH (disable high interrupts enable)
    *(int*)EDMA3_EECRH = 0xFFFFFFFF; // EECRH (disable high events enable)
    *(int*)EDMA3_ICRH = 0xFFFFFFFF; // ICRH (clear high interrupts pending)
    *(int*)EDMA3_ECRH = 0xFFFFFFFF; // ECRH (clear high events pending)

    *(int*)EDMA3_IECR = 0xFFFFFFFF; // IECR (disable low interrupts enable)
    *(int*)EDMA3_EECR = 0xFFFFFFFF; // EECR (disable low events enable)
    *(int*)EDMA3_ICR = 0xFFFFFFFF; // ICR (clear low interrupts pending)
    *(int*)EDMA3_ECR = 0xFFFFFFFF; // ECR (clear low events pending)
    }

    // Disable interrupts
    IER = 0;
    }

    What all things, I need to consider while setting the GEL file, with respect to the change in schematic? Can you please elaborate on this?

    Regards,

    Sivarama Raju

  • Sivarama Raju

    Please open up a new query as your original question is already answered.

    Appending more questions on a same thread may be not a good choice.

    And also, new thread will get more attention compared to the older ones.

    Regards

    Shankari G