STM32F4 Example 'Push Button and LED' build error.

2 次查看(过去 30 天)
Hi
I'm tring to use simulink with STM32F4-Discovery Board.
So I started with some tutorials and examples and I build 'Push Button and LED' example project.
Out of my expectation, it occurs error and i couldn't find the solution
here are the build messages.
### Generating code into build folder: C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw ### Invoking Target Language Compiler on stm32f4discovery_pb_led.rtw ### Using System Target File: C:\Program Files\MATLAB\R2014a\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 stm32f4discovery_pb_led.h ### Writing header file stm32f4discovery_pb_led_types.h ### Writing header file rtwtypes.h ### Writing source file stm32f4discovery_pb_led.c ### Writing header file stm32f4discovery_pb_led_private.h ### Writing source file stm32f4discovery_pb_led_data.c ### Writing source file ert_main.c ### TLC code generation complete. ### Creating project marker file: rtw_proj.tmw ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (64-bit Windows) ### Creating 'C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw\stm32f4discovery_pb_led.mk' ... ### Building 'stm32f4discovery_pb_led': C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f stm32f4discovery_pb_led.mk all C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw>cd .
C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f stm32f4discovery_pb_led.mk all ) else (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -f stm32f4discovery_pb_led.mk ) arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4discovery_pb_led.o" "stm32f4discovery_pb_led.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4discovery_pb_led_data.o" "stm32f4discovery_pb_led_data.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4xx_gpio.o" "stm32f4xx_gpio.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4xx_rcc.o" "stm32f4xx_rcc.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4xx_gpio_wrapper.o" "stm32f4xx_gpio_wrapper.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "startup_stm32f4xx.o" "startup_stm32f4xx.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "syscalls_stm32f4xx.o" "syscalls_stm32f4xx.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "stm32f4xx_init_board.o" "stm32f4xx_init_board.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "arm_cortex_m_multitasking.o" "arm_cortex_m_multitasking.c" C:\Users\ADMINI~1\AppData\Local\Temp\cc7MPXTj.s: Assembler messages: C:\Users\ADMINI~1\AppData\Local\Temp\cc7MPXTj.s:82: writing to APSR without specifying a bitmask is deprecated arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "system_stm32f4xx.o" "system_stm32f4xx.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "SysTickScheduler.o" "SysTickScheduler.c" arm-none-eabi-gcc -std=c99 -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -include stm32f4xx.h -DMODEL=stm32f4discovery_pb_led -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 -DUSE_STDPERIPH_DRIVER -DUSE_STM32F4_DISCOVERY -DSTM32F4XX -DARM_MATH_CM4=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DHSE_VALUE=8000000 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -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 -DMODEL=stm32f4discovery_pb_led -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Administrator/Documents/MATLAB/stm32f4discovery_pb_led_ert_rtw -IC:/Users/Administrator/Documents/MATLAB -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/stm32f4discoveryexamples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -IC://CMSIS/Include -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/SysTick -IC:/MATLAB/SupportPackages/R2014a/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -IC:/MATLAB/SupportPackages/R2014a/stm32f4discovery/include -o "ert_main.o" "ert_main.c" ert_main.c: In function 'main': ert_main.c:45:9: warning: unused variable 'systemClock' [-Wunused-variable] "### Creating standalone executable "../stm32f4discovery_pb_led.elf" ..." arm-none-eabi-g++ -Wl,--gc-sections -Wl,-Map="stm32f4discovery_pb_led.map" -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -nostartfiles -T "C:\MATLAB\SupportPackages\R2014a\stm32f4discovery/src/arm-gcc-link.ld" -o ../stm32f4discovery_pb_led.elf stm32f4discovery_pb_led.o stm32f4discovery_pb_led_data.o stm32f4xx_gpio.o stm32f4xx_rcc.o stm32f4xx_gpio_wrapper.o startup_stm32f4xx.o syscalls_stm32f4xx.o stm32f4xx_init_board.o arm_cortex_m_multitasking.o system_stm32f4xx.o SysTickScheduler.o ert_main.o C://CMSIS/Lib/GCC/libarm_cortexM4lf_math.a -lm -lm c:/program files (x86)/codesourcery/sourcery_codebench_lite_for_arm_eabi/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: error: ../stm32f4discovery_pb_led.elf uses VFP register arguments, c:/program files (x86)/codesourcery/sourcery_codebench_lite_for_arm_eabi/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-memset.o) does not c:/program files (x86)/codesourcery/sourcery_codebench_lite_for_arm_eabi/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/program files (x86)/codesourcery/sourcery_codebench_lite_for_arm_eabi/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-memset.o) collect2.exe: error: ld returned 1 exit status gmake: * [../stm32f4discovery_pb_led.elf] Error 1
C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\Administrator\Documents\MATLAB\stm32f4discovery_pb_led_ert_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.
What should i do?
  1 个评论
Siddharth Menon
Siddharth Menon 2015-10-22
This generally happens when there's a mismatch between the floating point ABI in use. Basically, your compiler is configured for the hard-float ABI (-mfloat-abi=hard), but most of the code that the STM32f4Discovery SP generates needs to be compiled with -mfloat-abi=soft (this is because a certain CMSIS math library libarm_cortexM4lf_math.a that is used for the builds is precompiled with soft floating point ABI).
From the error message, it looks like your compiler is from codesourcery. i believe, that the Compiler that the support package expects is GNU for ARM. Perhaps the codesourcery compiler is for a different architecture, or flags for the GNU compiler don't work with the codesourcery one.
The fact that the build was accidentally using the wrong compiler means that c:/program files (x86)/codesourcery/sourcery_codebench_lite_for_arm_eabi/bin/ must be pretty higher up on your system's path environment variable. So when GMAKE tried to call arm-none-eabi-gcc was called, it called the codesourcery compiler instead of the GNU compiler.
the newer support packages (15b+) don't rely on arm-none-eabi-gcc being on the path. For older releases, make sure that version of arm-none-eabi-gcc is accidentally on the path.

请先登录,再进行评论。

回答(1 个)

ZI UM LEE
ZI UM LEE 2015-4-7
혹시 문제 해결 하셨나요?...저도 같은 문제 생겨셔.....

Community Treasure Hunt

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

Start Hunting!

Translated by