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.

PROCESSOR-SDK-OMAPL138: DSP Audio and Linux Processor SDK

Part Number: PROCESSOR-SDK-OMAPL138
Other Parts Discussed in Thread: OMAPL138

I have been trying to update the MessageQ example code with an additional requirement to obtain PCM samples from the ADC. The idea being that the DSP will handle all configuration of the ADC, and simple fire off results of analysis using RemoteProc calls...

The idea was to work backwards from the MCASP_Audio_lcdkOMAPL138_c674xExampleProject... Add the missing parts, with a few new MessageQ control messages...

Im currently stuck just trying to build the application... Im seeing errors when compiling "ti/drv/mcasp/soc/mcasp_soc.h" with undefined identifiers and "Unsupported SOC !!"

I have defined the following in app.cfg

var socType     = "omapl138";
var osType      = "tirtos";
var socName     = "lcdkOMAPL138";

Csl.libProfile = "release";

Osal.osType              = osType;
Osal.socType             = socType;
Csl.deviceType           = socType;
McASP.Settings.socType   = socType;
Uart.Settings.socType    = socType;
I2C.Settings.socType     = socType;
Board.Settings.boardName = socName;

This results in the following build log

**** Clean-only build of configuration Debug for project dsp ****

/home/juan/ti_04.02.00.09/ccsv7/utils/bin/gmake -k -j 8 clean -O 
 
cleaning ../src/ipc ...
cleaning ../src/utils ...
cleaning ../src/sysbios ...
rm -rf  "dsp.hex"  "configPkg/linker.cmd" "configPkg/compiler.opt"  "dsp.out" 
rm -rf  "configPkg/" 
rm -rf "main.obj" "server.obj" 
rm -rf "main.d" "server.d" 
Finished clean
 

**** Build Finished ****

**** Build of configuration Debug for project dsp ****

/home/juan/ti_04.02.00.09/ccsv7/utils/bin/gmake -k -j 8 all -O 
 
Building file: "../app.cfg"
Invoking: XDCtools
"/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs" --xdcpath="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evmOMAPL138 -r release -b "/home/juan/code/messageq/dsp/config.bld" -c "/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2" --compileOptions "-g --optimize_with_debug" -v "../app.cfg"
#
# making package.mak (because of package.bld) ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs  -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=   -f /home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages/xdc/bld/bld.js ./config.bld package.bld package.mak 
#
# generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=  -f xdc/services/intern/cmd/build.xs  -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
#
# configuring app.xe674 from package/cfg/app_pe674.cfg ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=   xdc.cfg app.xe674 package/cfg/app_pe674.cfg package/cfg/app_pe674
generating custom ti.sysbios library makefile ... 
generating custom ti.sdo.utils library makefile ...
generating custom ti.sdo.ipc library makefile ...
	Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674
	Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674
	Linking with library ti.drv.mcasp:./lib/omapl138/c674/release/ti.drv.mcasp.ae674
	Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674
Inside EDMA3 Drv getLibs
    will link with ti.sdo.edma3.drv:lib/674/release/edma3_lld_drv.ae674
Inside EDMA3 RM getLibs
    will link with ti.sdo.edma3.rm:lib/omapl138-evm/674/release/edma3_lld_rm.ae674
	Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674
	Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674
Starting build of library sources ...
making /home/juan/code/messageq/dsp/src/ipc.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/ipc'
cle674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/ipc/transports/TransportRpmsg.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
remark #24038-D: --gcc is deprecated and will be removed in a subsequent
   release. GCC compatibility is implemented through the --relaxed_ansi option
   and is the default behavior of the compiler.
asme674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/gates/GateAAMonitor_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
remark #24038-D: --gcc is deprecated and will be removed in a subsequent
   release. GCC compatibility is implemented through the --relaxed_ansi option
   and is the default behavior of the compiler.
