franzflasch / stm32f4_makefile_project_template

This is a makefile template project for the STM32F4 microcontroller. The included example application runs on the STM32F4 Discovery Board.
Other
3 stars 3 forks source link

compile error #1

Open marco-waven opened 7 years ago

marco-waven commented 7 years ago

hi, when I run make, lots of error:

arm-none-eabi-gcc -x assembler-with-cpp -mcpu=cortex-m4 -Os -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -fno-common -g -gdwarf-2 -mthumb -Wa,-amhls=CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.lst -o CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s /opt/gcc-arm-none-eabi-5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/libg.a(lib_a-exit.o): In function exit': exit.c:(.text.exit+0x16): undefined reference to_exit' /opt/gcc-arm-none-eabi-5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/crt0.o: In function _start': (.text+0x4a): undefined reference tomain' /tmp/cca1cm66.o:(.text+0x0): undefined reference to _sidata' /tmp/cca1cm66.o:(.text+0x4): undefined reference to_sdata' /tmp/cca1cm66.o:(.text+0xc): undefined reference to _sbss' /tmp/cca1cm66.o:(.text+0x10): undefined reference to_ebss' /tmp/cca1cm66.o: In function LoopFillZerobss': /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:103: undefined reference toSystemInit' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:105: undefined reference to main' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:79: undefined reference to_sidata' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:85: undefined reference to _sdata' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:90: undefined reference to_sbss' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:98: undefined reference to _ebss' /tmp/cca1cm66.o:(.isr_vector+0x0): undefined reference to_estack' collect2: error: ld returned 1 exit status

: recipe for target 'CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o' failed make: *** [CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o] Error 1

do you know why?

Thank you!

franzflasch commented 7 years ago

Hi Marco!

 

Thank you for your interest in my projects! However the stm32f4_makefile_project_template repo is rather old and I do not maintain it anymore.

 

I would recommend you to switch to my new buildsystem instead:

 

https://github.com/franzflasch/REM

 

The STM32F4 is also supported! There is a minimal blinky project also for the STM32F4 microcontroller available. Just follow the step by step guide to build it. You just have to exchange the "MACH=stm32f3" to "MACH=stm32f4" to build for the F4 microcontroller.

 

If there are any questions I would be pleased to help you.

 

Regards,

Franz

 

 

 

Gesendet: Dienstag, 15. November 2016 um 09:56 Uhr Von: Marco notifications@github.com An: franzflasch/stm32f4_makefile_project_template stm32f4_makefile_project_template@noreply.github.com Betreff: [franzflasch/stm32f4_makefile_project_template] compile error (#1)

hi, when I run make, lots of error:

arm-none-eabi-gcc -x assembler-with-cpp -mcpu=cortex-m4 -Os -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -fno-common -g -gdwarf-2 -mthumb -Wa,-amhls=CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.lst -o CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s /opt/gcc-arm-none-eabi-5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/libg.a(lib_a-exit.o): In function exit': exit.c:(.text.exit+0x16): undefined reference to_exit' /opt/gcc-arm-none-eabi-5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/crt0.o: In function _start': (.text+0x4a): undefined reference tomain' /tmp/cca1cm66.o:(.text+0x0): undefined reference to _sidata' /tmp/cca1cm66.o:(.text+0x4): undefined reference to_sdata' /tmp/cca1cm66.o:(.text+0xc): undefined reference to _sbss' /tmp/cca1cm66.o:(.text+0x10): undefined reference to_ebss' /tmp/cca1cm66.o: In function LoopFillZerobss': /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:103: undefined reference toSystemInit' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:105: undefined reference to main' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:79: undefined reference to_sidata' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:85: undefined reference to _sdata' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:90: undefined reference to_sbss' /data/build/stm32/stm32f4_makefile_project_template/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s:98: undefined reference to _ebss' /tmp/cca1cm66.o:(.isr_vector+0x0): undefined reference to_estack' collect2: error: ld returned 1 exit status : recipe for target 'CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o' failed make: *\ [CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.o] Error 1

do you know why?

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.