Compilation error. Cannot open source file "F2806x_Device.h"
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
A compilation error occurred when I was building the model of the example "ADC-PWM Synchronization via ADC Interrupt" using Embedded Coder on the Piccolo F28069 ControlStick. The line "line 1: fatal error: cannot open source file "F2806x_Device.h"" could be the main reason for this error. How to solve this?
I am using Matlab2015b, Support Packages for Texas Instruments C2000 Processors, and Code Composer Studio version 5.5.
Thanks in advance, Hugo
Build 3 1 Clear
10:08 AM Elapsed: 26 sec
### Starting build procedure for model: c280xx_adcpwmasynctest_ert
Code Generation 1
Elapsed: 19 sec
### Generating code into build folder: C:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_ert_rtw
### Invoking Target Language Compiler on c280xx_adcpwmasynctest_ert.rtw
### Using System Target File: C:\Program Files\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 c280xx_adcpwmasynctest_ert.h
### Writing header file c280xx_adcpwmasynctest_ert_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file c280xx_adcpwmasynctest_ert.c
.
### Writing header file c280xx_adcpwmasynctest_ert_private.h
### Writing source file c280xx_adcpwmasynctest_ert_data.c
### 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 v5.2.12 | gmake (64-bit Windows)
### 'C:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_ert_rtw\c280xx_adcpwmasynctest_ert.mk' is up to date
### Building 'c280xx_adcpwmasynctest_ert': C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -B -f c280xx_adcpwmasynctest_ert.mk all
C:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_ert_rtw>cd .
C:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -B -f c280xx_adcpwmasynctest_ert.mk all ) else (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -B -f c280xx_adcpwmasynctest_ert.mk ) C:/TI/ccsv5/tools/compiler/C2000_~1.0/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/ccsv5/tools/compiler/C2000_~1.0/include" -v28 -ml --float_support=fpu32 -DMODEL=c280xx_adcpwmasynctest_ert -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=c280xx_adcpwmasynctest_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/HONGTING/Documents/MATLAB/c280xx_adcpwmasynctest_ert_ert_rtw -IC:/Users/HONGTING/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2015b/extern/include -IC:/PROGRA~1/MATLAB/R2015b/simulink/include -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/R2015b/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2015b/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2015b/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2015b/toolbox/shared/can/src/scanutil --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c" "MW_c28xx_board.c", line 1: fatal error: cannot open source file "F2806x_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:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\HONGTING\Documents\MATLAB\c280xx_adcpwmasynctest_ert_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. ### Build procedure for model: 'c280xx_adcpwmasynctest_ert' aborted due to an error. Error(s) encountered while building "c280xx_adcpwmasynctest_ert": ### Failed to generate all binary outputs. Component: Simulink | Category: Model error
0 commentaires
Réponses (1)
Brian McKay
le 8 Juil 2016
You may need to run checkEnvSetup('ccsv5', 'F2806x') to configure the paths.
-Brian
2 commentaires
Prince
le 13 Fév 2024
I am facing the same issue. How and where to run checkEnvSetup('ccsv5', 'F2806x')?
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!