are674 Ipc.obj gates_GateAAMonitor_asm.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/ipc'
making /home/juan/code/messageq/dsp/src/utils.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/utils'
cle674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/utils/UTILS.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
are674 UTILS.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/utils'
making /home/juan/code/messageq/dsp/src/sysbios/sysbios.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/sysbios'
cle674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
are674 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj timer64_Timer_asm.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/sysbios'
Build of libraries done.
sed 's"^\"\(package/cfg/app_pe674cfg.cmd\)\""\"/home/juan/code/messageq/dsp/Debug/configPkg/\1\""' package/cfg/app_pe674.xdl > linker.cmd
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/bin/setdate -r:max package/cfg/app_pe674.h compiler.opt compiler.opt.defs
rm -f package/cfg/app_pe674.oe674
#
# cle674 package/cfg/app_pe674.c ...
/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x -c  -g --optimize_with_debug -qq -pdsw225 -mo -mv6740 --abi=eabi -eo.oe674 -ea.se674  -mi10 -mo   -Dxdc_cfg__xheader__='"configPkg/package/cfg/app_pe674.h"'  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_8_2_2 -O2  -I. -I/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages -I/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages -I/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages -I/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages -I/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages -I/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages -I/home/juan/ti_04.02.00.09/ccsv7/ccs_base -I/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages -I.. -I/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include -fs=./package/cfg -fr=./package/cfg -fc package/cfg/app_pe674.c
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/bin/mkdep -a package/cfg/app_pe674.oe674.dep -p package/cfg -s oe674 package/cfg/app_pe674.c -C   -g --optimize_with_debug -qq -pdsw225 -mo -mv6740 --abi=eabi -eo.oe674 -ea.se674  -mi10 -mo   -Dxdc_cfg__xheader__='"configPkg/package/cfg/app_pe674.h"'  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_8_2_2 -O2  -I. -I/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages -I/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages -I/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages -I/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages -I/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages -I/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages -I/home/juan/ti_04.02.00.09/ccsv7/ccs_base -I/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages -I.. -I/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include -fs=./package/cfg -fr=./package/cfg
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/ipc/remoteproc/Resource.c", line 119: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 662: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 693: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 728: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 1565: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/Ipc.c", line 323: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/Ipc.c", line 502: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 239: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 327: remark #2142-D: comparison between signed and unsigned operands
Finished building: "../app.cfg"
 
making ../src/sysbios/sysbios.ae674 ...
making ../src/ipc.ae674 ...
making ../src/utils.ae674 ...
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Nothing to be done for 'all'.
Building file: "../main.cpp"
Invoking: C6000 Compiler
"/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="/home/juan/ti/pdk_omapl138_1_0_3/packages/ti/drv/mcasp" --include_path="/home/juan/code/messageq/dsp" --include_path="/home/juan/code/messageq/common" --include_path="/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.cpp"

>> Compilation failure
subdir_rules.mk:22: recipe for target 'main.obj' failed
"/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages/ti/drv/mcasp/soc/mcasp_soc.h", line 125: error #20: identifier "CSL_McaspRegs" is undefined
"/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages/ti/drv/mcasp/soc/mcasp_soc.h", line 128: error #20: identifier "CSL_AfifoRegs" is undefined
"/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages/ti/drv/mcasp/soc/mcasp_soc.h", line 131: error #20: identifier "CSL_AdataRegs" is undefined
"/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages/ti/drv/mcasp/soc/mcasp_soc.h", line 188: fatal error #35: #error directive: "Unsupported SOC !! "
3 errors and 1 catastrophic error detected in the compilation of "../main.cpp".
Compilation terminated.
gmake: *** [main.obj] Error 1
Building file: "../server.cpp"
Invoking: C6000 Compiler
"/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="/home/juan/ti/pdk_omapl138_1_0_3/packages/ti/drv/mcasp" --include_path="/home/juan/code/messageq/dsp" --include_path="/home/juan/code/messageq/common" --include_path="/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="server.d_raw" --cmd_file="configPkg/compiler.opt" "../server.cpp"
Finished building: "../server.cpp"
 
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

If I manually define SOC_OMAP138 through project configuration, I see errors regarding missing I2C header files...


