2015-12-26 01:30 PM
While trying to build a simple LED simulink model using embedded coder I get the following error in last few lines of diagnosis report:
''C:/MATLAB/SupportPackages/R2015a/armcortexm/toolbox/target/supportpackages/arm_cortex_m/cmsis_rtos_rtx/src/cmsis_rtos_init.c''In file included from C:/MATLAB/SupportPackages/R2015a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include/stm32f4xx.h:245:0, from :0: C:/MATLAB/CMSIS-SP-00300-r4p5-00rel0/CMSIS/Include/core_cm4.h:151:0: warning: ''__FPU_USED'' redefined [enabled by default] #define __FPU_USED 1U ^ :0:0: note: this is the location of the previous definitionIn file included from C:/MATLAB/SupportPackages/R2015a/armcortexm/toolbox/target/supportpackages/arm_cortex_m/cmsis_rtos_rtx/src/cmsis_rtos_init.c:8:0: C:/MATLAB/SupportPackages/R2015a/armcortexm/toolbox/target/supportpackages/arm_cortex_m/cmsis_rtos_rtx/include/mw_cmsis_rtos.h:6:22: fatal error: cmsis_os.h: No such file or directory #include ''cmsis_os.h'' ^ compilation terminated. gmake: *** [cmsis_rtos_init.o] Error 1C:\Users\Shail\Documents\MATLAB\stm32f4discovery_gettingstarted_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Shail\Documents\MATLAB\stm32f4discovery_gettingstarted_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.Please help me with this2015-12-27 09:27 AM
Solved it. Had installed the latest version of CMSIS instead of CMSIS 4.2 which is recommended.