Hi
I got an error message when using cl2000.exe in CCS v11.2 as below to compile a .c file,
cd "C:\PSIM\Beta\PSIM_2022.1_Softkey\examples\Code Generation\F28004x Target\VSI3 with RL load\VSI3 with RL Load (closed loop) (C Code)"
C:\ti\ccs1120\ccs\tools\compiler\ti-cgt-c2000_21.6.0.LTS\bin\cl2000.exe -pdsw=225 -q -o3 --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -fr=FlashRelease -fs=FlashRelease -d=LARGE_MODEL -ml -v28 VSI3_with_RL_Load__closed_loop_.c -z -q -c -e=code_start -heap=0 -stack=0x30A -w -x -l=f28004x_headers_nonbios.cmd -l=F280049_FLASH_lnk.cmd -l=rts2800_fpu32.lib -l="PsBiosRomF004xFloat.lib" -o=VSI3_with_RL_Load__closed_loop_.out
The error message is as below:
"VSI3_with_RL_Load__closed_loop_.c", line 8: fatal error: could not open source file "math.h" (no directories in search list)
1 catastrophic error detected in the compilation of "VSI3_with_RL_Load__closed_loop_.c".
Compilation terminated.
The path of math.h file in my computer is C:\ti\ccs1120\ccs\tools\compiler\ti-cgt-c2000_21.6.0.LTS\include, do I have any way to avoid this error?
By the way the same command can compile .c file in CCS v9.2 without any error.
The project is attached for you review.
Thanks,
JiakaiVSI3 with RL Load (closed loop) (C code).zip