Hye Everyone. I'm a newbie in matlab. I'm using FRDM KL25Z Board to flash Blue on-board LED using Simulink(Matlab 2014b) and encounter this error. Can anyone help me with this ? Thank you.
3 次查看(过去 30 天)
显示 更早的评论
### Generating code into build folder: C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_ert_rtw ### Invoking Target Language Compiler on Lab1_Project1.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 Lab1_Project1.h ### Writing header file Lab1_Project1_types.h ### Writing header file rtwtypes.h ### Writing source file Lab1_Project1.c ### Writing header file Lab1_Project1_private.h ### Writing source file Lab1_Project1_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\Lab1_Project1_ert_rtw\Lab1_Project1.mk' ... ### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (64-bit Windows) ### Creating 'C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_ert_rtw\Lab1_Project1.mk' ... ### Building 'Lab1_Project1': C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Lab1_Project1.mk all C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_ert_rtw>cd .
C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Lab1_Project1.mk all ) else (C:\PROGRA~1\MATLAB\R2014b\bin\win64\gmake -f Lab1_Project1.mk ) arm-none-eabi-g++ -std=c++98 -fno-rtti -fno-exceptions -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m0plus -mthumb -fno-exceptions -fno-common -fmessage-length=0 -DMODEL=Lab1_Project1 -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=Lab1_Project1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/RHIT_KL25Z_Library_R2014b/include -IC:/Users/Mokhsein/Documents/MATLAB/Lab1_Project1_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 "RHIT_digitalPin_wrapper.o" "C:/MATLAB/RHIT_KL25Z_Library_R2014b/src/RHIT_digitalPin_wrapper.cpp" C:/MATLAB/RHIT_KL25Z_Library_R2014b/src/RHIT_digitalPin_wrapper.cpp:7:18: fatal error: mbed.h: No such file or directory compilation terminated. gmake: * [RHIT_digitalPin_wrapper.o] Error 1
C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\Mokhsein\Documents\MATLAB\Lab1_Project1_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.
[Warning: The following error was caught while executing 'onCleanup' class destructor: Invalid or deleted object.] ### Build procedure for model: 'Lab1_Project1' aborted due to an error.
Error(s) encountered while building model "Lab1_Project1": ### Failed to generate all binary outputs.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!