I am using STM32F4-Discovery board with Simulink. How can i resolve "failed to generate all binary outputs" error?

1 visualización (últimos 30 días)
### Generating code into build folder: C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw
### Invoking Target Language Compiler on test.rtw
### Using System Target File: C:\Program Files\Polyspace\R2019a\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 test_types.h
### Writing header file test.h
### Writing header file rtwtypes.h
### Writing source file test.c .
### Writing header file test_private.h
### Writing source file test_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
### Creating 'C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw\test.mk' ...
### Building 'test': "C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f test.mk all MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/3P778C~1.INS/GNUARM~1.INS/win/bin C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw>cd . C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw>if "" == "" ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f test.mk all ) else ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f test.mk ) "C:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"test.dep" -MT"test.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -include stm32f4discovery_wrapper.h -DMODEL=test -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=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @test_comp.rsp -o "test.o" "test.c" In file included from <command-line>:0:0: C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/stm32f4discovery/include/stm32f4discovery_wrapper.h:18:10: fatal error: stm32f4xx.h: No such file or directory #include "stm32f4xx.h" ^~~~~~~~~~~~~ compilation terminated. gmake: *** [test.o] Error 1 C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\STM32F4-Discovery_FW_V1.1.0\test_ert_rtw>exit 1 ### Creating HTML report file test_codegen_rpt.htmlMW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/3P778C~1.INS/GNUARM~1.INS/win/bin
Build
Clear
09:51 AM Elapsed: 17 sec
### Build procedure for model: 'test' aborted due to an error.
Error(s) encountered while building "test":
### Failed to generate all binary outputs.

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by