Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-03

lpc21x4.pp (Arm7 board)

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Nataraj S Narayan

Hi

There is file lpc21x4.pp under /rtl/embedded/arm. Does this mean that i can compile fpc for the Philips LPC boards? I got an LPC 2378 stk board with me. Perhaps I may need to modify the lpc21x4.pp to suit my board.

Can anybody help me with getting started the compilation process?

regards

Nataraj

Reply by email

Florian Klaempfl
to Nataraj S Narayan
Hi There is file lpc21x4.pp under /rtl/embedded/arm. Does this mean that i can compile fpc for the Philips LPC boards?

Yes, I did so already.

Show quoted text 5 lines
I got an LPC 2378 stk board with me. Perhaps I may need to modify the lpc21x4.pp to suit my board. Can anybody help me with getting started the compilation process?

Get binutils for you OS, e.g.
http://svn.freepascal.org/svn/fpcbuild/binaries/i386-win32/arm-embedded-*.exe for windows, put them into the path.

build cross fpc with e.g.
make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm

Compile programs with e.g.
fpc -Parm -Tembedded -Wplpc2124 test.pp

translate them into a format understandable by the programming software arm-embedded-objcopy -O ihex test.elf test.hex

Reply by email

Nataraj S Narayan
to Florian Klaempfl

Hi Florian

Thanks for the info. Regarding binutils, can I use arm-none-eabi-* from codesourcery to compile on Linux / FreeBSD? I don't get to use a Windows machine. My fpc svn is on a Linux machine.

regards

Nataraj

Florian Klaempfl wrote 31 lines
Nataraj S Narayan schrieb: > Hi > > There is file lpc21x4.pp under /rtl/embedded/arm. Does this mean > that i can compile fpc for the Philips LPC boards? Yes, I did so already. >I got an LPC 2378 > stk board with me. Perhaps I may need to modify the lpc21x4.pp to > suit my board. > > Can anybody help me with getting started the compilation process? Get binutils for you OS, e.g. http://svn.freepascal.org/svn/fpcbuild/binaries/i386-win32/arm-embedded-*.exe for windows, put them into the path. build cross fpc with e.g. make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm Compile programs with e.g. fpc -Parm -Tembedded -Wplpc2124 test.pp translate them into a format understandable by the programming software arm-embedded-objcopy -O ihex test.elf test.hex _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email