Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-21 Thread Koenraad Lelong via fpc-pascal
Hi, FWIW, I'm using MQTT via cmd-line. I.e. I call ExecuteProcess(MQTTExec,MQTTStrArr); while MQTTExec is /usr/bin/mosquitto_pub That's on a linux-server. Op 20/10/2022 om 15:57 schreef Bo Berglund via fpc-pascal: On Thu, 20 Oct 2022 11:11:17 +0200, Bo Berglund via fpc-pascal wrote: On Tu

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
FWIW, That array did the trick. Thanks again. But I'll study the wrapper in the near future. Op 25/08/2020 om 18:18 schreef Koenraad Lelong via fpc-pascal: Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my proje

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the reply, I did know of that project. The thing is, at the moment I don't know how to implement that in my project. I'm still studying this. Op 25/08/2020 om 15:55 schreef Luca Olivetti via fpc-pascal: Not what you're asking, but did you try to send the messages yourself in

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my project. I added the same value to rrd, the same way, i.e. a ExecuteProcess with a bunch of parameters. There it works, but no double quotes needed. LAter I will try

[fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, I'm extending an old daemon so it writes the data to MQTT, using mosquitto_pub. To have a correct message (-m ...) I need to include double-quotes. But it seems ExecuteProcess(exec,cmdline) splits the cmdline according some rules if it's a single string. When I tried to do it in a single s

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-29 Thread Koenraad Lelong
Op 29-06-17 om 10:25 schreef Bo Berglund: On Sun, 18 Jun 2017 20:36:11 +0200, Koenraad Lelong wrote: Do you know the SDPO-package ? That has a serial component (SDPOSerial). This has a OnRxData event. Do you mean SDPO or 5DPO (letter S or number 5 at the start)? I googled for SDPO but the

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-18 Thread Koenraad Lelong
Op 18-06-17 om 18:16 schreef Bo Berglund: Hi, Do you know the SDPO-package ? That has a serial component (SDPOSerial). This has a OnRxData event. Just a thought. I used it in the past without problems. HTH Koenraad. ___ fpc-pascal maillist - f

Re: [fpc-pascal] GPIO for pi

2016-07-28 Thread Koenraad Lelong
Op 28-07-16 om 21:53 schreef Bo Berglund: On Thu, 28 Jul 2016 09:12:53 +0200, Koenraad Lelong wrote: I'll ammend the application so users should input the address and port on the form, and give a warning to remove any IO from the pi. Thanks, I received the updated project wit

Re: [fpc-pascal] Test for valid ip address

2016-07-28 Thread Koenraad Lelong
Op 28-07-16 om 10:38 schreef Christo: The in_addr IP address type is a packed record of byte, so if an IP address part larger than 255 is encountered in a string it will be truncated when copied to the byte record using StrToHostAddr. This probably means you have to use some other means of dete

[fpc-pascal] Test for valid ip address

2016-07-28 Thread Koenraad Lelong
Hi, I need a way to test if an string containing an ipv4-address is really an ipv4-address. I tried tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr)); writeln(tmpAddress); if (tmpAddress='0.0.0.0') then begin writeln('Error in IP-address'); IPAddressStr:=tmpAddress; end; When I

Re: [fpc-pascal] GPIO for pi

2016-07-28 Thread Koenraad Lelong
Op 28-07-16 om 00:59 schreef Bo Berglund: On Wed, 27 Jul 2016 21:43:10 +0200, Bo Berglund wrote: Now done updating Raspbian to latest version. And the project compiles! If it works is another story because I do not understand what to do with a form with a long list of checkboxes without ex

Re: [fpc-pascal] GPIO for pi

2016-07-27 Thread Koenraad Lelong
Op 27-07-16 om 15:52 schreef Bo Berglund: Thanks, I unpacked the zip in my Projects dir on a Raspberry Pi3 running Raspbian. Did nothing else to the files. Then opened the project in Lazarus 1.6 (with FPC 3.0) and executed a compile command. I received an error message so I repeated it again an

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-26 Thread Koenraad Lelong
Op 24-07-16 om 16:29 schreef James Richters: Bo, I also have a raspberry pi project.. I got a hifi-berry card for it and it is streaming audio to a central audio system, I'm using VLC media player and an app on my cell phone to control it, I have not made use of the GPIO on them yet, but I woul

