Error in Code build for C2000 Piccolo F28027
7 views (last 30 days)
Show older comments
Sanjeev Gupta
on 13 Jan 2020
Answered: Venkatesh Chilapur
on 13 Jan 2020
I have F28027 Piccolo board. I have installed Embedded Coder Support Package, Control Suite, and CCSv6. Also in Matlab 2017b, simulink model configuration in hardware implementation section I have selected board. But when I build model (Ctrl+B) I get the following error:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Build
5 102:11 PM Elapsed: 11 sec
### Starting build procedure for model: Blink ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
3
Elapsed: 9 sec
### Generating code into build folder: C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw ### Invoking Target Language Compiler on Blink.rtw ### Using System Target File: C:\Program Files\MATLAB\R2017b\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code . ### Caching model source code ### Writing header file Blink_types.h ### Writing header file Blink.h ### Writing header file rtwtypes.h ### Writing source file Blink.c . ### Writing header file Blink_private.h ### Writing source file Blink_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model
Code Composer Studio Project
1
Elapsed: 0.509 sec
### Creating CCS Project at : C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw\CCS_Project ### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments C2000 Code Generation Tools v16.9.2 | gmake (64-bit Windows) ### Creating 'C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw\Blink.mk' ... ### Building 'Blink': "C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -B -f Blink.mk all C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw>cd . C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -B -f Blink.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -B -f Blink.mk ) C:/PROGRA~3/MATLAB/SupportPackages/R2017b/3P.instrset/tic2000codegentools.instrset/ti-cgt-c2000_16.9.2.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/PROGRA~3/MATLAB/SupportPackages/R2017b/3P.instrset/tic2000codegentools.instrset/ti-cgt-c2000_16.9.2.LTS/include" -v28 -ml -DMODEL=Blink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=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 -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=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 -DSTACK_SIZE=512 -DRT -DMODEL=Blink -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Sanjeev Gupta/DOCUME~1/MATLAB/project -IC:/Users/Sanjeev Gupta/DOCUME~1/MATLAB/project/Blink_ert_rtw -IC:/PROGRA~1/MATLAB/R2017b/extern/include -IC:/PROGRA~1/MATLAB/R2017b/simulink/include -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/inc -IC:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include -IC:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include -IC:/ti/controlSUITE/device_support/f2802x/v230 -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c28xx_board.obj MW_c28xx_board.c [project.] >> WARNING: more than one source file is specified; option --output_file is ignored Fatal error: cannot open source file "Gupta/DOCUME~1/MATLAB/project" 1 catastrophic error detected in the compilation of "Gupta/DOCUME~1/MATLAB/project". Compilation terminated. >> Compilation failure gmake: *** [MW_c28xx_board.obj] Error 1 C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Sanjeev Gupta\Documents\MATLAB\project\Blink_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 Blink_codegen_rpt.html
### Build procedure for model: 'Blink' aborted due to an error.
Error(s) encountered while building "Blink": ### Failed to generate all binary outputs.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also can you provide all the nessesary steps that include :
- [CheckEnvSetupCheckEnvSetup] how to set directory (and whether to add user variable or system variable) from System Advanced Settings -> Environment Variables->
- what are the specific settings required in xmakefilesetup
- and how do I check connectivity of matlab and controller (F28027)
I tried the program of using a pulse generator and digital output for blinking on board LED.
I have Matlab2017b, CCSv6, C2000 ware
Any help is appreciated......
Thank you
0 Comments
Accepted Answer
Venkatesh Chilapur
on 13 Jan 2020
Hi,
There must a space in 'Sanjeev Gupta' which is part of codegen folder.
Ensure you have no space in the path.
Regards,
Venkatesh C
0 Comments
More Answers (2)
Walter Roberson
on 13 Jan 2020
You need to move the files into a path in which there is no space in any of the directory names. The space in your username is confusing the software.
0 Comments
Yusuf Selim KARATAS
on 13 Jan 2020
I dont know the source of the problem. But I have learned that sometimes you need to change clock frequency on these boards. Keep that in your mind.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!