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/TDA3XEVM: Audio Integration in TDA3x

Part Number: TDA3XEVM

Tool/software: TI-RTOS

Hi Team,

I am using TDA3x EVM board as reference board and VisionSDK3.1 as reference code. I want to enable audio in TDA3x. In reference EVM board there is no Audio interface given. but in our custom board we have provided audio interface. we are using TLV320AIC3109 audio codec. As i know same audio codec used in TDA2x EVM board.

Can anyone suggest code changes or any document is present that also will be good.

Thanks,

Chirag

  • Hi Chirag,

    I have forwarded your question to an expert for comment.

    Regards,
    Yordan
  • There is no plan to support McASP driver in Vision SDK. If this project is for DRA then you can use the McASP TI RTOS driver in DRA Processor SDK.

  • Hi Sivaraj,

    can you please tell how can i test Audio Out in TDA2x evm board. is there any use case any test application? I am using RTOS build.

    Thanks,
    Chirag
  • As I said we don't have any plan to have TI RTOS McASP driver as part of VSDK release

    You can refer the baremetal CSL example at pdk<version>\packages\ti\csl\example\mcasp\mcasp_transmit

  • yes , I have compiled this pakages and i got one appimage file also. when i am flashing i am not getting response, no consol print, no audio test. that's why i asked how can i test audio in TDA2x.

    Ok, please can you tell me which SDK have Audio driver and support or which build is made for Audio integration support in TDA2x Vayu EVM XC5777x Board.

    Thanks,
    Chirag
  • Hi Chirag,

    The Processor SDK RTOS Automotive package provides a PDK which supports the McASP driver and a few examples to set up audio I/O:

    www.ti.com/.../PROCESSOR-SDK-DRA7X

    For this, you can follow instructions DRA75x definition which  is compatible with the TDA2xx EVM.  Please refer to the release notes and for more information:

    http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_Automotive_Release_Notes

    Thanks,
    Stephen

  • There is a baremetal McASP example which gives a sinetone built for tda2xx evm.
    Please refer the example present at <pdk_install_dir>\packages\ti\drv\stw_lld\examples\mcasp\mcasp_sinetone
  • Hi Prasad,

    Thanks for reply.

    I have gone through that example. when i am building Pdk packages at that time mcasp_sinetone is not getting compiled. so i checked in same <pdk_install_dir>\packages\ti\drv\stw_lld\examples path, all other example is getting compiled and i am getting appimage for that particular example inside <pdk_install_dir>\packages\ti\binary\* . but i am not getting mcasp_sinetone example binary. you can check drv_stw_lld* example is getting compiled. can you please suggest why it is not getting compiled and how can i compile and get binary for mcasp_sinetone.

  • the default build will build for IPU1 core. For other cores you need to explicitly provide the CORE.
    Use one of the below command to build mcasp sinetone example for a15 core and dsp core.
    make -s drv_stw_lld_mcasp_sinetone_app CORE=a15_0
    make -s drv_stw_lld_mcasp_sinetone_app CORE=c66x
  • Prasad,

    when i am using that command , i am getting error. please look on this.

    make -s drv_stw_lld_mcasp_sinetone_app CORE=a15_0
    /home/vkchlt0039/Projects/zfgg_prsc/src/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/drivers/pdk_01_08_00_16/packages/ti/boot/sbl_auto/tools/multicore_image_generator/v1/MulticoreImageGen: 2: /home/vkchlt0039/Projects/zfgg_prsc/src/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/drivers/pdk_01_08_00_16/packages/ti/boot/sbl_auto/tools/multicore_image_generator/v1/MulticoreImageGen: Syntax error: ")" unexpected
    /home/vkchlt0039/Projects/zfgg_prsc/src/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/drivers/pdk_01_08_00_16/packages/ti/build/makerules/common.mk:556: recipe for target '/home/vkchlt0039/Projects/zfgg_prsc/src/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/drivers/pdk_01_08_00_16/packages/ti/binary/drv_stw_lld_mcasp_sinetone_app/bin/tda2xx-evm/drv_stw_lld_mcasp_sinetone_app_a15_0_release.appimage' failed
    make[1]: *** [/home/vkchlt0039/Projects/zfgg_prsc/src/PROCESSOR_SDK_VISION_03_01_00_00/ti_components/drivers/pdk_01_08_00_16/packages/ti/binary/drv_stw_lld_mcasp_sinetone_app/bin/tda2xx-evm/drv_stw_lld_mcasp_sinetone_app_a15_0_release.appimage] Error 2
    makefile:135: recipe for target 'drv_stw_lld_mcasp_sinetone_app' failed
    make: *** [drv_stw_lld_mcasp_sinetone_app] Error 2

    when i cross check this in sine tone make file, it is already build for a15_0 and c66x core. please check some part of that makefile.

    # mcasp sinetone app
    drv_stw_lld_mcasp_sinetone_app_COMP_LIST = drv_stw_lld_mcasp_sinetone_app
    drv_stw_lld_mcasp_sinetone_app_RELPATH = ti/drv/stw_lld/examples/mcasp/mcasp_sinetone
    drv_stw_lld_mcasp_sinetone_app_PATH = $(PDK_STW_EXAMPLE_COMP_PATH)/mcasp/mcasp_sinetone
    drv_stw_lld_mcasp_sinetone_app_BOARD_DEPENDENCY = yes
    drv_stw_lld_mcasp_sinetone_app_CORE_DEPENDENCY = yes
    export drv_stw_lld_mcasp_sinetone_app_COMP_LIST
    export drv_stw_lld_mcasp_sinetone_app_BOARD_DEPENDENCY
    export drv_stw_lld_mcasp_sinetone_app_CORE_DEPENDENCY
    drv_stw_lld_mcasp_sinetone_app_PKG_LIST = drv_stw_lld_mcasp_sinetone_app
    drv_stw_lld_mcasp_sinetone_app_INCLUDE = $(drv_stw_lld_mcasp_sinetone_app_PATH)
    drv_stw_lld_mcasp_sinetone_app_BOARDLIST = tda2xx-evm tda2px-evm tda2ex-evm
    export drv_stw_lld_mcasp_sinetone_app_BOARDLIST
    drv_stw_lld_mcasp_sinetone_app_$(SOC)_CORELIST = a15_0 c66x
    export drv_stw_lld_mcasp_sinetone_app_$(SOC)_CORELIST
    stw_examples_EXAMPLE_LIST += drv_stw_lld_mcasp_sinetone_app
    drv_stw_lld_mcasp_sinetone_app_SBL_APPIMAGEGEN = yes
    export drv_stw_lld_mcasp_sinetone_app_SBL_APPIMAGEGEN

    Thanks,

    Chirag

  • Hi,

    The binary is built for both a15 and c66 cores.

    Can you try doing a clean build?
    Are you issuing the make command from .../pdk_01_08_00_16/packages/ti/build ? if not change and try.

    Also i see errir only in generation of app image, whether the linking of the app image is successful, .xa15fg image.?
    If so you may load the binary using ccs and run it.

    Regards,
    Prasad
  • Hi Prasad,

    Thank you so much for information. After doing clean compilation I am able to generate this images,

    drv_stw_lld_mcasp_sinetone_app_a15_0_release.appimage

     drv_stw_lld_mcasp_sinetone_app_c66x_release.appimage

    I have tested individual image and i got sine tone also.

    Now I want to integrate this with custom TDA3xx board. So what i am thinking a15 core not present in TDA3x , but we can use c66x core for TDA3xx. If we compile same example for TDA3x board with c66x core. So just we can test sine tone in TDA3x board. yes?

    Note: I am using same Audio codec in Custom TDA3xx board as used in TDA2xx Vayu board.

    Thanks,

    Chirag

  • Hi Chirag,

    This example was never added for tda3xx, so you will have to change few things.

    1. Pad configuration should be updated for the Mcasp pads used for your board.

    2. Prcm configuration should be updated for tda3xx.

    3. You have to update the mcasp address based on instance used.

    4. update the edma channels to be used for tda3xx.

    5. check the i2c address of the codec on your evm and update.

    Regards,
    Prasad