Re: [Lazarus] Error Compiling Lazarus: tageometry
22.05.2014 5:44, Daniel Gaspary пишет: Hi, I am trying to compile lazarus trunk with fpc 2.7.1(Rev 27809), but the error bellow is being raised: tageometry.pas(374,85) Error: Asm: [sqrtsd mem128,xmmreg] invalid combination of opcode and operands My OS is Linux(Kubuntu 14.04), 64 bits. I'm using LCL_PLATFORM=qt The IDE is compiled without problems with fpc 2.6.4 on the same environment. There is some time I don't try to compile Lazarus, so I think could be my mistake and ask here before, avoiding open an unnecessary bugtracker issue. That could be caused by r27809, which enables SSE instructions for calculating square roots but apparently lacks proper adjustments to spilling code. I'll try to fix it ASAP. Regards, Sergei -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error Compiling Lazarus: tageometry
Hi, I am trying to compile lazarus trunk with fpc 2.7.1(Rev 27809), but the error bellow is being raised: tageometry.pas(374,85) Error: Asm: [sqrtsd mem128,xmmreg] invalid combination of opcode and operands My OS is Linux(Kubuntu 14.04), 64 bits. I'm using LCL_PLATFORM=qt The IDE is compiled without problems with fpc 2.6.4 on the same environment. There is some time I don't try to compile Lazarus, so I think could be my mistake and ask here before, avoiding open an unnecessary bugtracker issue. Thank You. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
[cut] Friends, Robson Dantas de Aguiar is a Brazilian, I don't know what his problem is, but he always insults many members of open lists which he also participates, for many years. However, in my case, it happened things more serious. He said I was a thief, saying libel and slander against my name, and he also threatened me and my family. How it took drastic proportions, and I saw my name being damaged publicly in groups, lists and foruns about programmation, I took severe attitudes, I looked for a police station, and I opened a bulletin about the incident. Therefore, according to the police orientations I received, the case will be investigated, and they asked me categorically to leave the case with them, and not to respond anything more to Robson, because if he was convicted and there were more people involved, they would receive a subpoena, and they would be questioned by the police. So, I ask that this topic finishes here, because this is a list of Lazarus discussion, and this kind of topic is not good for our community. Best regards, -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TIpHTMLPanel bug and extension
Hi, Where report bugs for TurboPower IpHTMLPanel? I don't see category for this package in mantis bugtracker. ***Bug*** I have html table. I want to add new rows on runtime by creating new node TIpHtmlNodeTR.Create() to avoid reloading and reparsing whole HTML. Table can contain thousands rows and this trick speed up adding new row extremely. But there is a bug which I could not find while debugging. When you add new row, all rows losing its Align and VAlign property (seems like set to default Left and Top). I even tried to enumerate all TD nodes and set it again to center but it doesn't help. See attached demo. Maybe someone who ported this library could look at this? Demo: http://ovh.to/KsMZ3T ***Extension*** New property for TIpHtmlNodeIMG.FreePicture . This flag check if private FPicture object should be freed. So everywhere where code is: Code: (pascal) if FPicture <> Owner.DefaultImage then begin {!!.10} FPicture.Free; {!!.10} FPicture := nil; {!!.10} end; ... it should be: Code: (pascal) if FPicture <> Owner.DefaultImage then begin {!!.10} if FFreePicture then FPicture.Free; {!!.10} FPicture := nil; {!!.10} end; This is very helpful if you have chat dialog where users have avatars. Instead of creating new instance of TPicture for each message you are just pointing to same instance and free it by your self. This avoid to increase memory usage and you can change graphic without reloading whole HTML. Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Gdb and openocd via lazarus
On Wednesday 21 May 2014 16:43:23 Justin Smyth wrote: > > I can get lazarus to compile my project ok then I can openocd to flash my > board , I can gdb connecting on port OK but I can't get it stop on any > break points.. > I don't know openocd, connection with gdb is described here: http://openocd.sourceforge.net/doc/html/GDB-and-OpenOCD.html#GDB-and-OpenOCD In MSEide the procedure is as follows - I assume same as in Lazarus: In 'Start gdb server command run target' write the command or script which starts the OpenOCD gdb proxy server (I don't know the command). Set 'Wait before connect' to the GDB server startup time + some reserve. 'Target connection' = remote localhost: Activate 'gdb download' then MSEide will use the gdb "load" command for program download. I suggest to make first a minimal C-program with the gcc toolchain of your target. If that works the FPC adventure can start. ;-) Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 2014-05-21 08:49, Michael Schnell wrote: > I am not interested in EpicTimer in it's current stat, as it needs a GUI > based LCL Widget Type to be compiled, Please READ the answers/replies before spreading FUD. As I said, EpicTimer doesn't have a GUI dependency since 4 years ago when I patched it. Please get an update from Lazarus-CCR's SubVersion repo, or get even later code from my Github repo (details posted in another message). Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
op 21-05-14 15:59, Justin Smyth schreef: I can now compile in lazarus , I have openocd working it detects my board. I need to flash the elf file to my board , I have read open ocd can do , and I read somewhere GBD can do it too Whats the best way to do this ? Also do I need to have openocd running first then compile my program ? ( then flash ??) Kind Regards Justin Justin, Compiling and debugging are separate processes. So you can e.g. compile somewhere, transfer the elf-file to your debugging station, flash your processor and debug. So no, openocd does not need to run to *compile*. What I do (but hope to do with lazarus) : Start openocd, it should detect your board. In another terminal-session, telnet to localhost port . For my processor (but I think it should be for all processors) I do : "reset halt" to stop the processor. Then I erase the processor : "stm32f1x mass_erase 0" (that's specific for the stm32f1x-processors). Then I can program : "flash write_image " After that you can start the processor : "reset" Debugging should be done like this : start your arm-none-eabi-gdb. I used tui as parameter : TextUserInterface. I have a .gdbinit file in my home-directory containing : "target extended-remote localhost:" This connects gdb to openocd. Unfortunately, I don't know text-based gdb enough to give more details. Depending on your processor/debug-interface you could use Insight, that's a stand-alone GUI gdb. Unfortunately, I personally can't use it anymore because openocd 0.8 changed so gdb 6.8 (Insight's version of gdb) can't be used. And I need openocd 0.8 for my processor. Openocd 0.7 has no problems with Insight though. HTH. Koenraad -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
> > OTOH it was Junior who started the thread about timing. Which can be read as a hint that he can ask for help or he can troll, but not both. > > -- > Mark Morgan Lloyd > markMLl .AT. telemetry.co .DOT. uk Yes, he can. He's been doing this for years, you can find other occurences in the forum, the Lazarus-BR ML and IIRC in this ML too. He probably has some mental issue. I'm not to criticize people who are kind enough/helpful/neighborly to a guy who ask vague questions about the same old timing problem and have no public projects but pretends (or naively intend) to write a complex game, but it's just what happened. At least something good came out of it :) Best regards, Flávio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Gdb and openocd via lazarus
Hi folks I can get lazarus to compile my project ok then I can openocd to flash my board , I can gdb connecting on port OK but I can't get it stop on any break points.. Also should I see once it connects with gdb something change in openocd ? With the LPC1343 chipset do I need to do anything special before running my own code ? I am just doing a loop with some break points in it to see I can see it working. Kind Regards Justin From: Justin Smyth [mailto:delph...@smythconsulting.net] Sent: Saturday, 17 May 2014 10:02 AM To: Lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] Gdb and openocd via lazarus Hi folks I remember a while ago Michael ring had someway of modified version of Lazarus to connect to gdb spawned from a openocd session , is this still possible? I am using fpc 2.6.5 and latest Lazarus from the svn ( fpc is from svn fixes2_6 branch) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
I can now compile in lazarus , I have openocd working it detects my board. I need to flash the elf file to my board , I have read open ocd can do , and I read somewhere GBD can do it too Whats the best way to do this ? Also do I need to have openocd running first then compile my program ? ( then flash ??) Kind Regards Justin -Original Message- From: Michael Ring [mailto:m...@michael-ring.org] Sent: Wednesday, 21 May 2014 9:56 PM To: delph...@smythconsulting.net; Lazarus mailing list Subject: Re: [Lazarus] How to tell debugger what executable to use ? I only use trunk lazarus, I cannot tell you if this is also available in the release versions. MiR Am 21.05.14 13:48, schrieb Justin Smyth: > Do I need lazarus 1.2.2 or will latest trunk work ? > > I am using this on a vm on my server which is connected to the > microprocessor board. , so it will only be used for this ,, my own > dev machine is on my laptop > > -Original Message- > From: Michael Ring [mailto:m...@michael-ring.org] > Sent: Wednesday, 21 May 2014 9:35 PM > To: Lazarus mailing list > Subject: Re: [Lazarus] How to tell debugger what executable to use ? > > Project->Compiler Options->other > > You can add those settings in Custom options control > > Target Os (embedded) and Target CPU family can be set in > Project->Compiler Options->Config and Target > > The compiler can be set in > > Project->Compiler Options->Compiler Commands, in Compiler Command edit > Project->field > > Use the Test button to see if all is complete. > > Unfortunaltely the debugger cannot be set on project level, you need > to set it in > > Tools->Options->Debugger > > and set it back when you want to debug a windows project. > > > Am 21.05.14 13:12, schrieb Justin Smyth: >> I'd like to know more , I am doing the same thing but from windows >> for a NXP LPC 1343 board. >> >> >> I have recently got FPC 2.6.4 svn -27804 running on Lazarus 1.3 win32 >> i386 Trunk ( SVN 45035 ) >> >> >> I don't see this version having much debugging for embedded arm plus >> for my chipset I am missing the -w switch I need to pass to >> ppcrossarm.exe ( I have to tell lazarus on win32) >> >> The chipset I am using is - LPC1343FBD48 >> >> I have to pass this to fpc / ppcrossarm >> >> -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m >> >> Do you have any clues on how to set up lazarus to pass in the -w >> command to the compiler ? >> >> >> Kind Regards >> >> >> Justin >> >> -Original Message- >> From: Koenraad Lelong [mailto:lazar...@de-brouwerij.be] >> Sent: Wednesday, 21 May 2014 8:22 PM >> To: Lazarus mailing >> Subject: [Lazarus] How to tell debugger what executable to use ? >> >> Hi, >> >> I'm trying to use lazarus as a debugging-frontend for arm-embedded. >> I managed to configure lazarus to compile my source into >> arm-embedded-code for the STM32F103-processor. >> My next step is to configure lazarus to debug the code. >> When I do nothing, the debugger complains that project1 does not >> exist (used path is OK), which is true because that file really does >> not exist and should not exist. It's an *elf-file* (extension : .elf) >> that > should be used. >> If I use gdb-cli I also have to use the elf-file. So how do I tell >> lazarus to use that elf-file ? >> I configured lazarus to use arm-none-eabi-gdb as debugger, connect to >> localhost, port . Which is the port openocd uses to let the >> debugger have control. >> >> I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. >> On a linux-machine. >> >> P.S. is there a way to send "monitor" commands to the debugger ? That >> way I could program my chip. >> >> Thanks, >> >> Koenraad.. >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Form in tab on Windows=>Failed to create win32 control, error: 0
In Turbobird https://github.com/motaz/turbobird when connected to a database, going to views/right click, Display View DDL gives an error message instead of the expected form in a tab. Error message: Failed to create win32 control, error: 0 : The operation completed succesfully It occurs - in the development version (Laz trunk, as well as Laz 1.2.2) as well as release version TurboBird for Win32 1.0.2 - on my Windows7 system, as well as a Windows 2000 system It does NOT occur on Wine on Debian unstable. No problems on Linux. Other forms that are created in a similar way work ok. The form is being created in a tabsheet: procedure TfmMain.lmDisplayViewClick(Sender: TObject); ... // Fill ViewView grid ATab:= TTabSheet.Create(self); ATab.Parent:= PageControl1; fmViewView:= TfmViewView.Create(nil); fmViewView.Parent:= ATab; if I comment out the last line, the bug does not occur. Is this code incorrect or is there a problem with tabsheets and this form? Thanks, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
On Wednesday 21 May 2014 12:21:41 Koenraad Lelong wrote: > Hi, > > I'm trying to use lazarus as a debugging-frontend for arm-embedded. [...] > > P.S. is there a way to send "monitor" commands to the debugger ? That > way I could program my chip. > MSEide has support for such scenarios: http://mseide-msegui.sourceforge.net/pics/gdbtarget.png I use it with "AVR ONE!" and Segger J-Link interface. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/21/2014 02:28 PM, Sven Barth wrote: Search for Lazarus-CCR on SourceForge, select SVN at the top and navigate to components/epiktimer. Works. Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
I dont know the answer, sa I do not have that scenario myself. It would help, if you can specify which commands, to send to gdb, if you run gdb outside lazarus. In Lazarus, There is also Menu: "Run" > "Run Parameter" which allaws to set the "Host application". That is the exe gdb should debug, e.g. if your project is a library, and you nneed to specify an exe that loads the library. - No idea about "monitor". But the IDE has 2 "developer" modes.(They are for developing the gdb integration. They allow directly sending commands to GDB, without checking them. However sending the wrong command, and your IDE/GDB communication breaks, and you loose the debug session. Sending commands only works, when the app is paused. You need to define DBG_WITH_DEBUGGER_DEBUG DBG_WITH_GDB_WATCHES and then recompile the IDE DBG_WITH_DEBUGGER_DEBUG There will be an TEdit at the bottom of the "Debug Output" Window. It can be used to send command DBG_WITH_GDB_WATCHES You can enter special watches, that will execute. They must start with a ">" (You can use the eval/modify window) >ptype ToOo Warning: In both cases, sending any command that performs running/stepping, and the IDE willloose the session. On 21/05/2014 11:21, Koenraad Lelong wrote: Hi, I'm trying to use lazarus as a debugging-frontend for arm-embedded. I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor. My next step is to configure lazarus to debug the code. When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port . Which is the port openocd uses to let the debugger have control. I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine. P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip. Thanks, Koenraad.. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
Am 21.05.2014 12:06 schrieb "Michael Schnell" : > > On 05/21/2014 11:26 AM, Sven Barth wrote: >> >> >> >> Did you even take a look at the current state? The EpikTimer unit only requires units from the FCL and the RTL. Additionally Graeme uses it in his fpGui projects which doesn't provide a "GUI based LCL widget type" either... >> >> > Sounds great. > > Trying to find the sources... Search for Lazarus-CCR on SourceForge, select SVN at the top and navigate to components/epiktimer. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
This thread is going as far than I can think... What I can not understand is the problem with an opensource project... 2014-05-21 6:33 GMT-03:00 Junior : > Not true I do not have two names, merely posted an off-topic. > > Em 21-05-2014 06:18, Mark Morgan Lloyd escreveu: > > leledumbo wrote: >> >>> This message (spam) is from the same author with dual identity, a.k.a >>> Robson. >>> >>> I received insults in pvt. This is the famous "hue hue br br br" >>> (http://knowyourmeme.com/memes/huahuehuahue). Therefore, >>> Robson/Lazarus.linux/Junior.linux/others is just a flamer, who that >>> delights >>> causing flames/trolls in Delphi/Lazarus/Linux lists. >>> >>> Could it be the same shit as this: >>> https://github.com/leledumbo/QTemplate/issues/2 ? >>> >> >> OTOH it was Junior who started the thread about timing. Which can be read >> as a hint that he can ask for help or he can troll, but not both. >> >> > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- William de Oliveira Ferreira -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
op 21-05-14 13:35, Michael Ring schreef: ... Unfortunaltely the debugger cannot be set on project level, you need to set it in Tools->Options->Debugger That's where I configured the "remote gdb" options. But how do I tel it to use an elf-file ? Does lazarus svn have more possibilities ? Koenraad. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
I only use trunk lazarus, I cannot tell you if this is also available in the release versions. MiR Am 21.05.14 13:48, schrieb Justin Smyth: Do I need lazarus 1.2.2 or will latest trunk work ? I am using this on a vm on my server which is connected to the microprocessor board. , so it will only be used for this ,, my own dev machine is on my laptop -Original Message- From: Michael Ring [mailto:m...@michael-ring.org] Sent: Wednesday, 21 May 2014 9:35 PM To: Lazarus mailing list Subject: Re: [Lazarus] How to tell debugger what executable to use ? Project->Compiler Options->other You can add those settings in Custom options control Target Os (embedded) and Target CPU family can be set in Project->Compiler Options->Config and Target The compiler can be set in Project->Compiler Options->Compiler Commands, in Compiler Command edit Project->field Use the Test button to see if all is complete. Unfortunaltely the debugger cannot be set on project level, you need to set it in Tools->Options->Debugger and set it back when you want to debug a windows project. Am 21.05.14 13:12, schrieb Justin Smyth: I'd like to know more , I am doing the same thing but from windows for a NXP LPC 1343 board. I have recently got FPC 2.6.4 svn -27804 running on Lazarus 1.3 win32 i386 Trunk ( SVN 45035 ) I don't see this version having much debugging for embedded arm plus for my chipset I am missing the -w switch I need to pass to ppcrossarm.exe ( I have to tell lazarus on win32) The chipset I am using is - LPC1343FBD48 I have to pass this to fpc / ppcrossarm -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m Do you have any clues on how to set up lazarus to pass in the -w command to the compiler ? Kind Regards Justin -Original Message- From: Koenraad Lelong [mailto:lazar...@de-brouwerij.be] Sent: Wednesday, 21 May 2014 8:22 PM To: Lazarus mailing Subject: [Lazarus] How to tell debugger what executable to use ? Hi, I'm trying to use lazarus as a debugging-frontend for arm-embedded. I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor. My next step is to configure lazarus to debug the code. When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port . Which is the port openocd uses to let the debugger have control. I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine. P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip. Thanks, Koenraad.. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
Do I need lazarus 1.2.2 or will latest trunk work ? I am using this on a vm on my server which is connected to the microprocessor board. , so it will only be used for this ,, my own dev machine is on my laptop -Original Message- From: Michael Ring [mailto:m...@michael-ring.org] Sent: Wednesday, 21 May 2014 9:35 PM To: Lazarus mailing list Subject: Re: [Lazarus] How to tell debugger what executable to use ? Project->Compiler Options->other You can add those settings in Custom options control Target Os (embedded) and Target CPU family can be set in Project->Compiler Options->Config and Target The compiler can be set in Project->Compiler Options->Compiler Commands, in Compiler Command edit Project->field Use the Test button to see if all is complete. Unfortunaltely the debugger cannot be set on project level, you need to set it in Tools->Options->Debugger and set it back when you want to debug a windows project. Am 21.05.14 13:12, schrieb Justin Smyth: > I'd like to know more , I am doing the same thing but from windows > for a NXP LPC 1343 board. > > > I have recently got FPC 2.6.4 svn -27804 running on Lazarus 1.3 win32 > i386 Trunk ( SVN 45035 ) > > > I don't see this version having much debugging for embedded arm plus > for my chipset I am missing the -w switch I need to pass to > ppcrossarm.exe ( I have to tell lazarus on win32) > > The chipset I am using is - LPC1343FBD48 > > I have to pass this to fpc / ppcrossarm > > -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m > > Do you have any clues on how to set up lazarus to pass in the -w > command to the compiler ? > > > Kind Regards > > > Justin > > -Original Message- > From: Koenraad Lelong [mailto:lazar...@de-brouwerij.be] > Sent: Wednesday, 21 May 2014 8:22 PM > To: Lazarus mailing > Subject: [Lazarus] How to tell debugger what executable to use ? > > Hi, > > I'm trying to use lazarus as a debugging-frontend for arm-embedded. > I managed to configure lazarus to compile my source into > arm-embedded-code for the STM32F103-processor. > My next step is to configure lazarus to debug the code. > When I do nothing, the debugger complains that project1 does not exist > (used path is OK), which is true because that file really does not > exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. > If I use gdb-cli I also have to use the elf-file. So how do I tell > lazarus to use that elf-file ? > I configured lazarus to use arm-none-eabi-gdb as debugger, connect to > localhost, port . Which is the port openocd uses to let the > debugger have control. > > I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. > On a linux-machine. > > P.S. is there a way to send "monitor" commands to the debugger ? That > way I could program my chip. > > Thanks, > > Koenraad.. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
Project->Compiler Options->other You can add those settings in Custom options control Target Os (embedded) and Target CPU family can be set in Project->Compiler Options->Config and Target The compiler can be set in Project->Compiler Options->Compiler Commands, in Compiler Command edit field Use the Test button to see if all is complete. Unfortunaltely the debugger cannot be set on project level, you need to set it in Tools->Options->Debugger and set it back when you want to debug a windows project. Am 21.05.14 13:12, schrieb Justin Smyth: I'd like to know more , I am doing the same thing but from windows for a NXP LPC 1343 board. I have recently got FPC 2.6.4 svn -27804 running on Lazarus 1.3 win32 i386 Trunk ( SVN 45035 ) I don't see this version having much debugging for embedded arm plus for my chipset I am missing the -w switch I need to pass to ppcrossarm.exe ( I have to tell lazarus on win32) The chipset I am using is - LPC1343FBD48 I have to pass this to fpc / ppcrossarm -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m Do you have any clues on how to set up lazarus to pass in the -w command to the compiler ? Kind Regards Justin -Original Message- From: Koenraad Lelong [mailto:lazar...@de-brouwerij.be] Sent: Wednesday, 21 May 2014 8:22 PM To: Lazarus mailing Subject: [Lazarus] How to tell debugger what executable to use ? Hi, I'm trying to use lazarus as a debugging-frontend for arm-embedded. I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor. My next step is to configure lazarus to debug the code. When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port . Which is the port openocd uses to let the debugger have control. I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine. P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip. Thanks, Koenraad.. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to tell debugger what executable to use ?
I'd like to know more , I am doing the same thing but from windows for a NXP LPC 1343 board. I have recently got FPC 2.6.4 svn -27804 running on Lazarus 1.3 win32 i386 Trunk ( SVN 45035 ) I don't see this version having much debugging for embedded arm plus for my chipset I am missing the -w switch I need to pass to ppcrossarm.exe ( I have to tell lazarus on win32) The chipset I am using is - LPC1343FBD48 I have to pass this to fpc / ppcrossarm -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m Do you have any clues on how to set up lazarus to pass in the -w command to the compiler ? Kind Regards Justin -Original Message- From: Koenraad Lelong [mailto:lazar...@de-brouwerij.be] Sent: Wednesday, 21 May 2014 8:22 PM To: Lazarus mailing Subject: [Lazarus] How to tell debugger what executable to use ? Hi, I'm trying to use lazarus as a debugging-frontend for arm-embedded. I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor. My next step is to configure lazarus to debug the code. When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port . Which is the port openocd uses to let the debugger have control. I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine. P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip. Thanks, Koenraad.. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to tell debugger what executable to use ?
Hi, I'm trying to use lazarus as a debugging-frontend for arm-embedded. I managed to configure lazarus to compile my source into arm-embedded-code for the STM32F103-processor. My next step is to configure lazarus to debug the code. When I do nothing, the debugger complains that project1 does not exist (used path is OK), which is true because that file really does not exist and should not exist. It's an *elf-file* (extension : .elf) that should be used. If I use gdb-cli I also have to use the elf-file. So how do I tell lazarus to use that elf-file ? I configured lazarus to use arm-none-eabi-gdb as debugger, connect to localhost, port . Which is the port openocd uses to let the debugger have control. I'm using lazarus 1.2.2, and fpc svn 27738 as arm-embedded-compiler. On a linux-machine. P.S. is there a way to send "monitor" commands to the debugger ? That way I could program my chip. Thanks, Koenraad.. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/21/2014 10:58 AM, Michael Schnell wrote: vDSO seems like the way to go in Linux. Here the Kernel is supposed to provide a fully user space function that accesses the hardware provided by the arch or emulates it in the best possible way. As a staring point: In /usr/src/linux/Documentation/vDSO there are two C files that show how vDSO can be used without the need to attach to glibc.so. (The old Kernel sources I have at hand right now (Suse 2013) only provide this for X86-64, though, and I did not find more suitable stuff with quick googeling.) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/21/2014 11:23 AM, Sven Barth wrote: Graeme is right with four years. The dependency on LCL units was removed on 18th May 2010. I was just joking, nagging that a ZIP distribution had not been done since that :-[ . -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/21/2014 11:26 AM, Sven Barth wrote: Did you even take a look at the current state? The EpikTimer unit only requires units from the FCL and the RTL. Additionally Graeme uses it in his fpGui projects which doesn't provide a "GUI based LCL widget type" either... Sounds great. Trying to find the sources... -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [LAZARUS] Minilib (was : Any Free/Cheap Async Serial Port Component)
On Sat, May 10, 2014 at 7:49 PM, Koenraad Lelong wrote: > I spoke a bit too soon. I downloaded release (download snapshot). Then I > tried to compile lib/minicommons. I get the same errors I had before : > /lib/mnFields.pas(750,20) Error: Calling convention doesn't match forward > /lib/mnFields.pas(213,14) Hint: Found declaration: > TmnFields.QueryInterface(constref TGuid,out ):LongInt; CDecl; > /lib/mnFields.pas(798,20) Error: Calling convention doesn't match forward > /lib/mnFields.pas(205,14) Hint: Found declaration: > TmnFields._AddRef:LongInt; CDecl; > /lib/mnFields.pas(803,20) Error: Calling convention doesn't match forward > /lib/mnFields.pas(206,14) Hint: Found declaration: > TmnFields._Release:LongInt; CDecl; > Sorry for the delay Ah, that because i am using Windows, i fixed it, try last in "release" branch. Best Regards Zaher Dirkey -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
Not true I do not have two names, merely posted an off-topic. Em 21-05-2014 06:18, Mark Morgan Lloyd escreveu: leledumbo wrote: This message (spam) is from the same author with dual identity, a.k.a Robson. I received insults in pvt. This is the famous "hue hue br br br" (http://knowyourmeme.com/memes/huahuehuahue). Therefore, Robson/Lazarus.linux/Junior.linux/others is just a flamer, who that delights causing flames/trolls in Delphi/Lazarus/Linux lists. Could it be the same shit as this: https://github.com/leledumbo/QTemplate/issues/2 ? OTOH it was Junior who started the thread about timing. Which can be read as a hint that he can ask for help or he can troll, but not both. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
Am 21.05.2014 09:50 schrieb "Michael Schnell" : > > On 05/19/2014 09:00 PM, Graeme Geldenhuys wrote: >> >> >> Tom and I would welcome patches for EpikTimer. > > I am not interested in EpicTimer in it's current stat, as it needs a GUI based LCL Widget Type to be compiled, and my interest regarding timing is the creation of the "ActiveNoGUI" widget type. Did you even take a look at the current state? The EpikTimer unit only requires units from the FCL and the RTL. Additionally Graeme uses it in his fpGui projects which doesn't provide a "GUI based LCL widget type" either... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
Am 21.05.2014 10:59 schrieb "Michael Schnell" : > > On 05/19/2014 09:06 PM, Graeme Geldenhuys wrote: >> >> Correction, it was fixed 4 years ago. :) > > > Seems more like 8 years :-) :-) :-) Graeme is right with four years. The dependency on LCL units was removed on 18th May 2010. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
I will not defend myself because my English is very bad. Short answer: Nobody here has received spam from me. Em 21-05-2014 03:21, Michael Van Canneyt escreveu: On Tue, 20 May 2014, leledumbo wrote: This message (spam) is from the same author with dual identity, a.k.a Robson. I received insults in pvt. This is the famous "hue hue br br br" (http://knowyourmeme.com/memes/huahuehuahue). Therefore, Robson/Lazarus.linux/Junior.linux/others is just a flamer, who that delights causing flames/trolls in Delphi/Lazarus/Linux lists. Could it be the same shit as this: https://github.com/leledumbo/QTemplate/issues/2 ? I don't think anyone here took the accusations serious. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Off Topic] Guys, you know the news?
leledumbo wrote: This message (spam) is from the same author with dual identity, a.k.a Robson. I received insults in pvt. This is the famous "hue hue br br br" (http://knowyourmeme.com/memes/huahuehuahue). Therefore, Robson/Lazarus.linux/Junior.linux/others is just a flamer, who that delights causing flames/trolls in Delphi/Lazarus/Linux lists. Could it be the same shit as this: https://github.com/leledumbo/QTemplate/issues/2 ? OTOH it was Junior who started the thread about timing. Which can be read as a hint that he can ask for help or he can troll, but not both. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/19/2014 09:06 PM, Graeme Geldenhuys wrote: Correction, it was fixed 4 years ago. :) Seems more like 8 years :-) :-) :-) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/19/2014 08:52 PM, Tom Lisjac wrote: There's no question that the component needs an update as the current zip on the Lazarus-ccr was packaged in 2006. SVN is more current and Graeme and I will get together and roll any additional improvements he's made into a new release. Great ! If we need to make improvements to the core measurement routines for better cross platform support, some additional input would be helpful. For hardware timing, I see the following support across processor types: http://en.wikipedia.org/wiki/Hardware_performance_counter Interesting read, indeed. There is a Performance API (PAPI) standard for cross platform access to those counters, but probably not a candidate as it requires OS support. Regarding OS based timing, my experience is limited to Linux and Intel/AMD, so if there's a more universal approach, I'd be very interested in learning more about it. vDSO seems like the way to go in Linux. Here the Kernel is supposed to provide a fully user space function that accesses the hardware provided by the arch or emulates it in the best possible way. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/19/2014 07:54 PM, Graeme Geldenhuys wrote: You are clearly using a very outdated version. That was fixed 2+ years ago. Get the latest code from SubVersion instead of the ZIP download. Right you are, The files contained in the ZIP are dated at max at 10/2006. I never came across any other source. Can you point me to one ? Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/20/2014 05:18 PM, Felipe Monteiro de Carvalho wrote: And most people using Lazarus are using it for desktop apps. While this of course is true, one of the the strategical advantages of fpc/Lazarus above Delphi is that it is inherently cross-platform: multiple CPU archs, multiple OSes, and multiple "WidgetTypes" allow for using it in multiple purposes, including Desktop, embedded, CGI, ... Unfortunately many contributors ignore the non-Desktop uses and just assume a GUI enabled Widget type is available in all projects, even thought the functionality they are working on does not require this. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to program with time in milliseconds?
On 05/19/2014 09:00 PM, Graeme Geldenhuys wrote: Tom and I would welcome patches for EpikTimer. I am not interested in EpicTimer in it's current stat, as it needs a GUI based LCL Widget Type to be compiled, and my interest regarding timing is the creation of the "ActiveNoGUI" widget type. I suppose I some day soon will try to use vDSO directly in the appropriate "interfaces" unit I am working on. Of course I will provide the code I will be using there. Maybe EpikTimer should move to the Git repo of Lazarus-CCR so others could easily clone and share their feature branches (say via Github). IMHO, EpicTimer (or maybe only the "technical" part of same that does not support visibly placing the component) should reside in the FPC RTL (and it's svn), while in the LCL (and it's svn) the "visible" part (e.g. a sibling of the "technical" component) can be done. Generally I am convinced that it is essential for a "quality" unit to _use_ as few stuff as possible, to restrict cross dependencies as much as possible. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus