STM32F4 discovery makefile
sarraciro
sarraciro at yahoo.it
Wed Oct 23 11:55:05 UTC 2013
Hi all,
I'm working on makefile to build custom application for
stm32f4-discovery.
The flags that I think are needed are:
#include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU = arm
CPU_CFLAGS= -march=arm7-m -mthumb
CFLAGS_OPTIMIZE_V = -O2 -g
That not match the flags that I that I used to building fw for STM32F4
without rtems:
CFLAGS = -g -O2 -Wall -Tstm32_flash.ld
CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
CFLAGS += -mfloat-abi=soft -mfpu=fpv4-sp-d16
Another important thing is (imho) add to source files the
startup_stm32f4xx.s file
SRCS += lib/startup_stm32f4xx.s # add startup file to build
I'm starting from AlanC makefile for RasPi...
I'm a bit confused right now... AlanC don't use the SRCS and CFLAGS
environment variables to build OBJS.... and I'm loosing in the Makefile
documentation...
Can anyone explain how to go on? or provide a makefile for example?
I attach the makefiles that I would merge in some (right) way.
Regards
--
SC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 1204 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131023/5979714a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 2710 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131023/5979714a/attachment-0001.bin>
More information about the users
mailing list