Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-08 Thread Koenraad Lelong
On 08-02-12 15:42, Jonas Maebe wrote: On 08 Feb 2012, at 15:31, Koenraad Lelong wrote: After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code. The error below indicates the compiler does not get to emitting any kind

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-08 Thread Jonas Maebe
On 08 Feb 2012, at 15:31, Koenraad Lelong wrote: After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code. The error below indicates the compiler does not get to emitting any kind of code at all. I just tried to m

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-08 Thread Koenraad Lelong
I do have a working crosscompiler (I think), only I have to call it via /usr/lib/fpc/2.6.0/ppcrossarm ..., instead of via fpc ... The code seems not to work, but that could be my own RTL, which I copied from SMT32F103RE. I'm working on that. After some debugging, I think my compiler does not

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Koenraad Lelong
On 06-02-12 14:47, Graeme Geldenhuys wrote: Strange. Last time I downloaded Paul's Windows archive he released, it was indeed a cross-compiler for x86 (32-bit) to ARM (and not a native arm executable). I could then compile my mobile application under Windows 2000, then copy my compiled applicati

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Koenraad Lelong
On 06-02-12 14:34, Rainer Stratmann wrote: I am also interested in crosscompiling for embedded ARM. How did you install the crosscompiler on Linux OS? Is there an easy way of doing this? Is it in the debian packages precompiled and ready for use? On a Suse 12.1 virtual machine I downloaded the

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Graeme Geldenhuys
On 6 February 2012 15:27, Koenraad Lelong wrote: > > I downloaded that package, and I tried it on my x86_64 Ubuntu-laptop. ppcarm > can't be executed, "file ppcarm" shows this : > ppcarm: ELF 32-bit LSB executable, ARM, version 1, statically linked, > stripped > AFAIK this means it's a binary to ru

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Rainer Stratmann
Am Monday 06 February 2012 14:27:20 schrieb Koenraad Lelong: > I do have a working crosscompiler (I think), only I have to call it via > /usr/lib/fpc/2.6.0/ppcrossarm ..., instead of via fpc ... > The code seems not to work, but that could be my own RTL, which I copied > from SMT32F103RE. I'm worki

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Koenraad Lelong
On 06-02-12 10:04, Graeme Geldenhuys wrote: For a much easier cross-compiling experience, try using Paul Breneman's downloads. He has packages the FPC arm cross-compiler is a very small archive. Simply unzip and run - and it works no problems. As a bonus, he also includes fpGUI (for GUI developme

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Graeme Geldenhuys
On 3 February 2012 14:23, Koenraad Lelong wrote: > > I just had some time to look into this again. > I downloaded the latest 2.6.0 sources and mostly followed > http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In > /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today wh

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-03 Thread Jeppe Græsdal Johansen
Den 03-02-2012 13:23, Koenraad Lelong skrev: Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-03 Thread Mark Morgan Lloyd
Koenraad Lelong wrote: Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I run ppcrossarm -i. Bu

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-03 Thread Koenraad Lelong
Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I run ppcrossarm -i. But when I try fpc -Parm