**** Clean-only build of configuration Debug for project dsp ****

/home/juan/ti_04.02.00.09/ccsv7/utils/bin/gmake -k -j 8 clean -O 
 
cleaning ../src/ipc ...
cleaning ../src/utils ...
cleaning ../src/sysbios ...
rm -rf  "dsp.hex"  "configPkg/linker.cmd" "configPkg/compiler.opt"  "dsp.out" 
rm -rf  "configPkg/" 
rm -rf "main.obj" "server.obj" 
rm -rf "main.d" "server.d" 
Finished clean
 

**** Build Finished ****

**** Build of configuration Debug for project dsp ****

/home/juan/ti_04.02.00.09/ccsv7/utils/bin/gmake -k -j 8 all -O 
 
Building file: "../app.cfg"
Invoking: XDCtools
"/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs" --xdcpath="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evmOMAPL138 -r release -b "/home/juan/code/messageq/dsp/config.bld" -c "/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2" --compileOptions "-g --optimize_with_debug" -v "../app.cfg"
#
# making package.mak (because of package.bld) ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs  -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=   -f /home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages/xdc/bld/bld.js ./config.bld package.bld package.mak 
#
# generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=  -f xdc/services/intern/cmd/build.xs  -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
#
# configuring app.xe674 from package/cfg/app_pe674.cfg ...
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/xs -Dxdc.path="/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;.." -Dxdc.root=/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages;/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages;/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages;/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages;/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages;/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages;/home/juan/ti_04.02.00.09/ccsv7/ccs_base;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages;..;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core;/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/etc" -Dxdc.bld.targets="" -DTOOLS=   xdc.cfg app.xe674 package/cfg/app_pe674.cfg package/cfg/app_pe674
generating custom ti.sysbios library makefile ... 
generating custom ti.sdo.utils library makefile ...
generating custom ti.sdo.ipc library makefile ...
	Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674
	Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674
	Linking with library ti.drv.mcasp:./lib/omapl138/c674/release/ti.drv.mcasp.ae674
	Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674
Inside EDMA3 Drv getLibs
    will link with ti.sdo.edma3.drv:lib/674/release/edma3_lld_drv.ae674
Inside EDMA3 RM getLibs
    will link with ti.sdo.edma3.rm:lib/omapl138-evm/674/release/edma3_lld_rm.ae674
	Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674
	Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674
Starting build of library sources ...
making /home/juan/code/messageq/dsp/src/ipc.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/ipc'
cle674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/ipc/transports/TransportRpmsg.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
remark #24038-D: --gcc is deprecated and will be removed in a subsequent
   release. GCC compatibility is implemented through the --relaxed_ansi option
   and is the default behavior of the compiler.
asme674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/gates/GateAAMonitor_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
remark #24038-D: --gcc is deprecated and will be removed in a subsequent
   release. GCC compatibility is implemented through the --relaxed_ansi option
   and is the default behavior of the compiler.
