This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: c2000 from matlab/simulink



Tool/software: Code Composer Studio

can you help me for a problem.how can i solve the problem about the generating error code from simulink mode?

i am looking forward to your reply.thank you very much.

the problem is as this:

### Generating code into build folder: C:\Users\Administrator\Desktop\shiyan\ex1_DSP2833x_cfdcz1_ePWM\ex1_DSP2833x_imz_ePWM_ert_rtw

### Invoking Target Language Compiler on ex1_DSP2833x_imz_ePWM.rtw
### Using System Target File: D:\matlab2019a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
Error: File: C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc Line: 61 Column: 68
The specified index (4) was out of the range 0 - 1
Main program:
==> [00] C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc:<NONE>(61)
[01] D:\matlab2019a\rtw\c\tlc\mw\formatwide.tlc:<NONE>(508)
Error: File: C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc Line: 61 Column: 67
Cannot convert string "A" to a number
Main program:
==> [00] C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc:<NONE>(61)
[01] D:\matlab2019a\rtw\c\tlc\mw\formatwide.tlc:<NONE>(508)
Error: File: C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc Line: 61 Column: 67
Bad cast - unable to cast this expression to "Number"
Main program:
==> [00] C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc:<NONE>(61)
[01] D:\matlab2019a\rtw\c\tlc\mw\formatwide.tlc:<NONE>(508)
Error: File: C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc Line: 63 Column: 24
Unable to find enHRPWM within the PWM scope
Main program:
==> [00] C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc:<NONE>(63)
[01] D:\matlab2019a\rtw\c\tlc\mw\formatwide.tlc:<NONE>(508)
### Build procedure for model: 'ex1_DSP2833x_imz_ePWM' aborted due to an error.
Error: File: C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\tlc_c\ti_c280x_csl.tlc Line: 63 Column: 35
The == and != operators can only be used to compare values of the same type
Component:Simulink | Category:Block diagram error