Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Koenraad Lelong
STM32-discovery board. I'm searching how I can program the device, but I can't find anything. With programming I mean getting the firmware into the device. Can someone give me a link ? Another question : any links how to get fpc to compile for that device ? Regards, Koenraad Lelong

Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Koenraad Lelong
On 19-09-11 14:49, Mark Morgan Lloyd wrote: Koenraad Lelong wrote: On 04-09-10 12:40, Jeppe Johansen wrote: Den 04-09-2010 12:37, Rainer Stratmann skrev: Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: Den 04-09-2010 10:50, Rainer Stratmann skrev: Is it possible to compile

[fpc-pascal] Making a cross-compiler for STM32

2011-10-09 Thread Koenraad Lelong
] Fout 2 Did I do anything wrong ? Or is the snapshot unstable for those devices ? How can I get a working compiler ? Thanks, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Making a cross-compiler for STM32

2011-10-12 Thread Koenraad Lelong
you advised ;-) I'll try 19238 now. Thanks again, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Making a cross-compiler for STM32

2011-10-12 Thread Koenraad Lelong
On 12-10-11 08:12, Koenraad Lelong wrote: On 11-10-11 22:05, Jeppe Græsdal Johansen wrote: That's a problem, since that error was fixed in revision 19238. Btw. I just tested, and I had no problem building the svn trunk version using fpc 2.71. What version of fpc did you try to build

Re: [fpc-pascal] Making a cross-compiler for STM32

2011-10-12 Thread Koenraad Lelong
On 12-10-11 09:07, Jeppe Græsdal Johansen wrote: Den 12-10-2011 08:25, Koenraad Lelong skrev: Neither will do, and that explains the problem. To build the svn trunk version you need the latest stable release(or latest svn trunk version), which is version 2.4.4 OK, I installed the binary

Re: [fpc-pascal] Making a cross-compiler for STM32