are674 Ipc.obj gates_GateAAMonitor_asm.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/ipc'
making /home/juan/code/messageq/dsp/src/utils.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/utils'
cle674 /home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/utils/UTILS.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
are674 UTILS.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/utils'
making /home/juan/code/messageq/dsp/src/sysbios/sysbios.ae674 ...
gmake[1]: Entering directory `/home/juan/code/messageq/dsp/src/sysbios'
cle674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
asme674 /home/juan/ti_04.02.00.09/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
   subsequent release. The behavior is enabled by default.
are674 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj timer64_Timer_asm.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj ...
gmake[1]: Leaving directory `/home/juan/code/messageq/dsp/src/sysbios'
Build of libraries done.
sed 's"^\"\(package/cfg/app_pe674cfg.cmd\)\""\"/home/juan/code/messageq/dsp/Debug/configPkg/\1\""' package/cfg/app_pe674.xdl > linker.cmd
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/bin/setdate -r:max package/cfg/app_pe674.h compiler.opt compiler.opt.defs
rm -f package/cfg/app_pe674.oe674
#
# cle674 package/cfg/app_pe674.c ...
/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x -c  -g --optimize_with_debug -qq -pdsw225 -mo -mv6740 --abi=eabi -eo.oe674 -ea.se674  -mi10 -mo   -Dxdc_cfg__xheader__='"configPkg/package/cfg/app_pe674.h"'  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_8_2_2 -O2  -I. -I/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages -I/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages -I/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages -I/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages -I/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages -I/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages -I/home/juan/ti_04.02.00.09/ccsv7/ccs_base -I/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages -I.. -I/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include -fs=./package/cfg -fr=./package/cfg -fc package/cfg/app_pe674.c
/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/bin/mkdep -a package/cfg/app_pe674.oe674.dep -p package/cfg -s oe674 package/cfg/app_pe674.c -C   -g --optimize_with_debug -qq -pdsw225 -mo -mv6740 --abi=eabi -eo.oe674 -ea.se674  -mi10 -mo   -Dxdc_cfg__xheader__='"configPkg/package/cfg/app_pe674.h"'  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_8_2_2 -O2  -I. -I/home/juan/ti_04.02.00.09/bios_6_52_00_12/packages -I/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages -I/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages -I/home/juan/ti_04.02.00.09/edma3_lld_2_12_05_30B/packages -I/home/juan/ti_04.02.00.09/ndk_2_26_00_08/packages -I/home/juan/ti_04.02.00.09/uia_2_21_02_07/packages -I/home/juan/ti_04.02.00.09/ccsv7/ccs_base -I/home/juan/ti_04.02.00.09/xdctools_3_50_04_43_core/packages -I.. -I/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include -fs=./package/cfg -fr=./package/cfg
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/ipc/remoteproc/Resource.c", line 119: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 662: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 693: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 728: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/GateMP.c", line 1565: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/Ipc.c", line 323: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/Ipc.c", line 502: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 239: remark #2142-D: comparison between signed and unsigned operands
"/home/juan/ti_04.02.00.09/ipc_3_47_00_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 327: remark #2142-D: comparison between signed and unsigned operands
Finished building: "../app.cfg"
 
making ../src/sysbios/sysbios.ae674 ...
making ../src/ipc.ae674 ...
making ../src/utils.ae674 ...
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Nothing to be done for 'all'.
Building file: "../server.cpp"
Invoking: C6000 Compiler
"/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="/home/juan/ti/pdk_omapl138_1_0_3/packages/ti/drv/mcasp" --include_path="/home/juan/code/messageq/dsp" --include_path="/home/juan/code/messageq/common" --include_path="/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include" --define=SOC_OMAPL138 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="server.d_raw" --cmd_file="configPkg/compiler.opt" "../server.cpp"

>> Compilation failure
subdir_rules.mk:29: recipe for target 'server.obj' failed
"/home/juan/ti_04.02.00.09/pdk_omapl138_1_0_3/packages/ti/csl/csl_i2c.h", line 54: fatal error #1965: cannot open source file "ti/csl/src/ip/i2c/V0/csl_i2c.h"
1 catastrophic error detected in the compilation of "../server.cpp".
Compilation terminated.
gmake: *** [server.obj] Error 1
Building file: "../main.cpp"
Invoking: C6000 Compiler
"/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="/home/juan/ti/pdk_omapl138_1_0_3/packages/ti/drv/mcasp" --include_path="/home/juan/code/messageq/dsp" --include_path="/home/juan/code/messageq/common" --include_path="/home/juan/ti_04.02.00.09/ti-cgt-c6000_8.2.2/include" --define=SOC_OMAPL138 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.cpp"
Finished building: "../main.cpp"
 
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

My filesystem includes ti/csl/src/ip/i2c/V0/cslr_i2c.h...

Can someone either...

  1. Help me solve this issue, so I can offload ALL audio handling to the DSP, and leave Linux for user application only... or,
  2. Convince me to use Linux to provide audio packets to the DSP...

