MATLAB Answers

TI C2000 LAUNCHXL-F28027F with Simulink error

7 views (last 30 days)
fuxin zhou
fuxin zhou on 18 Aug 2017
I am trying to run the example 'Motor Control with TI LaunchPad' on TI F28027 LaunchPad (with a BIsolated XDS100 J-TAG Emulator)using Matlab2017a and CCSV5 I think I've setup the environment correctly
1. CCSv5 (Code Composer Studio)
Your version : 5.5.0
Required version: 5.0 or later
Required for : Code Generation
TI_DIR="C:\ti\ccsv5"
2. CGT (Texas Instruments C2000 Code Generation Tools)
Your version : 6.2.0
Required version: 5.2.1 to 6.0.2
Required for : Code generation
C2000_CGT_INSTALLDIR="C:\ti\ccsv5\tools\compiler\c2000_6.2.0"
3. DSP/BIOS (Real Time Operating System)
Your version : 5.42.01.09
Required version: 5.33.05 to 5.41.11.38
Required for : Code generation
CCSV5_DSPBIOS_INSTALLDIR="C:\ti\bios_5_42_01_09"
4. XDC Tools (eXpress DSP Components)
Your version : 3.24.05.48
Required version: 3.16.02.32 or later
Required for : Code generation
5. 2802x C/C++ Header Files
Your version : 2.20
Required version: 2.20
Required for : Code generation
DSP2802x_INSTALLDIR=""
6. Flash Tools (TMS320F2802x Piccolo(TM) Flash API)
Your version : 2.01
Required version: 2.01
Required for : Flash Programming
FLASH_2802X_API_INSTALLDIR="C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201"
end
but I am facing the following error:
### Starting build procedure for model: c28027pmsmfoc_test
Code Generation 3
Elapsed: 27 sec
### Generating code into build folder: C:\Windows\System32\c28027pmsmfoc_test_ert_rtw
### Invoking Target Language Compiler on c28027pmsmfoc_test.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.
.
### Generating TLC interface API for custom data
### Initial pass through model to cache user defined code
### Caching model source code
### Writing source file c28027pmsmfoc_test.c
### Writing header file c28027pmsmfoc_test_private.h
### Writing header file c28027pmsmfoc_test.h
### Writing header file DSP28xx_SciUtil.h
.
### Writing source file DSP28xx_SciUtil.c
### Writing header file c28027pmsmfoc_test_types.h
### Writing header file rtwtypes.h
### Writing source file c28027pmsmfoc_test_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.784 sec
### Creating CCS Project at : C:\Windows\System32\c28027pmsmfoc_test_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)
### 'C:\Windows\System32\c28027pmsmfoc_test_ert_rtw\c28027pmsmfoc_test.mk' is up to date
### Building 'c28027pmsmfoc_test': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f c28027pmsmfoc_test.mk all
C:\Windows\System32\c28027pmsmfoc_test_ert_rtw>cd .
C:\Windows\System32\c28027pmsmfoc_test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f c28027pmsmfoc_test.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -B -f c28027pmsmfoc_test.mk )
*# # # # *gmake: c28027pmsmfoc_test.mk: No such file or directory**
gmake: *** No rule to make target `c28027pmsmfoc_test.mk'. Stop.
C:\Windows\System32\c28027pmsmfoc_test_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Windows\System32\c28027pmsmfoc_test_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 c28027pmsmfoc_test_codegen_rpt.html
### Build procedure for model: 'c28027pmsmfoc_test' aborted due to an error.
Error(s) encountered while building "c28027pmsmfoc_test":
### Failed to generate all binary outputs.
end
Please, if anyone can help

  0 Comments

Sign in to comment.

Answers (1)

Sharan Paramasivam Murugesan
I suspect this could be due to build folder being inside "C:\Windows\System32". Try moving the build folder to any other folder, say, C:\myproject. Refer to this blog for information about controlling the location of build folders

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by