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 Kommentar

Walter Roberson
Walter Roberson am 23 Jan. 2013
"Is not recognized as an internal or external command, operable program or batch file"

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Walter Roberson
Walter Roberson am 23 Jan. 2013

0 Stimmen

What I would try is switching to a different compiler. lcc is old and buggy.
Kaustubha Govind
Kaustubha Govind am 24 Jan. 2013

0 Stimmen

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.

Kategorien

Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 23 Jan. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by