I have some errors with the code generation

10 visualizaciones (últimos 30 días)
Vincent Delaneau
Vincent Delaneau el 25 de Abr. de 2017
Respondida: Sumith Sekharan el 26 de Abr. de 2017
Hello, I would like to generate the code of the example "c28x_serial_ext" with Simulink but i have some errors :
### Generating code into build folder: C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw
All blocks in block diagram 'c28x_serial_ext' are either virtual or have been removed by block reduction optimization. This means that this diagram is effectively empty. Note that for code generation, block reduction optimization removes all diagram branches terminating in sink blocks that do not participate in code generation, for example, Display blocks when the MAT-file logging option on the Code Generation > Interface pane is not selected for the model
Component: Simulink | Category: Block diagram warning
### Invoking Target Language Compiler on c28x_serial_ext.rtw
### Using System Target File: C:\Program Files (x86)\MATLAB\R2015b\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 c28x_serial_ext_types.h
.
### Writing header file c28x_serial_ext.h
### Writing header file rtwtypes.h
### Writing source file c28x_serial_ext.c
### Writing header file c28x_serial_ext_private.h
### Writing header file rtmodel.h
.
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Texas Instruments C2000 Code Generation Tools v6.0.0 | gmake (32-bit Windows)
### Creating 'C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw\c28x_serial_ext.mk' ...
### Building 'c28x_serial_ext': C:\PROGRA~2\MATLAB\R2015b\bin\win32\gmake -B -f c28x_serial_ext.mk all
C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw>cd .
C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw>if "" == "" (C:\PROGRA~2\MATLAB\R2015b\bin\win32\gmake -B -f c28x_serial_ext.mk all ) else (C:\PROGRA~2\MATLAB\R2015b\bin\win32\gmake -B -f c28x_serial_ext.mk )
C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/include" -v28 -ml -DMODEL=c28x_serial_ext -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__ -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 -DRT -DSTACK_SIZE=512 -DMODEL=c28x_serial_ext -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Vince/Desktop/c28x_serial_ext_ert_rtw -IC:/Users/Vince/Desktop -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/tic2000examples -IC:/PROGRA~2/MATLAB/R2015b/extern/include -IC:/PROGRA~2/MATLAB/R2015b/simulink/include -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -I/f2802x_common/include -I/f2802x_headers/include -I --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c"
C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/include" -v28 -ml -DMODEL=c28x_serial_ext -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__ -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 -DRT -DSTACK_SIZE=512 -DMODEL=c28x_serial_ext -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Vince/Desktop/c28x_serial_ext_ert_rtw -IC:/Users/Vince/Desktop -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/tic2000examples -IC:/PROGRA~2/MATLAB/R2015b/extern/include -IC:/PROGRA~2/MATLAB/R2015b/simulink/include -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -I/f2802x_common/include -I/f2802x_headers/include -I --output_file="MW_c28xx_csl.obj" "MW_c28xx_csl.c"
C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/include" -v28 -ml -DMODEL=c28x_serial_ext -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__ -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 -DRT -DSTACK_SIZE=512 -DMODEL=c28x_serial_ext -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Vince/Desktop/c28x_serial_ext_ert_rtw -IC:/Users/Vince/Desktop -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/tic2000examples -IC:/PROGRA~2/MATLAB/R2015b/extern/include -IC:/PROGRA~2/MATLAB/R2015b/simulink/include -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -I/f2802x_common/include -I/f2802x_headers/include -I --output_file="c28x_serial_ext.obj" "c28x_serial_ext.c"
C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv6/tools/compiler/TI-CGT~1.6/include" -v28 -ml -DMODEL=c28x_serial_ext -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__ -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 -DRT -DSTACK_SIZE=512 -DMODEL=c28x_serial_ext -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Vince/Desktop/c28x_serial_ext_ert_rtw -IC:/Users/Vince/Desktop -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/tic2000examples -IC:/PROGRA~2/MATLAB/R2015b/extern/include -IC:/PROGRA~2/MATLAB/R2015b/simulink/include -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~2/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -I/f2802x_common/include -I/f2802x_headers/include -I --output_file="c2802xBoard_Realtime_Support.obj" "C:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src/c2802xBoard_Realtime_Support.c"
gmake: *** No rule to make target `/f2802x_common/source/f2802x_cputimers.c', needed by `f2802x_cputimers.obj'. Stop.
C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Vince\Desktop\c28x_serial_ext_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
### Build procedure for model: 'c28x_serial_ext' aborted due to an error.
Error(s) encountered while building "c28x_serial_ext":
### Failed to generate all binary outputs.
I don't understand what i have to do and i like to have some help.
Thanks in advance and sorry for my bad english.
Regards,
Vincent.

Respuestas (1)

Sumith Sekharan
Sumith Sekharan el 26 de Abr. de 2017
Hi Vincent,
In releases R2015b and older you have to run checkEnvSetup command to configure the environment properly. Looks like TI Header and source files folder path is not configured properly in your case. Run the command checkEnvSetup('ccsv5', 'F28027', 'setup') and select the F2802x path from controlSUITE properly while prompted. This command will not work for CCSV6. But you can run it with argument as ccv5 and select ccv6 paths while prompted.
Hope this helps.
Thanks,
Sumith

Community Treasure Hunt

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

Start Hunting!

Translated by