Re: [fpc-pascal] ARM-embedded & Interrupt numbers

2015-08-24 Thread Koenraad Lelong
Op 14-08-15 om 14:18 schreef Jeppe Johansen: Hi Koenraad, For simplicity I think it would be best to just add them to each unit without too many macros. There's not a clear line for what to include in the RTL units at the moment, but with CMSIS growing more relevant I think it makes sense to ha

[fpc-pascal] ARM-embedded & Interrupt numbers

2015-08-14 Thread Koenraad Lelong
Hi, I'm trying to restart my arm-embedded project. A few years ago I had a working compiler, with some utility-files. I made a new cross-compiler (fpc svn 31290). But I don't find where the interrupt-numbers of an STM32F103xx processor are defined. So I made an inc-file and added that to e.g.

[fpc-pascal] linux ACL

2015-01-23 Thread Koenraad Lelong
Hi, I need to set ACL's on files on Linux. Is there something ready-made in fpc ? Or should I use a TProcess and execute a setfacl that way ? TIA Koenraad ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bi

Re: [fpc-pascal] ARM Linux cross development

2014-01-15 Thread Koenraad Lelong
op 15-01-14 13:31, Michael Schnell schreef: Did you try to create the PC->ARM cross gdb and ARM cross-compile the ARM gdbserver ? It might be that this in fact was why he needed the huge libraries. I did create a cross-gdb, I think. But no server. I'm using JTAG, with openocd. I use Insight

Re: [fpc-pascal] ARM Linux cross development

2014-01-15 Thread Koenraad Lelong
op 15-01-14 11:42, Michael Schnell schreef: - We only could get fpc, gdb, and gdbserver compiled after installing the complete "Code Source" C cross development suite (including Eclipse). We did not find any smaller and more handy package that did work for that purpose. We did not thinks that i

Re: [fpc-pascal] arm-embedded and interrupts

2013-12-11 Thread Koenraad Lelong
op 11-12-13 19:36, Jeppe Græsdal Johansen schreef: What am I doing wrong ? Thanks for any pointers. Koenraad Lelong The Cortex-M RTL units were changed some time ago to favour a more flexible way of doing interrupt handling for embedded devices, by implementing assembler support for weak

[fpc-pascal] arm-embedded and interrupts

2013-12-11 Thread Koenraad Lelong
ocedure SysTick_interrupt; interrupt; begin ... end; What am I doing wrong ? Thanks for any pointers. Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-10-26 Thread Koenraad Lelong
op 24-10-13 13:41, Koenraad Lelong schreef: But I'm unable to locate where that '--build-id' is generated for the linker-commandline. If that is removed (only for arm-embedded ?), the build-id will not be generated, so no wasted memory. Hi, I found where the '--build-i

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

2013-10-24 Thread Koenraad Lelong
op 23-10-13 21:51, Florian Klämpfl schreef: Am 23.10.2013 20:01, schrieb Michael Ring: This article describes what build-id does: https://fedoraproject.org/wiki/Releases/FeatureBuildId your fix should get applied to trunk, the gnu-build section should end up somewhere, best place is flash, it

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

2013-10-23 Thread Koenraad Lelong
op 23-10-13 19:33, Michael Ring schreef: I think I remember that we had a discussion on build-id before, it did not work on linux but I thought that Florian has created a fix and I think I have verified that it works after that on my linux system. Are you on Linux? And using trunk compiler? If y

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

2013-10-23 Thread Koenraad Lelong
op 23-10-13 13:54, Jonas Maebe schreef: On 23 Oct 2013, at 12:05, Koenraad Lelong wrote: fpc@linux:~/src-arm-fpc> fpc -Parm -Tembedded -Wplpc2124 -sh tled1.pp Free Pascal Compiler version 2.7.1 [2013/10/23] for arm Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Embed

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

