MATLAB Answers

0

Dear friends I have a problem with program running on zynq board

Asked by Deepesh B on 19 Oct 2014
Latest activity Answered by Deepesh B on 2 Dec 2014
### Generating code into build folder: C:\Users\Deepesh\Desktop\test_zynq\test_2\gm_test_2_zynq_interface_ert_rtw
### Invoking Target Language Compiler on gm_test_2_zynq_interface.rtw
### Using System Target File: C:\Program Files\MATLAB\R2014a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file gm_test_2_zynq_interface.h
### Writing header file gm_test_2_zynq_interface_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file gm_test_2_zynq_interface.c
### Writing header file gm_test_2_zynq_interface_private.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
### Creating data type transition file gm_test_2_zynq_interface_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Xilinx ISE Design Suite v14.4 | gmake (64-bit Windows)
### 'C:\Users\Deepesh\Desktop\test_zynq\test_2\gm_test_2_zynq_interface_ert_rtw\gm_test_2_zynq_interface.mk' is up to date
### Building 'gm_test_2_zynq_interface': C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f gm_test_2_zynq_interface.mk all
C:/Xilinx/14.6/ISE_DS/EDK/gnu/arm/nt/bin/arm-xilinx-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon -DMODEL=gm_test_2_zynq_interface -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=0 -DMODEL=gm_test_2_zynq_interface -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Deepesh/Desktop/test_zynq/test_2/gm_test_2_zynq_interface_ert_rtw -IC:/Users/Deepesh/Desktop/test_zynq/test_2 -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/toolbox/coder/rtiostream/src/utils -IC:/MATLAB/SupportPackages/R2014a/zynq/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/codertarget/rtos/inc -o "gm_test_2_zynq_interface.o" "gm_test_2_zynq_interface.c"
/usr/bin/sh: -c: line 3: syntax error: unexpected end of file
gmake: *** [gm_test_2_zynq_interface.o] Error 258
[Warning: The following error was caught while executing 'onCleanup' class destructor: Invalid or deleted object.] ### Build procedure for model: 'gm_test_2_zynq_interface' aborted due to an error.
Error(s) encountered while building model "gm_test_2_zynq_interface":
### Failed to generate all binary outputs.

  0 Comments

Sign in to comment.

1 Answer

Answer by Deepesh B on 2 Dec 2014
 Accepted Answer

Hi Dear Friends,
I have cleared the issue with zynq board.
1. The main problem was the system environment variable set to more that one compiler. You should make sure that your system variable must have set to only one compiler it should not specify any other path.If u have installed more that one version of xilinx remove unwanted version from path. And also u have to set two other paths that's given below
PATH = C:\Xilinx\14.4\ISE_DS\ISE\bin\nt;
XILINX_EDK = C:\Xilinx\14.4\ISE_DS\EDK;
XILINX = C:\Xilinx\14.4\ISE_DS\;
another thing is try to avoid any other ARM compiler like gcc arm or any other compiler from your PATH variable to avoid conflicts
2.Next is verify your Factory settings by running
xmakefilesetup
on command window and verify as shown below

  0 Comments

Sign in to comment.