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.

RTOS/AM5728: How to modify Audio sample project for changing McASP

Guru 10235 points
Part Number: AM5728
Other Parts Discussed in Thread: TMDSEVM572X

Tool/software: TI-RTOS

Hello, TI Experts,

 

Our customer sent us additional question about DSP(C66x) McASP sample project with PROCESSOR-SDK-RTOS-AM57X from the below E2E-thread.

https://e2e.ti.com/support/processors/f/791/p/745195/2759073#2759073

 

They try to change the audio-IC connection from mcasp3 to mcasp2 with TMDSEVM572X.

 

Question:

   - Which file should be modified in "MCASP_Audio_evmAM572x_c66ExampleProject"?

   - How to modify the related files exactly?

 

If there are the related document or recommended way, please tell us.

 

Best regards,

 

  • Matusan,

    When you are changing the McASP instance and serializer, there may implication to pinmux in board library other than MCASP driver based application. Is the change in MCASP serializer the only change or is the clocking , I2C to AIC codec also changing ?

    First and foremost the MCASP3 clock and serializer pins will need to be pinned out using pinmux tool as we don`t do this for the base EVM/IDK configuration. Use the pinmux tool here and generate the pinmux files and rebuild the board library :
    www.ti.com/.../PINMUXTOOL

    All other peripheral configuration level changes should be in mcasp_cfg.c and audio_evmInit.c in the folder :
    pdk_am57xx_1_0_12\packages\ti\drv\mcasp\example\evmAM572x\src

    These files contains the MCASP transmit and receive clocking, format, serializer, mode of operation, serializer index, sample rate, etc.

    If you have to sequentially bring up the whole setup with small steps, I would do the following:
    1. Setup pinmux and write a basic diagnostics tests to make sure pins are toggling and clocks are coming out.
    2. Check out the DeviceLoopback (internal loopback) with external ADC is working correctly
    3. Configure the AIC code using I2C similar to existing example and make sure data and clocks are coming into MCASP2
    4. Modify driver parameter and make sure interrupts and EDMA is setup correctly.

    There are plenty of reference examples for MCASP that can be used as reference where we have used alternate configuration than the baseline example. Majority of them are for K2G device as we support multi-channel audio daughter card and speech recognition/ audio pre-processing demo/TI Desgin for that device that uses different MCASP instances and clocking schemes.

    Hope this helps.

    Regards,
    Rahul
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.
    They want to just only change use-pin from McASP3 to McASP2.

    I will send the answer to the customer.

    Best regards,