Effacer les filtres
Effacer les filtres

Building program from simulink to TI problem

9 vues (au cours des 30 derniers jours)
C M F S REZA
C M F S REZA le 21 Mar 2017
When I tried to build program from simulink then I got the following problem
### Generating code into build folder: C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_ert_rtw The file containing block diagram 's' is shadowed by a file of the same name higher on the MATLAB path. This can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink documentation.
The file containing the block diagram is: C:\Users\Susan\Desktop\s.slx. The file higher on the MATLAB path is: C:\Users\Susan\Documents\MATLAB\s.m [2 similar] Component:Simulink | Category:Block diagramwarning ### Invoking Target Language Compiler on s.rtw ### Using System Target File: C:\Program Files\MATLAB\R2016b\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 s.h ### Writing header file s_types.h ### Writing header file rtwtypes.h ### Writing source file s.c ### Writing header file s_private.h . ### Writing source file s_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Creating project marker file: rtw_proj.tmw ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Texas Instruments C2000 Code Generation Tools v6.0.0 | gmake (64-bit Windows) ### Creating 'C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_ert_rtw\s.mk' ... ### Building 's': C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f s.mk all C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_ert_rtw>cd . C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f s.mk all ) else (C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f s.mk ) C:/ti/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/include" -O2 -v28 -ml -DMODEL=s -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=4 -DRT -DSTACK_SIZE=512 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=4 -DRT -DSTACK_SIZE=512 -DMODEL=s -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Susan/Documents/MATLAB/toolchain_demo/s_ert_rtw -IC:/Users/Susan/Documents/MATLAB/toolchain_demo -IC:/Users/Susan/Desktop -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/inc -IC:/ti/controlSUITE/device_support/f2803x/v130/DSP2803x_common/include -IC:/ti/controlSUITE/device_support/f2803x/v130/DSP2803x_headers/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/blocks/lct/include -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c" The system cannot find the path specified. gmake: * [MW_c28xx_board.obj] Error 1 C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Susan\Documents\MATLAB\toolchain_demo\s_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 s_codegen_rpt.html ### Build procedure for model: 's' aborted due to an error. Error(s) encountered while building "s": ### Failed to generate all binary outputs.
How to solve this issue?

Réponses (1)

Sachin Kumar
Sachin Kumar le 28 Mar 2017
There are two files with same name 's'. MATLAB chooses s.m instead of s.slx since s.m is in higher PATH. C:\Users\Susan\Desktop\s.slx C:\Users\Susan\Documents\MATLAB\s.m
You can delete 's.m' from the path if file is not required or you can rename it.

Catégories

En savoir plus sur Target Language Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by