Thanks,
Juan

  • Hi Juan,

    What software are you running on the board, Linux or RTOS ? Which SDK version?

    Best Regards,
    Yordan
  • Hi Yordan,
    The board is running The Linux Processor SDK (04.02.00.09) on the ARM and the .same processor_sdk_rtos_omapl138_4_02_00_09 that was used for IPC (ipc_3_47_00_00). I Have the IPC portion working as expected and interfacing with Linux. I want to add McASP functionality to the DSP application.

    The libraries Im trying to use form part of the McASP example within pdk_omapl138_1_0_3.

    Audio was working as expected from Linux. I have disabled audio on the kernel, just waiting for this DSP application to compile successfully...

    Regards,
    Juan
  • Is there a port of the Audio SOC Example to the Processor SDK? Are there any similar examples, or should I stick to using Linux to capture PCM, and a CMEM interface to the DSP?

    processors.wiki.ti.com/.../Audio_Soc_example

    software-dl.ti.com/.../index_FDS.html
  • Hi,
    Is there a port of the Audio SOC Example to the Processor SDK?


    I'll let the RTOS team elaborate here.

    Best Regards,
    Yordan
  • Hi Juan,

    We don't have the Audio SOC example available in Processor SDK. We do have a Audio Benchmark example that may be helpful: processors.wiki.ti.com/.../Processor_SDK_RTOS_Audio_Benchmark_Starterkit

    Regarding the errors you are seeing, make sure you are including the following paths:
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/example/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/example/lcdkOMAPL138/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp

    Did you add the I2C header file? The messageq example shouldn't have that so I'm confused as to why it's looking for it.

  • Sahin Okur said:

    We do have a Audio Benchmark example that may be helpful

    OK I will look into this...
    Sahin Okur said:

    Regarding the errors you are seeing, make sure you are including the following paths:
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/example/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/example/lcdkOMAPL138/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp/include
    ${PDK_INSTALL_PATH}/ti/drv/mcasp

    Did you add the I2C header file? The messageq example shouldn't have that so I'm confused as to why it's looking for it.

    Yes I added code that follows the "old" Audio SOC example to an existing MessageQApp project I had working. My idea was that I would use MessageQ functionality to control the DSP in all its audio capturing duties. Thus Linux was left for simple user space applications only...
    Now Im still a little confused as to why I need to manually import these paths...
    Should the following settings handle this? and setting all required SOC_TYPE variables etc...
    var socType     = "omapl138";
    var socName     = "lcdkOMAPL138";
    
    Csl.libProfile = "release";
    
    Osal.socType             = socType;
    Csl.deviceType           = socType;
    McASP.Settings.socType   = socType;
    Uart.Settings.socType    = socType;
    I2C.Settings.socType     = socType;
    Board.Settings.boardName = socName;

    If I were to use other CSL features (say I need to use spi or), where can I find out what to manually include? I can follow what you've done above, but I worry that there are other settings I may miss... 

    Also... Whilst mentioning "confusion"... Can you confirm that...

    On the ARM side, I can configure to run either;

    • Linux Processor SDK, or
    • TI/RTOS Processor SDK

    On the DSP side, I can configure to run only;

    • TI/RTOS Processor SDK.

    So when Im looking through the example provided, Im still only half way there and would need to provide an equivalent Linux version of ARM side code? There are no Linux to DSP Audio samples...

  • We have a wiki page that explains how to integrate IPC into an existing RTOS application which should be useful as well:

    If you need to add other features like SPI, I recommend looking at our examples and matching the build settings in CCS.

    Juan Aguero said:

    On the ARM side, I can configure to run either;

    • Linux Processor SDK, or
    • TI/RTOS Processor SDK

    On the DSP side, I can configure to run only;

    • TI/RTOS Processor SDK.

    Correct. (There are other HLOS that can be run on ARM too)

    Juan Aguero said:

    So when Im looking through the example provided, Im still only half way there and would need to provide an equivalent Linux version of ARM side code? There are no Linux to DSP Audio samples...

    I don't think I fully understand your question here. If you're referring to messageQ, then yes you would need code on both the ARM and DSP to handle sending/receiving messages.