errors of HDL Coder geneation in tutorial
이전 댓글 표시
I tried the matlab tutorial about HDL Code generation from matlab code. I used mlhdlc_sfir.m and mlhdlc_sfir_tb.m in the tutorial, and followed the instructions to set up a HDL Coder project. However, in the HDL Coder Advisor, when I runned the first step "Verify Floating-point Design", errors happened, it said "Error using buildInstrumentedMex". I checked the target build log as follows:
1 lcc -c -I"D:\MATLAB\R2012a\sys\lcc\include" -DMATLAB_MEX_FILE -noregistrylookup -DMX_COMPAT_32 -DNDEBUG -I"D:\MATLAB\R2012a\extern\include" -I"D:\MATLAB\R2012a\simulink\include" -I"D:\MATLAB\R2012a\toolbox\shared\simtargets" -I"C:\Users\yinfei.fu\AppData\Local\Temp\tpb9350088_cc4d_44f8_969c_896d67b87015" "mlhdlc_sfir_tb_loop.c"
2 lcc -c -I"D:\MATLAB\R2012a\sys\lcc\include" -DMATLAB_MEX_FILE -noregistrylookup -DMX_COMPAT_32 -DNDEBUG -I"D:\MATLAB\R2012a\extern\include" -I"D:\MATLAB\R2012a\simulink\include" -I"D:\MATLAB\R2012a\toolbox\shared\simtargets" -I"C:\Users\yinfei.fu\AppData\Local\Temp\tpb9350088_cc4d_44f8_969c_896d67b87015" "mlhdlc_sfir_tb_loop_mex.c"
3 lcc -Fomlhdlc_sfir_tb_loop_lccstub.obj -c -I"D:\MATLAB\R2012a\sys\lcc\include" -DMATLAB_MEX_FILE -noregistrylookup -DMX_COMPAT_32 -DNDEBUG -I"D:\MATLAB\R2012a\extern\include" -I"D:\MATLAB\R2012a\simulink\include" -I"D:\MATLAB\R2012a\toolbox\shared\simtargets" -I"C:\Users\yinfei.fu\AppData\Local\Temp\tpb9350088_cc4d_44f8_969c_896d67b87015" "D:\MATLAB\R2012a\sys\lcc\mex\lccstub.c"
4 lcclnk -tmpdir ".\." -dll -L"D:\MATLAB\R2012a\sys\lcc\lib" -libpath "D:\MATLAB\R2012a\extern\lib\win32\lcc" "mlhdlc_sfir_tb_loop_lccstub.obj" -s -o mlhdlc_sfir_tb_loop.mexw32 mlhdlc_sfir_tb_loop.obj mlhdlc_sfir_tb_loop_mex.obj libmx.lib libmex.lib libmat.lib libemlrt.lib libut.lib libmwblascompat32.lib libmwmathutil.lib mlhdlc_sfir_tb_loop_mex.def
5 Writing library for mlhdlc_sfir_tb_loop.mexw32
6 'cmd' 不是内部或外部命令,也不是可运行的程序
7 或批处理文件。
8 gmake: *** [mlhdlc_sfir_tb_loop.mexw32] Error 1
who can tell me how to fix it? Thanks!
댓글 수: 1
Walter Roberson
2013년 1월 23일
"Is not recognized as an internal or external command, operable program or batch file"
답변 (2개)
Walter Roberson
2013년 1월 23일
0 개 추천
What I would try is switching to a different compiler. lcc is old and buggy.
Kaustubha Govind
2013년 1월 24일
0 개 추천
The "cmd.exe is not recognized as an internal or external command, operable program or batch file" error usually means that you don't have C:\Windows\system32 (which is where cmd.exe resides) on your system PATH environment variable. Try fixing that, restart MATLAB and try again.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!