Yes, change Makefile.fpc so instead of:
"ifeq ($(ARCH),arm)
CPU_UNITS=lpc21x4 at91sam7x256
endif"
it says:
"ifeq ($(ARCH),arm)
CPU_UNITS=stm32f103
endif"
Then run fpcmake -Tall in the rtl/embedded dir
Then you can build the compiler and rtl again using "make buildbase
CPU_TARGET=arm OS_TARGET=embedded CROSSINSTALL=1 CROSSOPT="-Cpcortexm3 -O-""
Geoffrey Barton skrev:
Date: Mon, 19 Apr 2010 15:06:23 +0200
From: Jeppe Johansen <jepj...@kom.aau.dk>
Subject: Re: [fpc-devel] arm embedded
To: FPC developers' list <fpc-devel@lists.freepascal.org>
Message-ID: <4bcc554f.9070...@kom.aau.dk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
1)
stm32f103 is a thumb2 only device, and you cannot generate a rtl for
both <=armv5 and thumb2. You need to modify the makefile to generate
either a thumb2 rtl or a arm rtl. You can do that by removing the arm
core units from CPU_UNITS
I assume this is the one in 'ifeq ($ARCH),arm)' in makefile.fpc
and overriding the FPC_OPT to include -Cpcortexm3
I understand the crosscompiler option -Cpcortexm3, but how do I
regenerate the rtl?
Geoffrey
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel