STM32f4 build error for simulink Model

3 ビュー (過去 30 日間)
Nitin Gaikwad
Nitin Gaikwad 2019 年 8 月 26 日
回答済み: Jayanth Bhimavarapu 2019 年 10 月 23 日
Build
4 3 1
Clear
11:08 AM Elapsed: 14 sec
### Starting build procedure for model: stm32f4 ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
2 3
Elapsed: 13 sec
### Generating code into build folder: C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw ### Invoking Target Language Compiler on stm32f4.rtw ### Using System Target File: C:\Program Files\MATLAB\R2018b\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 stm32f4_types.h ### Writing header file stm32f4.h ### Writing header file rtwtypes.h . ### Writing source file stm32f4.c ### Writing header file stm32f4_private.h ### Writing source file stm32f4_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c . ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model
Warning: Inputs must be character vectors, cell arrays of character vectors, or string arrays. [3 similar]
### Using toolchain: GNU Tools for ARM Embedded Processors v7.2.1 | gmake (64-bit Windows) ### 'C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw\stm32f4.mk' is up to date ### Building 'stm32f4': "C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f stm32f4.mk all MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/GNUARM~1.INS/win/bin C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw>cd . C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f stm32f4.mk all ) else ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f stm32f4.mk ) C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-gcc -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"stm32f4.dep" -MT"stm32f4.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -include stm32f4discovery_wrapper.h -DMODEL=stm32f4 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1U -DHSE_VALUE=8000000 -DNULL=0 -D__START=_start -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1U -DHSE_VALUE=8000000 -DNULL=0 -D__START=_start -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=stm32f4 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/NITING~1/Desktop/Figaro/data -IC:/Users/NITING~1/Desktop/Figaro/data/stm32f4_ert_rtw -IC:/PROGRA~1/MATLAB/R2018b/extern/include -IC:/PROGRA~1/MATLAB/R2018b/simulink/include -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/ert -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/toolbox/target/SUPPOR~1/ARMCOR~1/SCHEDU~1/include -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/src/ext_mode/serial -I/Libraries/CMSIS/ST/STM32F4xx/Include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/CMSIS~1.INS/CMSIS/Include -I/Project/Peripheral_Examples/SysTick -I/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/toolbox/target/SUPPOR~1/STM32F~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/toolbox/target/SUPPOR~1/ARMCOR~1/CMSIS_~1/include @stm32f4_comp.rsp -o stm32f4.o stm32f4.c In file included from <command-line>:0:0: C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/toolbox/target/SUPPOR~1/STM32F~1/include/stm32f4discovery_wrapper.h:18:10: fatal error: stm32f4xx.h: No such file or directory #include "stm32f4xx.h" ^~~~~~~~~~~~~ compilation terminated. gmake: *** [stm32f4.o] Error 1 C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_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.
### Build procedure for model: 'stm32f4' aborted due to an error.
Error(s) encountered while building "stm32f4": ### Failed to generate all binary outputs.
Component:Simulink | Category:Block diagram error

回答 (1 件)

Jayanth Bhimavarapu
Jayanth Bhimavarapu 2019 年 10 月 23 日
Hi Nithin
This error occurs when you try to configure directories which have spaces in them.
In your case it is "C:\Users\Nitin Gaikwad\Desktop\Figaro\data\stm32f4_ert_rtw".
So try to reconfigure the directory names to old style ~ names like C:\Program~3 for C:\Program Files.
For more details refer:
Thanks
Jayanth

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by