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.

AM5728: McASP Audio Example on AM572x GP EVM using TI-RTOS with Processor SDK RTOS AM57xx 8.1.0.9

Part Number: AM5728

Trying to run create TI RTOS project for the AM572x with the McASP Audio example as per the MCASP_Audio_evmAM572x_c66ExampleProject.txt file provided at ti\drv\mcasp\example\evmAM572x\c66\bios.

Project built without any issues and is running also without any crashes.

As per my understanding this project samples the audio data coming through the Audio input port sampled through AIC Codec and sends to DSP through McASP. DSP in turn sends it back to the audio out port through McASP and AIC Codec.

But when I run the binary, I see the Rx and Tx buffer contents continuously changing, but their levels (or sample ranges) have show no change or have no effect whether I connect anything or not to the Audio in of the EVM board. And I can't hear anything on the Audio out port even if I am playing some audio through the audio in port.

What could be the problem here..?

Can anyone help?

I have added my project also here for reference.

Thanks & regards,

AshokMxASP_Test.rar

  • Hi Ashok,

    I'll check this with the team, meanwhile, can you please mention if you have made any changes to the existing example?

    Regards,
    Parth

  • Hi Parth,

    Thanks for the reply. 

    I have attached my project itself in my previous post. You can take a look at it.

    I just used the files and configs as given in the attached text file which was shared in the example folder. (Please note that there was no project available directly for this audio playback test, only device loopback was available which doesn't serve my purpose of taking in the external audio and playing it out again to external speaker.

    Hence this post.

    Thanks & regards,

    MCASP_Audio_evmAM572x_c66ExampleProject.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/audioSample_io.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/audioSample_main.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/aic3104_if.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/aic31.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/codec_if.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmAM572x/src/audio_evmInit.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmAM572x/src/mcasp_cfg.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/soc/am572x/mcasp_soc.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/i2c/soc/am572x/I2C_soc.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmAM572x/c66/bios/AudioLoopback.cfg"
    -ccs.setCompilerOptions "-mv6600 --abi=eabi -g --define=SOC_AM572x --define=AIC_CODEC --define=DMA_XBAR_AVAILABLE --define=MCASP_HOST --define=BUILD_AM572X_DSP --display_error_number --diag_warning=225 -I${PDK_INSTALL_PATH} -I${PDK_INSTALL_PATH}/ti/drv/mcasp/example/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmAM572x/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp -I${PDK_INSTALL_PATH}/ti/board" -rtsc.enableRtsc
    -ccs.setLinkerOptions "--reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model "
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Ashok

  • Hi Ashok,

    Please note that there was no project available directly for this audio playback test, only device loopback was available which doesn't serve my purpose of taking in the external audio and playing it out again to external speaker.

    I am not getting this point. I can see there is a example project available for MCASP_Audio_evmAM572x_c66Example by default in PDK, you don't have to add anything separately.

    Regards,
    Parth

  • This project was not available Only Device Loopback project was available. I tried that also and tried changing the build macros to disable device loopback and enable AIC codec, but still that also did not help. Other than the project settings for these macros, I have not changed anything in the project source files except adding 2 counters (one for Tx and one for Rx) and making couple of structure variables as global...so that I can watch then in expressions window. Rest all remains same.

  • Hi,

    Will have to check this internally. Will get back to you by Wednesday.

    Regards,
    Parth