STM32F4 discovery makefile

sarraciro sarraciro at
Thu Oct 24 01:32:12 UTC 2013

I found (docs-> /rtems/bsps/4.11/share/rtems4.11/make/Template) a README
that explains howto write the makefile,
I don't understand where I have to set RTEMS_MAKEFILE_PATH...

However AlanC don't set this variable (I not saw it until now) in his
seems that there are several ways to build with a makefile...
The documentation talks about leaf node  Makefile and Makefile for
But both include  or/and leaf.cfg (bsps support I

I'm confused about it ... I never used them until now ... can anyone
explain me what is the advised method and how to move on??


Il giorno mer, 23/10/2013 alle 13.55 +0200, sarraciro ha scritto:
> 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
> 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
> _______________________________________________
> rtems-users mailing list
> rtems-users at

More information about the users mailing list