Difference between revisions of "TARGET Embedded"

From Lazarus wiki
(New page: The embedded target is still under development and only a few controllers are supported. Nevertheless, it's possible to create programs for embedded arm devices. = Embedded port = == Sta...)
 
(Build)
Line 16: Line 16:
 
   svn co http://svn.freepascal.org/svn/fpc/trunk fpc
 
   svn co http://svn.freepascal.org/svn/fpc/trunk fpc
  
Get  
+
Get arm-embedded binutils.
 +
 
 +
For windows, they are available at http://svn.freepascal.org/svn/fpcbuild/binaries/i386-win32. You can either checkout the whole directory with or download only arm-embedded-ar.exe, arm-embedded-as.exe, arm-embedded-ld.exe, arm-embedded-strip.exe, arm-embedded-objdump.exe and arm-embedded-objcopy.exe manually. Put these utils in a directory included in your path.
  
 
Build arm-embedded
 
Build arm-embedded
Line 22: Line 24:
 
   cd fpc
 
   cd fpc
 
   make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm
 
   make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm
 +
 +
This builds only the compiler and the rtl instead of the whole FPC. Because of the limited capabilities of the embedded systems supposed to be used, building all packages is not usefull.

Revision as of 20:52, 19 June 2009

The embedded target is still under development and only a few controllers are supported. Nevertheless, it's possible to create programs for embedded arm devices.

Embedded port

Status

    • usefull support is only available in 2.3.1 from svn
    • currently only arm-embedded is supported
    • supported controllers are limited to Philips LPC controllers

ARM Embedded

Build

Get latest FPC from svn:

 svn co http://svn.freepascal.org/svn/fpc/trunk fpc

Get arm-embedded binutils.

For windows, they are available at http://svn.freepascal.org/svn/fpcbuild/binaries/i386-win32. You can either checkout the whole directory with or download only arm-embedded-ar.exe, arm-embedded-as.exe, arm-embedded-ld.exe, arm-embedded-strip.exe, arm-embedded-objdump.exe and arm-embedded-objcopy.exe manually. Put these utils in a directory included in your path.

Build arm-embedded

 cd fpc
 make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm

This builds only the compiler and the rtl instead of the whole FPC. Because of the limited capabilities of the embedded systems supposed to be used, building all packages is not usefull.