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/TMS320C6748: Audio DSP examples for the TMS320C6748 in the Processor SDK RTOS

Part Number: TMS320C6748
Other Parts Discussed in Thread: TMDSLCDK6748, , OMAP-L138, OMAPL138, 66AK2G02, CCSTUDIO, MATHLIB

Tool/software: TI-RTOS

I am struggling to find DSP audio processing example/starter projects for the TMS320C6748 using the new RTOS SDK. We have some older code based on the "mcaspPlayBk.c" examples from StarterWare 1.20 but support for this older SDK seems limitied and I am interested in migrating to the newer SDK. However, the only example code I have discovered for the RTOS SDK is the "Audio Benchmark Starter Kit" which is missing much of the functionality of the StarterWare example and I have not found the documentation helpful for setting up the mcasp hardware on the TMDSLCDK6748 evaluation board. I also don't see any support for this board or DSP chip in the Code Composer Studio Resource Explorer.

Can anyone recommend resources and documentation for getting started with Audio processing on this hardware?

  • Hello,

    Documentation on the Audio Benchmark Starter Kit is available here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_examples_demos.html#audio-benchmark-starterkit

    For the C6748, the only other example I can think of is the McASP audio loopback example, please see here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#mcasp

    There is an Audio Pre-processing Demo available for AM57x/K2G/C6747 devices, but some porting effort would be required to get it running on C6748.
    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_examples_demos.html#audio-pre-processing-demo

    In regards to audio examples for OMAP-L138/C6748, Processor SDK RTOS is not as fully-featured as StarterWare, but as you mentioned StarterWare is no longer being supported or actively maintained. For new development, TI recommends starting with PRSDK to receive bug fixes, quarterly updates, and forum support. 

  • I have been having trouble with the scripts to setup the Audio Benchmark Starterkit Demo. Following the instructions at software-dl.ti.com/.../index_examples_demos.html

    I get the following errors when I run the BenchmarkProjectCreate.bat script:

    PS C:\ti\processor_sdk_rtos_omapl138_5_03_00_07\demos\audio-benchmark-starterkit> .\BenchmarkProjectCreate.bat

    >> 

    =========================================================================

    Configuration:

       SOC             :   K2G

       BOARD           :   all

       MODULE          :   all

       PDK_SHORT_NAME  :   C:\ti\PROCES~1\demos\AUDIO-~1\

    =========================================================================

    Checking Configuration...

    Complete

    =========================================================================

       PDK_PARTNO         : 66AK2G02

       PDK_ECLIPSE_ID     :

       RTSC_PLATFORM_NAME : ti.platforms.evmTCI66AK2G02

       RTSC_TARGET        : ti.targets.elf.C66

       CCS_DEVICE         : "com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice"

    *****************************************************************************

    Detecting all projects in PDK and importing them in the workspace C:\ti\PROCES~1\demos\AUDIO-~1\\BenchmarkProjects

    Detected Test Project: Benchmark_FFT_evmK2G_c66ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    Detected Test Project: Benchmark_FIR_evmK2G_c66ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    Detected Test Project: Benchmark_IIR_evmK2G_c66ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    No projects detected

    Project generation complete

    *****************************************************************************

  • You need to specify the SOC and board when running the script:

    BenchmarkProjectCreate.bat C6748 lcdkC6748 all

  • I have tried specifying the SOC and board as you suggested but get exactly the same error. I tried running the script in both windows "Command Prompt" and PowerShell to the same effect.

    I wonder if something is going wrong with the paths due to the "setupenv.bat" script. It's hard to see what is going on since the BenchmarkProjectCreate.bat script truncates the paths to old short style windows paths that are unreadable.

  • I'm unable to reproduce this on my end.

    Did you also set SDK_INSTALL_PATH and TOOLS_INSTALL_PATH as indicated here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_examples_demos.html#using-ccs-projects

    If yes, can you please share your full console log?

  • I have set both SDK_INSTALL_PATH and TOOLS_INSTALL_PATH to C:\ti which I presume is correct. Here is the console log:

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07>set SDK_INSTALL_PATH=c:\ti

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07>set TOOLS_INSTALL_PATH=c:\ti

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07>setupenv.bat

    ***************************************************

    Environment Configuration:

    ***************************************************

        SDK_INSTALL_PATH        : c:\ti

        GMAKE_INSTALL_PATH      : c:/ti/xdctools_3_51_01_18_core

        RULES_MAKE              : c:\ti/pdk_omapl138_1_0_8/packages/Rules.make

    ***************************************************

        IPC_PLATFORM: OMAPL138

        IPC_ALT_PLATFORM:

        PROC_SDK_INSTALL_PATH     : c:/ti/processor_sdk_rtos_omapl138_5_03_00_07

    **************************************************************************

    Changing to short name to support directory names containing spaces

    current directory: c:/ti/processor_sdk_rtos_omapl138_5_03_00_07

    PROCESSOR SDK BUILD ENVIRONMENT CONFIGURED

    **************************************************************************

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07>DIR

     Volume in drive C has no label.

     Volume Serial Number is D25A-0E05

     

     Directory of c:\ti\processor_sdk_rtos_omapl138_5_03_00_07

     

    06/04/2019  01:43 PM    <DIR>          .

    06/04/2019  01:43 PM    <DIR>          ..

    06/04/2019  01:43 PM    <DIR>          bin

    06/04/2019  01:43 PM    <DIR>          demos

    06/04/2019  01:43 PM    <DIR>          docs

    04/05/2019  04:46 PM             4,558 makefile

    06/04/2019  01:47 PM             2,675 Rules.make

    06/04/2019  01:47 PM             3,600 setupenv.bat

    04/05/2019  04:46 PM             3,421 setupenv.sh

                   4 File(s)         14,254 bytes

                   5 Dir(s)  47,400,226,816 bytes free

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07>cd demos

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07\demos>cd audio-benchmark-starterkit

     

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07\demos\audio-benchmark-starterkit>BenchmarkProjectCreate.bat C6748 lcdkC6748 all

    =========================================================================

    Configuration:

       SOC             :   C6748

       BOARD           :   lcdkC6748

       MODULE          :   all

       PDK_SHORT_NAME  :   c:\ti\PROCES~1\demos\AUDIO-~1\

    =========================================================================

    Checking Configuration...

    Complete

    =========================================================================

       PDK_PARTNO         : OMAPL138

       PDK_ECLIPSE_ID     :

       RTSC_PLATFORM_NAME : ti.platforms.evm6748

       RTSC_TARGET        : ti.targets.elf.C674

       CCS_DEVICE         : "com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"

    *****************************************************************************

    Detecting all projects in PDK and importing them in the workspace c:\ti\PROCES~1\demos\AUDIO-~1\\BenchmarkProjects

    Detected Test Project: Benchmark_FFT_lcdkC6748_c674ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    Detected Test Project: Benchmark_FIR_lcdkC6748_c674ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    Detected Test Project: Benchmark_IIR_lcdkC6748_c674ExampleProject

    The system cannot find the path specified.

    Copying macros.ini

    The system cannot find the file specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    The system cannot find the path specified.

    No projects detected

    Project generation complete

    *****************************************************************************

    c:\ti\processor_sdk_rtos_omapl138_5_03_00_07\demos\audio-benchmark-starterkit>

  • That is strange...see my logs below with the same commands (my SDK is installed at C:\ti\omapl138-5.3)

    Is your CCS installed at C:\ti? 

    The batch file uses the CCS project create script...is XDCtools and PDK discovered and installed by CCS?

    Can you try running it as an administrator?

    Microsoft Windows [Version 10.0.17763.557]
    (c) 2018 Microsoft Corporation. All rights reserved.
    
    C:\>set SDK_INSTALL_PATH=C:\ti\omapl138-5.3
    
    C:\>set TOOLS_INSTALL_PATH=C:\ti
    
    C:\>cd C:\ti\omapl138-5.3\processor_sdk_rtos_omapl138_5_03_00_07
    
    C:\ti\omapl138-5.3\processor_sdk_rtos_omapl138_5_03_00_07>setupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
        SDK_INSTALL_PATH        : C:\ti\omapl138-5.3
        GMAKE_INSTALL_PATH      : C:/ti/omapl138-5.3/xdctools_3_51_01_18_core
        RULES_MAKE              : C:\ti\omapl138-5.3/pdk_omapl138_1_0_8/packages/Rules.make
    ***************************************************
        IPC_PLATFORM: OMAPL138
        IPC_ALT_PLATFORM:
        PROC_SDK_INSTALL_PATH     : C:/ti/omapl138-5.3/processor_sdk_rtos_omapl138_5_03_00_07
    **************************************************************************
    Changing to short name to support directory names containing spaces
    current directory: C:/ti/omapl138-5.3/processor_sdk_rtos_omapl138_5_03_00_07
    PROCESSOR SDK BUILD ENVIRONMENT CONFIGURED
    **************************************************************************
    
    C:\ti\omapl138-5.3\processor_sdk_rtos_omapl138_5_03_00_07>cd demos\audio-benchmark-starterkit
    
    C:\ti\omapl138-5.3\processor_sdk_rtos_omapl138_5_03_00_07\demos\audio-benchmark-starterkit>BenchmarkProjectCreate.bat C6748 lcdkC6748 all
    =========================================================================
    Configuration:
       SOC             :   C6748
       BOARD           :   lcdkC6748
       MODULE          :   all
       PDK_SHORT_NAME  :   C:\ti\OMAPL1~1.3\PROCES~1\demos\AUDIO-~1\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
       PDK_PARTNO         : OMAPL138
       PDK_ECLIPSE_ID     :
       RTSC_PLATFORM_NAME : ti.platforms.evm6748
       RTSC_TARGET        : ti.targets.elf.C674
       CCS_DEVICE         : "com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\OMAPL1~1.3\PROCES~1\demos\AUDIO-~1\\BenchmarkProjects
    Detected Test Project: Benchmark_FFT_lcdkC6748_c674ExampleProject
    
    --------------------------------------------------------------------------------
    Creating project 'Benchmark_FFT_lcdkC6748_c674ExampleProject'...
    
        NOTE: Compiler version not specified - defaulting to '8.3.2'.
    
    Done!
    Copying macros.ini
    The system cannot find the file specified.
    Detected Test Project: Benchmark_FIR_lcdkC6748_c674ExampleProject
    
    --------------------------------------------------------------------------------
    Creating project 'Benchmark_FIR_lcdkC6748_c674ExampleProject'...
    
        NOTE: Compiler version not specified - defaulting to '8.3.2'.
    
    Done!
    Copying macros.ini
    The system cannot find the file specified.
    Detected Test Project: Benchmark_IIR_lcdkC6748_c674ExampleProject
    
    --------------------------------------------------------------------------------
    Creating project 'Benchmark_IIR_lcdkC6748_c674ExampleProject'...
    
        NOTE: Compiler version not specified - defaulting to '8.3.2'.
    
    Done!
    Copying macros.ini
    The system cannot find the file specified.
    No projects detected
    Project generation complete
    *****************************************************************************
    

  • Hmm, my log looks almost exactly the same as yours except that I do not have a C:\ti\omapl138-5.3 directory. I tried as Administrator and everything is here but installed in the C:\ti directory. This seems to be okay if I set SDK_INSTALL_PATH=C:\ti

    The problem seems to that this batch file is only for CCSv8 and I have CCSv7 installed! Line 150 hard codes the CCS_INSTALL_PATH to ccsv8.

    Also Line 273 sets AUTO_CREATE_COMMAND=eclipse\eclipsec -noSplash

    I modified the batch file so that the command is C:\ti\ccsv7\eclipse\eclipse.exe -noSplash and it runs now generating the three projects.

    However, when I load the project in CCS something is wrong with the relative paths. After converting to absolute paths for the main source documents I try to compile and it fails because it can't find the driver headers.

    Getting closer, but still not there.

  • Mike,

    Audio Benchmark Starterkit only benchmarks processing blocks like FFT, filtering and convolution operations. The requires users to setup the SDK build environment and the CCS as per Processor SDK RTOS Getting started guide.  The fact that your log shows "System cannot find file specified" indicates that the environment is not setup correctly and the script is either not able to find CCS or DSPLIB installation. There is a known issue with PRocessor SDK RTOS v5.03 where the DSPLIB and MATHLIB version were updated in the package which the demo did not account for.

    Having said that, Based on your usecase however, it looks like you require a audio loopback setup which is equivalent to the mcaspPlayBk.c file. The MCASP Audio loopback example is the right examples which sets up the AIC3106 codec n the LCDK and programs the MCASP for audio loopback using the stereo signal obtained from line in port on the LCDK.

    This examples is described here:

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#building-mcasp-test-applications-via-makefiles

    Hope this helps.

    Regards,

    Rahul