2011-10-12 Thread Koenraad Lelong
:-( Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Database access in console program

2011-11-09 Thread Koenraad Lelong
').Value:='Value1'; myTable.Params.ParamByName('Field2').Value:='Value2'; try myTable.ApplyUpdates; except on E: Exception do writeln(E.Message) end; If I try this I get an error stating parameter Field1 does not exist. Any references ? Thanks, Koenraad Lelong

Re: [fpc-pascal] Database access in console program

2011-11-09 Thread Koenraad Lelong
, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc 2.6.0-rc1 for arm-embedded

2011-12-08 Thread Koenraad Lelong
: /usr/lib/fpc/2.6.0/units/arm-embedded/rtl/stm32f103.o does not support interworking, whereas test-1.elf does I think Googling tells me my application will not run. Am I doing something wrong ? Thanks for any hints. Koenraad Lelong ___ fpc-pascal

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

2011-12-12 Thread Koenraad Lelong
On 09-12-11 00:09, Den Jean wrote: On Thursday 08 December 2011 13:49:16 Koenraad Lelong wrote: /usr/lib/fpc/2.6.0/units/arm-embedded/rtl/system.o does not support interworking, whereas test-1.elf does does this thread help ? http://lists.freepascal.org/lists/fpc-devel/2011-August/025615

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

2012-02-03 Thread Koenraad Lelong
with -Cpcortexm3 ? Thanks for any info. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2012-02-06 Thread Koenraad Lelong
128K of flash-rom and 8K of RAM. 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. Regards, Koenraad

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

2012-02-06 Thread Koenraad Lelong
them for crosscompiling too. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

[fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
to do to be able to use the two versions in parallel ? I tried to make the arm-embedded compiler by compiling the svn-version with fpc-2.6.0, but that fails. Thanks for any info. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
On 08-02-12 12:53, Henry Vermaak wrote: How do you install it? I use 2.6.0 and trunk, so it's definitely possible. I install to /usr/local on linux (but I have a similar setup on Windows), then I end up with the different versions like this: /usr/local/lib/fpc/2.6.0 /usr/local/lib/fpc/2.7.1

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
On 08-02-12 14:31, Henry Vermaak wrote: ... Then to make the crosscompiler how do I specify to use ppcx64-2.7.1 ? I'm afraid I don't understand the question. Never mind. I now remember that the buildprocess first builds it's own compiler, using the 'old' compiler. Then the new compiler is

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-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.7.1 for arm-embedded

2012-02-09 Thread Koenraad Lelong
On 08-02-12 17:31, Koenraad Lelong wrote: 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

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

2012-02-10 Thread Koenraad Lelong
On 10-02-12 11:30, Jonas Maebe wrote: Now I see: that compilerproc is only included in the RTL if FPC_HAS_FEATURE_ANSISTRINGS is defined. The embedded target by default probably does not include support for ansistrings (since they in turn depend on the heap manager). One helper for

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

2012-02-10 Thread Koenraad Lelong
On 10-02-12 08:57, Rainer Stratmann wrote: This means that there is a simple install solution for Linux? All in one directory? I don't understand what you want. An install solution for what ? Koenraad. ___ fpc-pascal maillist -

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

2012-02-10 Thread Koenraad Lelong
On 10-02-12 13:58, Sven Barth wrote: If your fpc-svn directory is a real svn checkout you can just do a svn diff your-patch.diff. Alternatively you can use should add -aur as argument to diff (in front of the filenames). Enclosed the new patch. This all compiles, but needs to be verified and

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

2012-02-10 Thread Koenraad Lelong
On 10-02-12 15:33, Sven Barth wrote: Am 10.02.2012 14:46, schrieb Koenraad Lelong: On 10-02-12 13:58, Sven Barth wrote: If your fpc-svn directory is a real svn checkout you can just do a svn diff your-patch.diff. Alternatively you can use should add -aur as argument to diff (in front

[fpc-pascal] Reversing bit-order of byte

2012-05-03 Thread Koenraad Lelong
to me. Thanks for any hints. Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] Reversing bit-order of byte

2012-05-03 Thread Koenraad Lelong
, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-04 Thread Koenraad Lelong
; asm .long 0xe6ff0f30 // rbit r0, r0 lsr r0, r0, #24 end; Thanks guys, I'll try and test this weekend. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-04 Thread Koenraad Lelong
rbitr0, r0 8000154: ea4f 50d0 mov.w r0, r0, lsr #23 8000158: 46f7mov pc, lr Wouldn't it be possible to do rbitr0, r0, lsr #23 When reading the ARM programming manual I believe it should. But do I gain something ? Regards, Koenraad Lelong

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-04 Thread Koenraad Lelong
usart-tests were at 4Mbps. The person that made the driver recommends max. 6Mbps. If I need more spare time I'll have to see what DMA can do. Thanks for all information. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal

Re: RE : RE : [fpc-pascal] Reversing bit-order of byte

2012-05-07 Thread Koenraad Lelong
On 04-05-12 14:53, Koenraad Lelong wrote: On 04-05-12 14:31, Thomas Schatzl wrote: ... Compared to the other variants (e.g. with the multiplies, except for the table lookup) you already save a lot of cycles - although I guess they would be sufficiently fast anyway, considering the typical

[fpc-pascal] Assigning absolute record to variable

2012-05-08 Thread Koenraad Lelong
, Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc arm-embedded interrupts

2012-05-10 Thread Koenraad Lelong
, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
can correct my code ? Thanks, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
On 03-06-12 17:53, Koenraad Lelong wrote: Hi, Im trying to access an open array but I get a runtime error. I googled a bit, and found some suggestions, but for me they don't work. Forgot to say : runtime error is 216. modified (with the same error) : const FONT6x8 : array[0..775] of byte

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
to the beginning of the selected font table pFont:=@FONT6x8; nCols:=pFont^; nRows:=(pFont+1)^; nBytes:=(pFont+2)^; end. Now my library works. Thanks, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Variable alignment in arm-embedded

2012-06-07 Thread Koenraad Lelong
was in vain. Any help ? Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-08 Thread Koenraad Lelong
On 08-06-12 06:45, Ludo Brands wrote: Handcrafted alignment: var ReservedBlock:array[0..$1FF] of byte; IntVectors:pointer; begin IntVectors:=pointer((ptruint(@ReservedBlock[0])+$100) and not $ff); End; Or dynamic: Var pReservedBlock,IntVectors:pointer; begin

Re: RE : RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-12 Thread Koenraad Lelong
the last 9 bits (8..0). If I need that space I will modify the start of RAM location and use the first bytes of RAM for the vector-table. It would be nice to have external linker scripts. That way you could more easily add processors, or use custom bootloaders. Regards, Koenraad Lelong

RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-12 Thread Koenraad Lelong
On 11-06-12 13:46, alrieckert wrote: Hi Jeppe, I've been using the actual ROM based interrupt table for the past month now in freepascal ad it seems to work great. No need to declare a block of RAM and pointing the interrupt table to it. ... Please let me know if you have any questions. --

RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-13 Thread Koenraad Lelong
On 13-06-12 07:37, alrieckert wrote: alrieckert wrote Please just make sure about your starting address for the flash. I'm using the STM32F103CBT6 and the start address is 0x0800 and not 0x080 I've just verified it. The starting address for the flash should be 0x0800. The reason

RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-26 Thread Koenraad Lelong
. Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc arm-embedded suitable for cortex-m4 ?

2012-06-26 Thread Koenraad Lelong
that would be great. I wouldn't know how to use the dsp-instructions, yet. Thanks for any pointers, Koenraad lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-26 Thread Koenraad Lelong
On 26-06-12 09:38, alrieckert wrote: Thank you for the feedback, does this mean you got the interrupt working with my patches?? Hi Anton, Yes, I got interrupts working now. It took some experimenting though. Or maybe I'm missing something. To get the interrupt procedure on the right place in

Re: [fpc-pascal] fpc arm-embedded suitable for cortex-m4 ?

2012-06-26 Thread Koenraad Lelong
fpc to cortex-m4 : http://be.farnell.com/stmicroelectronics/stm32f4discovery/board-eval-stm32f4-discovery/dp/2009276 I could sponsor one if you like ;-) And there is no hurry. I need to finish my cortex-m3 project first and see if that processor is fast enough. Regards, Koenraad Lelong

[fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Koenraad Lelong
to test them since I don't yet have a suitable video-cable. TIA, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Smartcard Pascal

2012-08-20 Thread Koenraad Lelong
://pcsclite.alioth.debian.org/) which is AFAIK a Linux version of the M§ API. At least its API http://pcsclite.alioth.debian.org/api/group__API.html looks quite similar to what I've seen in this component. TIA Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] fcl-db components missing from 2.6.0 (Lazarus winx64 bin inst)

2012-10-29 Thread Koenraad Lelong
the drivers themselves installed. Maybe on Win it's the same ? Or maybe the 32bit drivers are installed and 64bit is needed ? HTH. Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

[fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Koenraad Lelong
in ?? () #13 0x008dcb90 in ?? () #14 0x0040ff5a in ?? () #15 0x774521c0 in ?? () #16 0x in ?? () (gdb) Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Koenraad Lelong
? Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Embeded ARM Examples.

2013-01-24 Thread Koenraad Lelong
from me) in this list about arm-embedded, did you read those ? Did you read http://wiki.freepascal.org/TARGET_Embedded ? Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-24 Thread Koenraad Lelong
did this with gdb to get a backtrace. That's what I sent to the list. You say you can't compile the RTL, what error do you get ? I'm compiling this with FPC 2.6.0, on Opensuse 12.1 64 bit. Anyway, thanks for your reply. Regards, Koenraad Lelong

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-27 Thread Koenraad Lelong
doing and what the results are, but the linking stage seems to go wrong. I'll report more when I have my notes. Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread Koenraad Lelong
. And when there is a usable compiler, I can make the appliance to share it with interested users. Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-30 Thread Koenraad Lelong
seems to go wrong. I'll report more when I have my notes. Regards, Koenraad Lelong Hi, I made a virtual appliance with opensuse 12.2, x386. To be able to download it you must create an account on http://susestudio.com. Search for freepascal, then you'll find it : Freepascal for arm-embedded

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-30 Thread Koenraad Lelong
Hi, An update. I tried to make a crosscompiler with the new sources on my old developing machine. There I still get the segmentation fault. The difference is that that machine is 64 bit, while the appliance is 32 bit. Actually, that was why I made the appliance. To see if there were

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-15 Thread Koenraad Lelong
to try to maintain this, so all comments are welcome. Users/passwords : fpc/fpc and root/linux. Thanks again, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-18 Thread Koenraad Lelong
a source file to be compiled) I'll make the new virtual machine available on dropbox. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-18 Thread Koenraad Lelong
$PROCESSOR -XParm-none-eabi- $1 I'm putting a new version of my VM on dropbox. Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pascal compiler for ardurino

2013-02-27 Thread Koenraad Lelong
developping an embedded project with FPC. There is also the maple, arduino form-factor but also a cortex-m3 processor. Just my 2 cents ;-) Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Place of elements in record

2013-02-28 Thread Koenraad Lelong
to write the whole record. Thanks for your input. Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Place of elements in record

2013-02-28 Thread Koenraad Lelong
cross memory-pages, then the record needs to be split in two (or more) cycles. But at the moment I'm saving less than 20 variables, so splitting will be for later. Thanks for your input, same for you Ludo. Regards, Koenraad Lelong. ___ fpc-pascal

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-03-03 Thread Koenraad Lelong
get the linker-error. I tried to make a crosscompiler today with r23680, but that fails. Is it still necessary to use that arm-embedded-ld hack ? Thanks, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] DateTimeToUnix bug ?

