Electronics > Microcontrollers

STM32F4 Discovery and arm-none-eabi-gcc

(1/6) > >>

Torrentula:
Hey guys!

I'm trying to compile an example program for the STM32F4 Discovery with the arm-none-eabi-gcc on Ubuntu. I'm using this as my working directory, but a simple "make all" doesn't work, the compiler says there are errors in some include files.

Does anybody have a working directory or Makefile he or she could spare, so I can be confident, that it's not a problem with the Makefile or the include files?

Thanks,

Torrentula

Bored@Work:

--- Quote from: Torrentula on March 22, 2012, 04:40:09 pm ---but a simple "make all" doesn't work, the compiler says there are errors in some include files.

--- End quote ---

Show us the error messages.

Torrentula:
Ok here is the complete output of "make all"


--- Quote ---torrentula@X7BSV:~/Documents/STM32F4/Project/IO_Toggle$ make all
arm-none-eabi-gcc -E  startup_stm32f4xx.S > startup_stm32f4xx.s
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mlittle-endian -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb-interwork  -Os  -DUSE_STDPERIPH_DRIVER -DSTM32F4XX -DMANGUSTA_DISCOVERY -DUSE_USB_OTG_FS -DHSE_VALUE=8000000 -I./ -I./ -I../../Utilities/STM32F4-Discovery -I../../Libraries/CMSIS/ST/STM32F4xx/Include/ -I../../Libraries/CMSIS/Include/ -I../../Libraries/STM32F4xx_StdPeriph_Driver/inc/ -I../../Libraries/STM32_USB_Device_Library/Class/hid/inc -I../../Libraries/STM32_USB_Device_Library/Core/inc/ -I../../Libraries/STM32_USB_OTG_Driver/inc/  -Wl,-T,stm32_flash.ld main.c stm32f4xx_it.c system_stm32f4xx.c ../../Utilities/STM32F4-Discovery/stm32f4_discovery.c ../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_syscfg.c ../../Libraries/STM32F4xx_StdPeriph_Driver/src/misc.c ../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_gpio.c ../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c ../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_exti.c startup_stm32f4xx.s -o demo.elf
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccOboFfA.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccOboFfA.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccqUUd6i.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccqUUd6i.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccCfonl7.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccCfonl7.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccI7jsFa.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccI7jsFa.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccKTjk5g.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccKTjk5g.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccX19iFq.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccX19iFq.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/cc06IMNR.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/cc06IMNR.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/ccZhw9Bv.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/ccZhw9Bv.o
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: error: /tmp/cco2iWWf.o uses VFP register arguments, demo.elf does not
/opt/CodeSourcery/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/cco2iWWf.o
collect2: ld returned 1 exit status
make: *** [demo.elf] Error 1

--- End quote ---

Do you think I should try a newer version of the CodeSourcery toolchain?

Bored@Work:
The floating point compilation options don't match. I don't remember from memory what the right ones for the STM32F4's are, but you try to build something with different floating point options.

T4P:
 demo.elf does not ... Does not what ?

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod