how to make code generation with OMAP-L138 Experimenter Kit, CCSv5.5 and MATLAB SIMULINK

조회 수: 3 (최근 30일)
Hello, ladies and gentlemen!
I am using CCSv5.5 with matlab (x64) R2014b (simulink) runing on windows 7 (x64), when I try to bring a simple Model (just with Audio of Multimedia File, C6748EVM DAC, C6748EVM ADC, Audio Device and C6000 Reset Block ) to work, the following error will be shown
;---------------------------------------------------------------------------------------------------------------------------------
### Creating makefile: C:\Users\bisp\Documents\MATLAB\c6748evmwithreset_ticcs\c6748evmwithreset.mk ### Makefile creation done. ### Building makefile...
The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error: Error while building the project.
The build process will terminate as a result. Error while building the project. The build failed with the following message: "C:/ti/ccsv5/tools/compiler/c6000_7.4.8/bin/cl6x" -I"C:/Program Files/MATLAB/R2014b/toolbox/idelink/extensions/ticcs/inc" -I"C:/Program Files/MATLAB/R2014b/toolbox/shared/dspblks/extern/include" -I"C:/Program Files/MATLAB/R2014b/extern/include/multimedia" -I"C:/Program Files/MATLAB/R2014b/toolbox/shared/dsp/vision/matlab/include" -I"C:/Users/bisp/Documents/MATLAB/c6748evmwithreset_ticcs" -I"C:/Users/bisp/Documents/MATLAB" -I"C:/Program Files/MATLAB/R2014b/extern/include" -I"C:/Program Files/MATLAB/R2014b/simulink/include" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src" -I"C:/Program Files/MATLAB/R2014b/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2014b/rtw/c/ert" -I"C:/Program Files/MATLAB/R2014b/toolbox/dsp/include" -I"C:/Program Files/MATLAB/R2014b/toolbox/dsp/extern/src/export/include/src" -I"C:/Program Files/MATLAB/R2014b/toolbox/dsp/extern/src/export/include" -I"C:/Program Files/MATLAB/R2014b/toolbox/target/extensions/processor/tic6000/blks/lct/include" -I"C:/ti/pspdrivers_01_30_01/packages" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/cslr" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/evm6748" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/evm6748/audio" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/mcasp" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/i2c" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/platforms/codec" -I"C:/ti/pspdrivers_01_30_01/packages/ti/pspiom/psc" -I"C:/ti/edma3_lld_01_11_03_01/packages" -I"C:/ti/edma3_lld_01_11_03_01/packages/ti/sdo/edma3/drv" -D"CHIP_OMAPL138" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -mv6400+ -D"MODEL=c6748evmwithreset" -D"NUMST=3" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=1" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -I"C:/ti/ccsv5/tools/compiler/c6000_7.4.8/include" -I"C:/ti/OMAPL138_CSL/include" -fr"./derived/" ./HostLib_Audio.c ./HostLib_MMFile.c ./HostLib_Multimedia.c ./HostLib_rtw.c ./c6748evm_aic31.c ./c6748evm_i2c.c ./MW_c6xxx_csl.c ./c6748evmwithreset.c ./c6748evmwithreset_data.c ./c6748evmwithreset_main.c [HostLib_Audio.c] "C:/Program Files/MATLAB/R2014b/toolbox/shared/dspblks/extern/include/HostLib_rtw.h", line 15: fatal error: could not open source file "dlfcn.h" 1 fatal error detected in the compilation of "./HostLib_Audio.c". Compilation terminated. >> Compilation failure gmake: * [derived/HostLib_Audio.obj] Error 1
Component: Simulink | Category: Block error
;----------------------------------------------------------------------------------------------------------------
Before I ran the model, I was already went through the checkEnvSetup and xmakefilesetup just similar like the video * Simulink code generation from MATLAB for TI C2000 processors- Hello World using CCS v4/v5 * on youtube. Only a few parameters would be changed because of the OMAP-L138 processor and its different location.
;-----------------------------------------------------------------------------------------------------------------------------
Here it ist at Matlab Command Window:
>> checkEnvSetup('ccsv5', 'omapl138evm')
1. Checking CCSv5 (Code Composer Studio) version Required version: 5.0 or later Required for : Code Generation Your Version : 5.5.0 ### Setting environment variable "TI_DIR" to "C:\ti\ccsv5"
2. Checking C6000 CSL (TMS320C6000 Chip Support Library) version Required version: 2.31.00.10 or later Required for : Code generation Your Version : 2.31.00.15 ### Setting environment variable "CSL_C6000_INSTALLDIR" to "C:\ti\C6xCSL" ### Setting environment variable "CSL_C6000_INSTALLDIR" to "C:\ti\C6xCSL"
3. Checking XDC Tools (eXpress DSP Components) version Required version: 3.16.02.32 or later Required for : Code generation Your Version : 3.24.03.33
4. Checking CGT (Code Generation Tools) version Required version: 6.1.18 to 7.3.1 Required for : Code generation Your Version : 6.1.23 ### Setting environment variable "C6000_CGT_INSTALLDIR" to "C:\ti\CGT_6_1_23" ### Setting environment variable "C6000_CGT_INSTALLDIR" to "C:\ti\CGT_6_1_23"
5. Checking DSP/BIOS (Real Time Operating System) version Required version: 5.33.05 to 5.41.11.38 Required for : Code generation Your Version : 5.42.01.09 ### Setting environment variable "CCSV5_DSPBIOS_INSTALLDIR" to "C:\ti\bios_5_42_01_09" ### Setting environment variable "CCSV5_DSPBIOS_INSTALLDIR" to "C:\ti\bios_5_42_01_09" The version found for "DSP/BIOS" differs from the one used for our software validation. Use it at your own risk.
6. Checking Texas Instruments IMGLIB (C64x+ Image Library) version Required version: 2.0.1 or later Required for : CRL block replacement Your Version : 2.1.0.0 ### Setting environment variable "C64XP_IMGLIB_INSTALLDIR" to "C:\ti\c64plus-imglib_2_02_00_00"
7. Checking NDK (NDK 2.00) version Required version: 2.00.00 or later Required for : External mode and Ethernet blocks Your Version : NOT FOUND The required version of NDK is not found in C:\ti\ndk_2_20_00_19 Following environment variable(s) required for code generation could not be set: ### "NDK_EVMC6748_INSTALLDIR"
8. Checking C674x DSP/BIOS PSP Drivers (BIOS PSP Release version 01.30.00.05) version Required version: 1.30.00.05 Required for : Code generation / device drivers Your Version : 1.30.01 ### Setting environment variable "PSP_EVMC6748_INSTALLDIR" to "C:\ti\pspdrivers_01_30_01" The version found for "C674x DSP/BIOS PSP Drivers" differs from the one used for our software validation. Use it at your own risk.
9. Checking EDMA3 Low Level Driver (EDMA3 LLD 01.10) version Required version: 1.10.00 or later Required for : Device drivers Your Version : 01.11.03 ### Setting environment variable "EDMA3LLD_BIOS5_INSTALLDIR" to "C:\ti\edma3_lld_01_11_03_01"
10. Checking OMAP-L138/C6747EVM BSL (OMAP-L138 / TMS320C6748 / AM1808 SOM-M1 Gel, CCS Setup, & BSL Files (CCS v4.2.4)) version Required version: 2.0.0 or later Required for : Device drivers Your Version : 2.3.2 ### Setting environment variable "BSL_EVMC6748_INSTALLDIR" to "C:\ti\CCSv4-2-4_with_SOM-M1_BSL_WS"
;------------------------------------------------------------------------------------------------------
Here it is for the * XMakefile User Configuration * at Matlab Command Window :
Template: gmake Configuration: ticcs_c6000_ccsv5_clone User Templates: C:\Users\bisp\Documents\MATLAB\CodeGeneration02\ User Configurations: C:\Users\bisp\Documents\MATLAB\CodeGeneration02\
Under Make Utility: Make utility: C:\Program Files\MATLAB\R2014b\bin\win64\gmake Arguments:-f "[|||MW_XMK_GENERATED_FILE_NAME[R]|||]" [|||MW_XMK_ACTIVE_BUILD_ACTION_REF|||]
Under Compiler: Compiler: C:/ti/ccsv5/tools/compiler/c6000_7.4.8/bin/cl6x Arguments: -I"C:/ti/ccsv5/tools/compiler/c6000_7.4.8/include" -I"C:/ti/OMAPL138_CSL/include" -fr"[|||MW_XMK_DERIVED_PATH_REF|||]"
Under Linker: Linker: C:/ti/ccsv5/tools/compiler/c6000_7.4.8/bin/cl6x Arguments:-o [|||MW_XMK_GENERATED_TARGET_REF|||] -I"C:/ti/bios_5_42_01_09/packages/ti/pmi/lib/pmi.a674" -I"C:/ti/bios_5_42_01_09/packages/ti/pmi/lib/pmi_ctl_null.a674" -I"C:/ti/bios_5_42_01_09/packages/ti/bios/lib/pwrm.a674" -I"C:/ti/bios_5_42_01_09/packages/ti/pscl/lib/pscl.a674" -I"C:/ti/bios_5_42_01_09/packages/ti/pscl/lib/pscl_cfg_null.a674"
Under Archiver: Archiver: C:/ti/ccsv5/tools/compiler/c6000_7.4.8/bin/ar6x Arguments: -r [|||MW_XMK_GENERATED_TARGET_REF|||]
;------------------------------------------------------------------------------------------------------------
Here it is for the Simulink * Model Configuration Parameters * : Target selection System target file: idelink_ert.tlc, Language: C.
Coder Target Tool Chain Automation Bild format: Makefile, Bild action: Bild_and_execute, Overrun notification: None.
Target Hardware Resources IDE/Tool Chain: Texas Instruments CCS v5(makefile generation only).
Board: OMAP-L138/C6748 EVM, Processor: OMAP-L138, CPU Clock: 300 MHz.
;------------------------------------------------------------------------------------------------
Please help me solve the problem.
Thank you very much!
Liang

답변 (0개)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by