2009-07-15 Thread Koenraad Lelong
running ahead. Is it a bug, or am I missing someting ? This happens with FPC 2.4. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] DateTimeToUnix bug ?

2009-07-15 Thread Koenraad Lelong
Jonas Maebe schreef: On 15 Jul 2009, at 11:06, Koenraad Lelong wrote: I have a linux application where I use DatetimeToUnix. I think it contains a bug. Every minute I put a sample in an rrddb (rrdtool). When I dump the rrddb, the time of the samples is 2 hours in the future. Those 2 hours

[fpc-pascal] InterProcessCommunication

2009-09-06 Thread Koenraad Lelong
check if the socket is empty ? I found references to simpleIPC, but I can't find examples. I found an xml-file, could this some explanation ? I'm using FPC 2.2.4. Any pointers ? TIA Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Using a c-library (part 1)

2007-03-21 Thread Koenraad Lelong
blocks were freed -- no leaks are possible. Should I worry about this ? Any hints about what could be wrong ? The program seems to run fine. I hope the atachments are accepted by the list. They are cleaned up a bit : remarks removed. Thanks for any help you can provide. Regards, Koenraad Lelong

[fpc-pascal] Heaptrc question

2008-01-09 Thread Koenraad Lelong
? Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-10 Thread Koenraad Lelong
Bernd Mueller schreef: Bernd Mueller wrote: when I try to start a simple Hello-Program, which uses the unit pthreads, on an arm-linux target (uClibc), I get the message not found. The program is crosscompiled from win32, using the fpc 2.2.0 compiler: program project1; {$mode

Re: [fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-13 Thread Koenraad Lelong
Bernd Mueller schreef: Koenraad Lelong wrote: I tried on my arm-linux board, AFAIK NOT uClibc. It works fine. Thanks. Are you crosscompiling? Do you use static or dynamic linking? Regards, Bernd. When I read you reply about linking I realised I didn't think about the fact that the linker

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Koenraad Lelong
. It shows as /dev/ttyUSB0. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] StrToTime function

2008-05-08 Thread Koenraad Lelong
? Is someone able to solve this in a few minutes ? I'm willing to look into this but I would like to know if I'm doing something wrong before I start. B.T.W. I use this to define a time-duration, not some time of the day so AM/PM is not appropriate. Thanks, Koenraad Lelong

Re: [fpc-pascal] Decimal dot

2008-05-08 Thread Koenraad Lelong
Michael Van Canneyt schreef: On Thu, 8 May 2008, Koenraad Lelong wrote: Hello, I need to log some real values so I write them to a file. Unfortunately the real's are in the form of xxx.yyy, mark the dot. If I try to import that file in OOo Calc, on the same PC, I get text-values instead

[fpc-pascal] Deamon signals

2008-06-17 Thread Koenraad Lelong
Hi, I'm trying to make a daemon, to run on Linux. I got a testversion working, but I have a question about signals. I can respond to signals but every signal I didn't define stops the daemon, in an unmanageable way. Is this the proper behaviour ? The source : program my_service; {$ifdef

Re: [fpc-pascal] Object Pascal arm-linux

2008-07-21 Thread Koenraad Lelong
Florian Klaempfl schreef: Koenraad Lelong schrieb: Florian Klaempfl schreef: Koenraad Lelong schrieb: Hi, I successfully ran some MSE-gui test-programs on my arm-board. To do this I used a patched fpc 2.2.0-fixes. The patch involved backporting a fix from fpc-2.3.1 for TBinaryObjectReader

[fpc-pascal] Help converting h-file

2008-09-07 Thread Koenraad Lelong
alternative ? The static inline is more difficult to understand. I add the original source, and the resulting h2pas file so you can see what's happening. Any help ? As allways, TIA. Regards, Koenraad Lelong libdevmem.tar.gz Description: GNU Zip compressed data

Re: [fpc-pascal] Help converting h-file

2008-09-17 Thread Koenraad Lelong
Henry Vermaak schreef: 2008/9/15 Koenraad Lelong : ... I think I'm missing some file to link in, but I think I included every seems like it's not finding libc? henry Thanks, but I do have -Fl/opt/arcom/arm-linux/lib/* in the script and /opt/arcom/arm-linux/lib contains a libc.a

Re: [fpc-pascal] Help converting h-file

2008-09-20 Thread Koenraad Lelong
Frank de Groot / Rent-a-Geek schreef: I was wondering, what exactly is slow in Lazarus, because I use it via remote desktop over a long-distance WiFi connection and it still is very fast..? From: Koenraad Lelong [EMAIL PROTECTED] P.S. I can't recommend Lazarus. It works but it's slow. I

Re: [fpc-pascal] Help converting h-file

2008-09-21 Thread Koenraad Lelong
Florian Klaempfl schreef: Koenraad Lelong schrieb: Frank de Groot / Rent-a-Geek schreef: I was wondering, what exactly is slow in Lazarus, because I use it via remote desktop over a long-distance WiFi connection and it still is very fast..? P.S. I can't recommend Lazarus. It works but it's

[fpc-pascal] How to build 2.2.2-crosscompiler for arm-linux ?

2008-11-29 Thread Koenraad Lelong
do get my crosscompiler. I did build some crosscompilers with 2.2.2, but I didn't realise that the previous ppcrossarm was used. Now I started with a brand-new virtual machine and I encountered those problems. Any help ? Regards, Koenraad Lelong

Re: [fpc-pascal] How to build 2.2.2-crosscompiler for arm-linux ?

2008-11-30 Thread Koenraad Lelong
Joost van der Sluis schreef: Op zaterdag 29-11-2008 om 19:48 uur [tijdzone +0100], schreef Koenraad Lelong: Hello, In the past I built numerous fpc-crosscompilers for arm-linux but now I can't anymore. What I did : Downloaded and extracted fpcbuild-2.2.2.tar.gz make CPU_TARGET=arm

[fpc-pascal] Daemon question

2009-05-13 Thread Koenraad Lelong
could write to a file after receiving a signal, and then reading this with php. Thinking about it, does php support sending signals ? Back to the books. Before you ask, I'm running Linux. Thanks for any pointers, Koenraad Lelong. ___ fpc-pascal maillist

Re: [fpc-pascal] Daemon question

2009-05-14 Thread Koenraad Lelong
Henry Vermaak schreef: 2009/5/13 Koenraad Lelong fpas...@brouwerij.homelinux.net: Hi, I wrote a daemon monitoring my solar powerstation. It works fine but I want to extend it. ... Now I'm writing this, I could write to a file after receiving a signal, and then reading this with php

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-08 Thread Koenraad Lelong
Marc Santhoff wrote: Am Mo, den 07.03.2005 schrieb Koenraad Lelong um 22:36: Hi, I'm trying to make an interface to a kind of library, but I'm stuck. Any pointers are welcome. There is a C-header file, but this is common for a number of C-modules. If I translate (h2pas) this file, and use

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-12 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: My question : is the linker not smart enough to find out by itself where to look for those missing object files ? Not sure if I understand your question, but as Marc already mentioned, you can control this with the -k-L compiler switch. You can also control the way the

Re: [fpc-pascal] RE: Help needed with interfacing to C-object-files.

2005-03-13 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: I still don't understand what sort of c package you have that generates a bunch of object files, but doesn't create a shared library or static archive. Does it have its own makefile or configure script? Sometimes adding --enable-shared or --enable-static to configure will

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-14 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: If you want to take a look, I've put it on http://users.edpnet.be/~koenraad/www Okay, try this... In your ulinuxgnu300 directory, type: make clean make linux ar -r libonewire.a *.o ranlib libonewire.a And then move the resulting libonewire.a file into a directory

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-14 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: If you want to take a look, I've put it on http://users.edpnet.be/~koenraad/www Okay, try this... In your ulinuxgnu300 directory, type: make clean make linux ar -r libonewire.a *.o ranlib libonewire.a And then move the resulting libonewire.a file into a directory

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-16 Thread Koenraad Lelong
Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... About the beer, it's pretty close. 1-wire devices are devices like termometers, AD-converters and other devices that can be accessed over 1-wire (actually two : gnd). And I would like to use these thermometer-devices with my Zaurus PDA to measure

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Koenraad Lelong wrote: Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... ... Second question : are c-double types and fpc-double types compatible ? This must be : c-float and fpc-double. Sorry for that. Koenraad. ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Marc Santhoff wrote: Am Di, den 08.03.2005 schrieb Koenraad Lelong um 21:51: Marc Santhoff wrote: Am Mo, den 07.03.2005 schrieb Koenraad Lelong um 22:36: Hi, I'm trying to make an interface to a kind of library, but I'm stuck. Any pointers are welcome. There is a C-header file

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: My question : is the linker not smart enough to find out by itself where to look for those missing object files ? Not sure if I understand your question, but as Marc already mentioned, you can control this with the -k-L compiler switch. You can also control the way the

[fpc-pascal] Problem compiling new compiler

2005-09-27 Thread Koenraad Lelong
]: *** [packages_base_smart] Fout 2 make[1]: Leaving directory `/home/koenraad/fpc/fpc' make: *** [build-stamp.i386-linux] Fout 2 I think the error is the linker complaining about cannot find -lc, but I can't find out what is actually wrong. Any pointers ? TIA, Koenraad Lelong

Re: [fpc-pascal] Problem compiling new compiler

2005-09-30 Thread Koenraad Lelong
]: Leaving directory `/home/koenraad/fpc/fpc' make: *** [build-stamp.i386-linux] Fout 2 [EMAIL PROTECTED]:~/fpc/fpc Can you give more hints ? TIA Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Setting bit in array of byte

2005-10-01 Thread Koenraad Lelong
: bitacc(WRITE_FUNCTION, bitacc(READ_FUNCTION,0,i,SerialNum[portnum][0]), (short)(i * 2 + 1), sendpacket[pos]);} Executing the code gives an an access violation exception. What am I doing wrong ? I included some debugging code and it seems accessing buf^[nbyt] is the problem. TIA Koenraad

Re: [fpc-pascal] Setting bit in array of byte

2005-10-01 Thread Koenraad Lelong
Michalis Kamburelis wrote: Koenraad Lelong wrote: ... array of byte is a dynamic array. It's a pointer, to data and to some internal fields. ^array of byte is a pointer to a pointer to data. You don't want this. What you probably want is something like type TByteArray = array[0..MaxInt

[fpc-pascal] How to make a binding or wrapper ?

2005-11-14 Thread Koenraad Lelong
Hi, I'm making an application but to have it work like I want I need to make a binding or a wrapper (is there a diiference ?) to some external software. Are there documents that can be used to learn how to do this ? Regards, Koenraad Lelong. ___ fpc

[fpc-pascal] Setting library-path

2005-12-20 Thread Koenraad Lelong
for files, only for crti.o (and later on crtn.o) only two paths are searched : /lib and /usr/lib. Can someone please point me at what I'm missing here ? My command-line : ppcrossarm -Xc -Xr/opt/arcom/arm-linux/lib -FUunits/arm-linux -Fl/opt/arcom/arm-linux/lib fpctris.pp Thanks, Koenraad Lelong. P.S

Re: [fpc-pascal] GTK2 and arm-linux

2005-12-27 Thread Koenraad Lelong
Den Jean wrote: On Monday 26 December 2005 02:10 pm, Koenraad Lelong wrote: Hi, Has anyone successfully used the GTK2-library for an arm-processor ? Today I tried the helloworld-demoes, which segfault. I tried gdb but The Zaurus does not come with Gtk(2). Only Qt/E (ie Qtopia). Did you

Re: [fpc-pascal] GTK2 and arm-linux [SOLVED]

2006-01-07 Thread Koenraad Lelong
Koenraad Lelong schreef: Koenraad Lelong wrote: Hi, Has anyone successfully used the GTK2-library for an arm-processor ? Today I tried the helloworld-demoes, which segfault. I tried gdb but didn't find anything (gdb is brand new for me, so without much more reading it will remain so I fear

  1   2   >