errors of HDL Coder geneation in tutorial
Mostra commenti meno recenti
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 Commento
Walter Roberson
il 23 Gen 2013
"Is not recognized as an internal or external command, operable program or batch file"
Risposte (2)
Walter Roberson
il 23 Gen 2013
0 voti
What I would try is switching to a different compiler. lcc is old and buggy.
1 Commento
David Fu
il 18 Mar 2013
Kaustubha Govind
il 24 Gen 2013
0 voti
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.
Categorie
Scopri di più su AMD FPGA and SoC Devices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!