Re: [fpc-pascal] ARM CMSIS support

2016-01-09 Thread Michael Ring
Chiming in ;-) There are two more options: https://github.com/yunkot/pxl There are units available for higher level access to STM32F4, Teensy and some Freescale Devices. Very usable for devices that have >64k of Flash, a number of displays and sensors are supported out of the box. When your

Re: [fpc-pascal] ARM CMSIS support

2016-01-09 Thread Marc Santhoff
On Sa, 2016-01-09 at 00:55 +0100, Jeppe Johansen wrote: > Yes, you understand it correctly :) > The FPC RTL only exposes the hardware, not the firmware stack on top. > > It might not be documented well anywhere but the weak linking with set > defaults basically means you can declare interrupt han

[fpc-pascal] Strange file

2016-01-09 Thread Ched
Hello All, Each time I use fp (text mode ide) under linux or win-xp (3.0 and 2.6.4), there appears a new emtpy file in the directory: dummy.$$$ . Apparently it's safe to remove it even when fp is running. But what's its use ? Season's greeting, Ched' __

Re: [fpc-pascal] ARM CMSIS support

2016-01-09 Thread Michael Ring
Currently there is no support for embedded targets in the Lazarus Debugger so you will need to load/debug your code with the help of other tools. For the Discovery board the easiest way to deploy binaries and to debug is to install openocd: openocd -f board/stm32f4discovery.cfg should conne

[fpc-pascal] Constructor question

2016-01-09 Thread Bart
Hi, Is this legal Pascal? uses classes,sysutils; type { TA } TA = class protected F1: Integer; F2: Integer; public constructor Create; virtual; end; { TB } TB = Class(TA) constructor Create; override; end; { TB } constructor TB.Create; begin writeln('TB.C

[fpc-pascal] building arm cross compiler on FreeBSD

2016-01-09 Thread Marc Santhoff
Hi, I'm stuck while trying to build a cross compiler for ARM on FreeBSD. The compiler does not know any arm target. FreeBSD is running on some arm platforms (e.g. beagleboard), but it seems the combination is not implemented in fpc. Is that correct? How can I build a build a cross compiler runni

Re: [fpc-pascal] building arm cross compiler on FreeBSD

2016-01-09 Thread Jonas Maebe
On 09/01/16 23:27, Marc Santhoff wrote: I'm stuck while trying to build a cross compiler for ARM on FreeBSD. The compiler does not know any arm target. The compiler always only knows all targets for a single architecture. Unless you have a native ARM or a cross-compiler for ARM, it's normal t

Re: [fpc-pascal] Constructor question

2016-01-09 Thread Mattias Gaertner
On Sat, 9 Jan 2016 21:46:19 +0100 Bart wrote: > Hi, > > Is this legal Pascal? > > uses > classes,sysutils; > > type > { TA } > TA = class > protected > F1: Integer; > F2: Integer; > public > constructor Create; virtual; > end; > { TB } > TB = Class(TA) > con

Re: [fpc-pascal] building arm cross compiler on FreeBSD

2016-01-09 Thread Marc Santhoff
On Sa, 2016-01-09 at 23:44 +0100, Jonas Maebe wrote: > OS_TARGET=embedded No, doesn'r do. The error message talks about the assemble, maybe it is the binuitls variant installed? gmake[3]: Entering directory `/usr/p1/home/marc/program/fpc-cross/src/fpc/rtl/embedded' /usr/local/bin/gmkdir -p /usr

Re: [fpc-pascal] Constructor question

2016-01-09 Thread Bart
On 1/9/16, Mattias Gaertner wrote: >> Q: am I allowed to access a property/field of TA in the constructor of >> TB before calling inherited Create there? >> This is what I intended, but is it legal, or does it just work by chance? > > It works by design. Thanks for clarifying. Bart ___

Re: [fpc-pascal] building arm cross compiler on FreeBSD

2016-01-09 Thread Tomas Hajny
On Sat, January 9, 2016 23:44, Jonas Maebe wrote: > On 09/01/16 23:27, Marc Santhoff wrote: Hi Jonas, >> I'm stuck while trying to build a cross compiler for ARM on FreeBSD. The >> compiler does not know any arm target. . . >> FreeBSD is running on some arm >> platforms (e.g. beagleboard), but