MATLAB Answers

0

F28379D launch pad_Compilation failure

Asked by Narendra Babu Y on 7 Sep 2019
I am trying to interface the launchpad with MATLAB. I have these versions of required softwares: CCS V5.2.1, Control Suite V3.4.9, Code generation tools 6.2.0.
I am trying to blink on-board LEDs, but end up with following errors
### Starting build procedure for model: L_onoff
Code Generation 3
Elapsed: 10 sec
### Generating code into build folder: C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw
### Invoking Target Language Compiler on L_onoff.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
....
Warning: The data type "int8" uses a word size that is not available on the intended target.
Fixed-point signals using this data type will be put inside a larger word or multi words. When used,
extra software will be generated to force this larger word or multi words to emulate a smaller
word. This emulation is helpful when your prototype target and your final
production target are not the same. If the smaller word size does NOT exist
on the final production target, then consider increasing the word size to
one that is supported.
Warning: The data type "uint8" uses a word size that is not available on the intended target.
.
Warning: The data type "boolean" uses a word size that is not available on the intended target.
.
### Initial pass through model to cache user defined code
.
### Caching model source code
.............................
### Writing header file L_onoff.h
### Writing header file L_onoff_types.h
.
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file L_onoff.c
### Writing header file L_onoff_private.h
### Writing source file L_onoff_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
....
### Creating data type transition file L_onoff_dt.h
### Evaluating PostCodeGenCommand specified in the model
Code Composer Studio Project 1
Elapsed: 0.423 sec
### Creating CCS Project at : C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw\CCS_Project
### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows)
### Creating 'C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw\L_onoff.mk' ...
### Building 'L_onoff': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f L_onoff.mk all
C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw>cd .
C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f L_onoff.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f L_onoff.mk )
C:/ti/ccsv5/tools/compiler/C2000_~1.0/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv5/tools/compiler/C2000_~1.0/include" --define="EXTMODE_DISABLEPRINTF" -v28 --float_support=fpu32 -ml -DCPU1 -DMODEL=L_onoff -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -DSTACK_SIZE=512 -DRT -DMODEL=L_onoff -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Matlabtexas/TI_Launchpad/LEDtoggle -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Matlabtexas/TI_Launchpad/LEDtoggle/L_onoff_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2017a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/R2017a/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/tic2000/src -IC:/ti/CONTRO~1/DEVICE~1/F2837xD/v190/F2837X~1/include/F2837xD_common/include -IC:/ti/CONTRO~1/DEVICE~1/F2837xD/v190/F2837X~1/include/F2837xD_headers/include -IC:/ti/CONTRO~1/DEVICE~1/F2837xD/v190/F2837X~1/include/F2837xD_common -IC:/PROGRA~1/MATLAB/R2017a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c28xx_board.obj MW_c28xx_board.c
"MW_c28xx_board.c", line 1: fatal error: cannot open source file "F2837xD_device.h"
1 catastrophic error detected in the compilation of "MW_c28xx_board.c".
Compilation terminated.
>> Compilation failure
gmake: *** [MW_c28xx_board.obj] Error 1
C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Matlabtexas\TI_Launchpad\LEDtoggle\L_onoff_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file L_onoff_codegen_rpt.html
### Build procedure for model: 'L_onoff' aborted due to an error.
Error(s) encountered while building "L_onoff":

Failed to generate all binary outputs.

Pls help us in resolving this issue

  0 Comments

Sign in to comment.

0 Answers