### Invoking Target Language Compiler on Red1_Tets1.rtw
### Using System Target File: C:\Program Files\MATLAB\R2014b\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 Red1_Tets1.h
### Writing header file Red1_Tets1_types.h
### Writing header file rtwtypes.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing source file Red1_Tets1.c
### Writing header file Red1_Tets1_private.h
### Writing source file Red1_Tets1_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Writing source file arm_cortex_m_multitasking.c
### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (64-bit Windows)
### Creating 'C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw\Red1_Tets1.mk' ...
### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (64-bit Windows)
### Creating 'C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw\Red1_Tets1.mk' ...
### Building 'Red1_Tets1': C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Red1_Tets1.mk all
C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw>cd .
C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Red1_Tets1.mk all ) else (C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Red1_Tets1.mk )
arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m0plus -mthumb -fno-exceptions -fno-common -fmessage-length=0 -DMODEL=Red1_Tets1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DTARGET_KL25Z -DTARGET_M0P -DTARGET_Freescale -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DTARGET_KL25Z -DTARGET_M0P -DTARGET_Freescale -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -DRT -DSTACK_SIZE=64 -DMODEL=Red1_Tets1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Mokhsein/Documents/MATLAB/Red1_Tets1_ert_rtw/Red1_Tets1_ert_rtw -IC:/Users/Mokhsein/Documents/MATLAB/Red1_Tets1_ert_rtw -IC:/Users/Mokhsein/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2014b/extern/include -IC:/PROGRA~1/MATLAB/R2014b/simulink/include -IC:/PROGRA~1/MATLAB/R2014b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014b/mbed-8e73be2a2ac1 -IC:/MATLAB/SupportPackages/R2014b/mbed-8e73be2a2ac1/TARGET_KL25Z -IC:/Matlab/SupportPackages/R2014b/freedomboard/toolbox/target/supportpackages/freedomboard/@slCustomizer/../include -IC:/PROGRA~1/MATLAB/R2014b/rtw/c/src/ext_mode/serial -IC:/Matlab/SupportPackages/R2014b/armcortexm/toolbox/target/supportpackages/arm_cortex_m/scheduler/include -o "Red1_Tets1.o" "../Red1_Tets1.c"
In file included from ../MKL25Z4.h:121:0,
from ../MW_target_hardware_resources.h:6,
from ../Red1_Tets1.h:27,
from ../Red1_Tets1.c:16:
../core_cm0plus.h:154:95: fatal error: core_cmInstr.h: No such file or directory
compilation terminated.
gmake: *** [Red1_Tets1.o] Error 1
C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Mokhsein\Documents\MATLAB\Red1_Tets1_ert_rtw\Red1_Tets1_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
Im having this problem when loading simulink(2014b) model blocks for lighting up Red Led on KL25Z. Hoping that anyone can help me to solve this.