2013-10-23 Thread Koenraad Lelong
sy to use interrupts, at least, I think, reading the sources of the cross-compiler. I once had a working STM32 cross-compiler but there you had to be very carefull when you defined interrupt-routines. Thanks anyway. Koenraad Lelong. ___ fpc-p

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

2013-10-23 Thread Koenraad Lelong
op 23-10-13 11:33, Tomas Hajny schreef: On Wed, October 23, 2013 11:23, Koenraad Lelong wrote: ... Are you aware of compiler option -s (or -sh, but that is the default for -s if I remember correctly)? Tomas Hi Tomas, fpc@linux:~/src-arm-fpc> fpc -Parm -Tembedded -Wplpc2124 -sh tled1

[fpc-pascal] Using arm-embedded-fpc

2013-10-23 Thread Koenraad Lelong
lso tried this with binutils-2.21.1 with the same problem. Is there a way to see what parameters fpc generates to invoke the linker ? I would be very gratefull when someone can pinpoint my error. Thanks, Koenraad Lelong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] ipv6 address convertion

2013-08-01 Thread Koenraad Lelong
ss:=copy(inparam,1,pos('/',inparam)-1); writeln('netadr : ',NetAddrToStr(StrToNetAddr(inparam))); writeln('hostadr : ',HostAddrToStr(StrToHostAddr(inparam))); writeln('netadr : ',NetAddrToStr(StrToNetAddr(address))); writeln('hostad

Re: [fpc-pascal] Program not running

2013-05-29 Thread Koenraad Lelong
Op 29-05-13 18:16, Thomas Schatzl schreef: There's snapshot on the ftp. Downloaded ftp://ftp.freepascal.org/pub/fpc/snapshot/v27/arm-linux-armhf/ Should I do this "native" ? Copied the contents to /usr Tried fpc -i, shows fpc 2.6.2, for armel. Is there some mistake ? Since it seems pos

Re: [fpc-pascal] Program not running

2013-05-29 Thread Koenraad Lelong
Op 27-05-13 21:20, Koenraad Lelong schreef: Hi, .. A suggestion on the hardkernel-forum said it might be an armhf problem. Is it prossible to compile fpc from armhf ? Should I do this "native" ? I mean, I have an fpc running on the hardware, but it's an armel, at least I

[fpc-pascal] Program not running

2013-05-27 Thread Koenraad Lelong
rld not a dynamic executable A bare fpc-program gives the same results. program test; begin writeln('tfpc-test'); end. Commandline to compile this : ./ppcarm test -Sc -FEbin -FUdcu -Fufpcunits -Iufpcunits Running those same executables on a Raspberry Pi works OK. Than

[fpc-pascal] Not working download-link

2013-05-26 Thread Koenraad Lelong
is affected (I tried a few). 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-03-03 Thread Koenraad Lelong
thout it I still 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.freepasca

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

2013-02-28 Thread Koenraad Lelong
ting to do that. But a whole record could 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] Place of elements in record

2013-02-28 Thread Koenraad Lelong
27;s suited for the project I don't know yet. Other solutions ? Mmm, writing things out clears the mind. I think it would be better to write the whole record. Thanks for your input. Regards, Koenraad Lelong ___ fpc-pascal mail

Re: [fpc-pascal] pascal compiler for ardurino

2013-02-27 Thread Koenraad Lelong
d I'm 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.o

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

2013-02-18 Thread Koenraad Lelong
OCESSOR=lpc2124 fpc -Parm -Tembedded -Wp$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] Compiling arm-embedded fpc

