[fpc-devel] creating the embedded port of fpc

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Sun Oct 12 21:54:20 CEST 2014


Sietse Achterop wrote:
> On 10/12/2014 10:54 AM, Mark Morgan Lloyd wrote:
>> Sietse Achterop wrote:
>>>   Dear list,
>>> I try to get the embedded port of fpc (for both lcp1728 and stm32f4) 
>>> to work but fail.
>>> I use the info on
>>>    http://wiki.freepascal.org/TARGET_Embedded
>>> but immediate get:
>>>    make[1]: -iVSPTPSOTO: Command not found
> 
>    .....
>> export PP=....
>> make clean all
> 
>   Ok, thanks. I now see that you need the hosts fpc to create the 
> embedded version. I assumed only gcc was needed.

GCC doesn't enter into the picture at all, the documentation states 
explicitly that FPC is self-hosted. All you need is the appropriate 
binutils, which you might end up needing to compile yourself. Way back I 
put some stuff at 
http://wiki.lazarus.freepascal.org/Native_MIPS_Systems#Mainline_MIPS_Port 
which might still be useful.

> The given make-command only works as root, so i use a INSTALL_PREFIX:
>    make clean buildbase installbase INSTALL_PREFIX=/home/sietse 
> CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m
> This works ok.

You should be able to do everything except the final install as a 
non-privileged user.

> But the command
>    fpc -Parm -Tembedded -Wplpc1768 -Cparmv7m tled1.pp
> gives:
>    Error: ppcarm can't be executed, error message: Failed to execute 
> "ppcarm", error code: 127

After the  make install  operation, you might need to set up a symlink 
for ppcarm. or use PP as before.

As before, all subject to comments from anybody who knows what he's doing.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list