2013-02-18 Thread Koenraad Lelong
error exitcode (normal if you did not specify 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-15 Thread Koenraad Lelong
his when this problem is solved, but anyone can use it. I'm going 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-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 differ

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

2013-01-30 Thread Koenraad Lelong
king stage 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 : Freepas

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread Koenraad Lelong
an look into the problems. 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-27 Thread Koenraad Lelong
be linked. I have to redo some things to note what I am 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.freepasc

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

2013-01-24 Thread Koenraad Lelong
e segmentation fault. And I 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 fo

Re: [fpc-pascal] Embeded ARM Examples.

2013-01-24 Thread Koenraad Lelong
ings (also 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/mailma

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

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

[fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Koenraad Lelong
5 in ?? () #12 0x00415bc7 in ?? () #13 0x008dcb90 in ?? () #14 0x0040ff5a in ?? () #15 0x774521c0 in ?? () #16 0x0000 in ?? () (gdb) Regards, Koenraad Lelong ___ fpc-pascal maillist - fpc

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

2012-10-29 Thread Koenraad Lelong
alled. And they need 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 ht

[fpc-pascal] Smartcard & Pascal

2012-08-19 Thread Koenraad Lelong
I know. > > I'm using PCSC-Lite (http://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] Compiling on Raspberry Pi

2012-08-07 Thread Koenraad Lelong
ad no possibility 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

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

2012-06-26 Thread Koenraad Lelong
port 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 L

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 t

[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 : [fpc-pascal] Variable alignment in arm-embedded

2012-06-26 Thread Koenraad Lelong
Anyway, thanks for all help. Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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-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: RE : RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-12 Thread Koenraad Lelong
fset Register) masks off 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 bootl

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 Getmem(pReservedBlo

[fpc-pascal] Variable alignment in arm-embedded

2012-06-07 Thread Koenraad Lelong
e 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: [fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
o 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/ma

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

[fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
$00, // " ($50,$50,$F8,$50,$F8,$50,$50,$00, // # ... Any suggestions how I can correct my code ? Thanks, 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
help, Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Assigning absolute record to variable

2012-05-09 Thread Koenraad Lelong
On 08-05-12 22:41, Koenraad Lelong wrote: Hi, I don't know why but now it works. Sorry for the noise. Regards, Koenraad Lelong. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Assigning absolute record to variable

2012-05-08 Thread Koenraad Lelong
lp you can give, 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-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

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

2012-05-04 Thread Koenraad Lelong
sing 9 bit synchronous transmission. My first 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. _

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

2012-05-04 Thread Koenraad Lelong
f0f30rbitr0, 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, Koenr

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

2012-05-03 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 : [fpc-pascal] Reversing bit-order of byte

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

[fpc-pascal] Reversing bit-order of byte

2012-05-03 Thread Koenraad Lelong
ler is new 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: [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&qu

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 verifie

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 - fpc-pascal@lists.fre

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 readstr(ansis

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 indicate

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

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] 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 u

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 On

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

2012-02-08 Thread Koenraad Lelong
hat have I 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 -

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
think it should be possible to make 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
The controller I'm targetting has 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

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

2012-02-03 Thread Koenraad Lelong
le the applications 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-rc1 for arm-embedded

2011-12-26 Thread Koenraad Lelong
On 12-12-11 09:53, Koenraad Lelong wrote: 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 ?

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-

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

2011-12-08 Thread Koenraad Lelong
arm-elf-ld: Warning: /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 _

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

2011-11-09 Thread Koenraad Lelong
nd I remember using this before. Thanks, 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
writeln('Table open'); except on E: Exception do begin writeln(E.Message); end; end; When I insert values I do : myTable.Params.ParamByName('Field1').Value:='Value1'; myTable.Params.ParamByName('Field2').Value:=

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

2011-10-12 Thread Koenraad Lelong
ors. I'm stuck :-( Regards, 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 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-11 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-11 Thread Koenraad Lelong
like 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-11 Thread Koenraad Lelong
y revision 19167 then those changes shouldn't be there. I'm fairly certain that should build Hi Jeppe, Now I could make my compiler. I also tried to compile a program (downloaded from your site) with the compiler, but I got a whole bunch of warnings. Is there a a way to solve these ? Ma

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

2011-10-09 Thread Koenraad Lelong
STM32/fpc/rtl/embedded' wordt verlaten make[2]: *** [embedded_all] Fout 2 make[2]: Map '/home/koenraad/Downloads/STM32/fpc/rtl' wordt verlaten make[1]: *** [rtl_all] Fout 2 make[1]: Map '/home/koenraad/Downloads/STM32/fpc' wordt verlaten make: *** [base.build-stamp.arm-embedded

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

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, Koenr

[fpc-pascal] InterProcessCommunication

2009-09-06 Thread Koenraad Lelong
do I 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-pasca

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

  1   2   >