[fpc-devel] Compile problem arm-embedded on trunk (and possible solution)

2012-12-31 Thread Michael Ring
Hi, I am currently thinking about switching development from PIC-based microcontrollers (based on mikroe compilers) to ARM Cortex-M3/4 controllers because they seem to be supported by fpc. I have compiled latest binutils for arm based on instructions from the wiki ( ./configure --target=arm-

[fpc-devel] compile error for target arm-embedded trunk, seems to be caused by changes to threadvar

2013-01-10 Thread Michael Ring
I have tried to build the crosscompiler for arm-embedded for both windows and mac host, both builds fail at the same line: /bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O

[fpc-devel] arm-embedded buid broken since rev 23325

2013-01-19 Thread Michael Ring
Today I found some time to research since when excactly arm-embedded does not compile anymore, I found that since revision 23325 compile does not work anymore, can anybody help, it seems that the problem itself is hidden somewhere else in code... Michael Error Message: /bin/mkdir -p /Users/r

Re: [fpc-devel] arm-embedded buid broken since rev 23325

2013-01-19 Thread Michael Ring
ror, the 'only' change is that sysutils gets included in the build. For now, how can I add "-mimplicit-it=thumb" to the as commandline without my small hack? can I put this somewhere in fpc.cfg? Michael Am 19.01.13 16:19, schrieb Florian Klämpfl: Am 19.01.2013 12:18, schrieb

Re: [fpc-devel] arm-embedded buid broken since rev 23325

2013-01-20 Thread Michael Ring
command line you use for compiling? Den 19-01-2013 22:58, Michael Ring skrev: Thank you very much Florian, this problem is now indeed fixed. I have encountered another one: /Users/ring/devel/fpc/rtl/units/arm-embedded/sysutils.s: Assembler messages: /Users/ring/devel/fpc/rtl/units/arm-embedded

[fpc-devel] I have created a openocd debugger-interface for lazarus, now some questions

2013-02-05 Thread Michael Ring
In the last days I have had a nice fight with lazarus-trunk, but it seems I succeeded in the end ;-) I have integrated openocd debugger class as a child of the gdbmi debugger classes, basic code upload & debugging now works for me in lazarus, still has some rough edges, this is why I am seekin

Re: [fpc-devel] I have created a openocd debugger-interface for lazarus, now some questions

2013-02-06 Thread Michael Ring
? Which GDB version is your prefered version for debugging FreePascal? Thank you again, Michael On 05/02/2013 22:14, Michael Ring wrote: I have integrated openocd debugger class as a child of the gdbmi debugger classes, basic code upload & debugging now works for me in lazarus, still has

Re: [fpc-devel] I have created a openocd debugger-interface for lazarus, now some questions

2013-02-07 Thread Michael Ring
Yes, OpenOCD implements a gdbserver so debugging is done via gdb. I did not want to break existing code so I created a new class based on TGDBMIServerDebugger, this has been done before for the ssh based debugging so I followed this road. I will join the german lazarus forum, see you there...

Re: [fpc-devel] I have created a openocd debugger-interface for lazarus, now some questions

2013-02-07 Thread Michael Ring
Am 07.02.13 16:04, schrieb Martin: On 07/02/2013 07:14, Michael Ring wrote: One more thing, do you know why ExecuteCommand is defined as protected and not public in GDBMIDebugger? I need to send some extra commands to GDB to make the remote connection, using ExecuteCommand is an elegant way

[fpc-devel] Is target mips-embedded possible / planned?

2013-02-14 Thread Michael Ring
I have seen a lot of work on mpis platform in svn over the last weeks. Are there plans to create a mips-embedded target or is this strictly mips-linux? I am asking because modern PIC32MX Controllers from Microchip are mips based, I somehow prefer arm-microcontrollers but when you want to build

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-02-17 Thread Michael Ring
This all sounds promising, I can contribute definitions for PIC32MX1/MX2 series of controllers. Michael Am 17.02.13 09:21, schrieb Florian Klämpfl: Am 14.02.2013 23:44, schrieb Michael Ring: I have seen a lot of work on mpis platform in svn over the last weeks. Are there plans to create a

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-02-17 Thread Michael Ring
that I feel the urge to start before you I will definitely let you know, with some guidance I should be able to get at least something basic working... ;-) Michael Am 17.02.13 15:11, schrieb Michel Catudal: Le 2013-02-17 07:48, Michael Ring a écrit : This all sounds promising, I can

[fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-02 Thread Michael Ring
I am not sure if I have hit work in progress code here my arm-embedded app crashes during initialization, the reason is that now exceptions are part of the rtl but there is no properly initialized heapmanager: Procedure InitExceptions; { Must install uncaught exception handler (ExceptPr

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-03 Thread Michael Ring
ation //FinalizeHeap; end. Am 03.03.13 09:52, schrieb Florian Klämpfl: Am 02.03.2013 23:17, schrieb Michael Ring: I am not sure if I have hit work in progress code here my arm-embedded app crashes during initialization, the reason is that now exceptions are part of the rtl but there is no pro

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-03 Thread Michael Ring
using memory at address _stack_top - _stklen - _heapsize Correct ?? Michael Am 03.03.13 11:14, schrieb Sven Barth: On 03.03.2013 11:04, Michael Ring wrote: For a little more flexible solution I would like to ask you one more questions, it may seem dumb to you but I have never been that deep into

[fpc-devel] Thank you for ARMV6M!!!

2013-03-03 Thread Michael Ring
I just saw that armv6m has showed up in the sourcecode of trunk version. You guys are great, thank you very much I just checked, I do have a LPCXpresso LPC812 Board here, now I can put it to good use! Michael ___ fpc-devel maillist - fpc-devel

[fpc-devel] ppcrossarm dies when trying to build embedded rtl (svn 23683)

2013-03-03 Thread Michael Ring
I am running on a mac, building svn 23683 svn 23681 (one before implementation of armv6m) compiles fine. commandline for building was: make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-gw2 -O-" BINUTILSPREFIX=arm-none-eabi- make -C rtl all make

Re: [fpc-devel] Thank you for ARMV6M!!!

2013-03-03 Thread Michael Ring
open source. Michael Am 03.03.13 20:56, schrieb Florian Klämpfl: Am 03.03.2013 19:51, schrieb Michael Ring: I just saw that armv6m has showed up in the sourcecode of trunk version. You guys are great, thank you very much I just checked, I do have a LPCXpresso LPC812 Board here, now

Re: [fpc-devel] ppcrossarm dies when trying to build embedded rtl (svn 23683)

2013-03-03 Thread Michael Ring
>= @_bss_end then +RegisterHeapBlock(_heap_start,_heapsize); + finalization //FinalizeHeap; end. Am 03.03.13 20:09, schrieb Michael Ring: I am running on a mac, building svn 23683 svn 23681 (one before implementation of armv6m) compiles fine. commandline for building was: ma

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-03 Thread Michael Ring
03.03.13 21:45, schrieb Florian Klämpfl: > Am 03.03.2013 21:27, schrieb Michael Ring: >> I have created a new patch, this time it uses the values of the two >> commandline parameters -Ch and -Cs to set the size of Stack and Heap. I >> am not sure if those params were for th

Re: [fpc-devel] ppcrossarm dies when trying to build embedded rtl (svn 23683)

2013-03-03 Thread Michael Ring
Verified, works again on my mac, TnX! Michael Am 03.03.13 23:00, schrieb Florian Klämpfl: Am 03.03.2013 20:09, schrieb Michael Ring: $ $00142333 $00144647 $00144B00 $001AF725 $001970A5 $0003295E make[3]: *** [system.ppu] Error 217 make[2]: *** [embedded_all

Re: [fpc-devel] FPC / Lazarus ARM Embedded Debuging

2013-03-13 Thread Michael Ring
I fould the following announcement: http://article.gmane.org/gmane.comp.debugging.openocd.devel/17362 So ulink is supported by openocd, not sure if ulink2 is compatible with ulink. from what I have googled about ulink2 it seems that it is closely bound to the uVision Debugger from Keil and t

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-13 Thread Michael Ring
Florian, did you find some spare time to work on this? Michael Am 03.03.13 22:59, schrieb Florian Klämpfl: Am 03.03.2013 22:09, schrieb Michael Ring: That would of course be even better, the compiler could calculate if vars+stack+heap fit in the given memory configuration and issue at minimum

Re: [fpc-devel] FPC / Lazarus ARM Embedded Debuging

2013-03-13 Thread Michael Ring
://au.element14.com/stmicroelectronics/st-link/icd-programmer-for-stm8-stm32/dp/1779159 Kind Regards Justin *From:* Michael Ring <mailto:m...@michael-ring.org> *Sent:* Thursday, March 14, 2013 12:25 AM *To:* FPC developers' list <mailto:fpc-devel@lists.freepascal.org> *Subject:* Re

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-16 Thread Michael Ring
Thany you very much, will give it a try later or tomorrow. Michael Am 16.03.13 11:37, schrieb Florian Klämpfl: Am 03.03.2013 11:04, schrieb Michael Ring: In r23853 I committed a patch which creates automatically a heap on the embedded targets if heapmgr is used. Further, sysutils depends now

Re: [fpc-devel] I have created a openocd debugger-interface forlazarus, now some questions

2013-03-19 Thread Michael Ring
s, now some questions On 07/02/2013 23:51, Michael Ring wrote: Index: debugger/debugger.pp === --- debugger/debugger.pp(revision 40204) +++ debugger/debugger.pp(working copy) @@ -3304,6 +3304,7 @@ const OLD_GDB_DBG

[fpc-devel] Compile error for arm-embedded armv6m subtarget

2013-04-20 Thread Michael Ring
I have created some units for nxp cortex-m0 cpu's and have integrated them into the arm-embedded rtl but they fail to assemble, seems that the generated assembler code is not cortex-m0 compatible !!??!!: make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv6m CRO

Re: [fpc-devel] Compile error for arm-embedded armv6m subtarget

2013-04-20 Thread Michael Ring
Sorry, please ignore thismail, this is my fault, I have an error in the cortexm0_start.inc code, sorry! Am 20.04.13 22:12, schrieb Michael Ring: I have created some units for nxp cortex-m0 cpu's and have integrated them into the arm-embedded rtl but they fail to assemble, seems tha

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-13 Thread Michael Ring
lso had a look at the changeset for avr-embedded, there were a lot of changes in the codegen and other places, do you expect that the same will need to be done for mips or was avr a special case? Michael Am 17.02.13 17:44, schrieb Michael Ring: Your timeline sounds fine to me, I am currently q

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-13 Thread Michael Ring
Am 13.05.13 20:36, schrieb Florian Klämpfl: Am 13.05.2013 20:07, schrieb Michael Ring: OK, I got kind of bored last weekend and started to implement mips-embedded target. The crosscompiler builds fine and already shows the list of (not yet implemented) pic32mx controllers, I am now searching

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-14 Thread Michael Ring
Am 14.05.13 08:47, schrieb Michael Schnell: On 05/13/2013 08:07 PM, Michael Ring wrote: ... pic32mx controllers ... BTW.: AFAIK, the PIC controllers (16 and 32 Bit) use a propriety debug interface to be accessed by "PICKit" an "ICD-3" adapters. They do use a gnu base

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-15 Thread Michael Ring
Hi Michel! You are talking about integrating mips into your debugger, what does this mean? Are you talking about Setedit or something else? Michael Am 14.05.13 22:01, schrieb Michel Catudal: Le 2013-05-14 06:13, Marco van de Voort a écrit : In our previous episode, Michael Ring said: I

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-15 Thread Michael Ring
If you find the time to find out how to actually start up & use their gdbserver I will be more than happy to integrate it into lazarus, right now I take what I can get and that seems to be openocd. I have wasted quite some time in trying to make LPC-Link for the LPCExpresso Boards work and I d

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-16 Thread Michael Ring
, that's pretty slow. I will check if a j-link or st-link work better, but I do not have high hopes. But perhaps the ejtagproxy or pic32prog can solve this problem, will keep you posted. Michael Am 16.05.13 08:53, schrieb Michael Schnell: On 05/15/2013 12:11 PM, Michael Ring wrote: If you

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-16 Thread Michael Ring
://github.com/synthetos/PiOCD/wiki/Using-a-Raspberry-Pi-as-a-JTAG-Dongle Michael Am 15.05.13 23:48, schrieb Michel Catudal: Le 2013-05-15 06:11, Michael Ring a écrit : If you find the time to find out how to actually start up & use their gdbserver I will be more than happy to integrate it

Re: [fpc-devel] Is target mips-embedded possible / planned?

2013-05-16 Thread Michael Ring
mance. Michael Am 16.05.13 09:55, schrieb Michael Ring: Nice find, question is why did I not find this link ;-) I etched some testboards yesterday and connected them to my ARM-USB-TINY, openocd detects the chip just fine but Michel was right, flash read performance is a mess, it took two minutes to

[fpc-devel] Problem with fpcmake when doing crossbuild

2013-05-28 Thread Michael Ring
I was having troubles today installing ppcrossarm from trunk, I have a workarround for the problem but I question myself how to really fix the problem: SUBARCH=armv7m make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=$SUBARCH CROSSOPT="-godwarfsets -gw2 -O-" BINUTI

Re: [fpc-devel] Problem with fpcmake when doing crossbuild

2013-05-28 Thread Michael Ring
28.05.13 10:59, schrieb Michael Ring: I was having troubles today installing ppcrossarm from trunk, I have a workarround for the problem but I question myself how to really fix the problem: SUBARCH=armv7m make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=$SUBARCH

Re: [fpc-devel] Problem with fpcmake when doing crossbuild

2013-05-28 Thread Michael Ring
Thank you! Michael Am 28.05.13 14:56, schrieb Yury Sidorov: Fixed in r24626. Your guesswork is right :) Yury. - Original Message - From: Michael Ring To: fpc-devel@lists.freepascal.org Sent: Tuesday, May 28, 2013 1:24 PM Subject: Re: [fpc-devel] Problem with fpcmake when doing

[fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-05-28 Thread Michael Ring
I am currently writing/porting startup code for the pic32 chips, the inline assembler of fpc seems to lack support for some opcodes, any idea how I can workarround this? With grep I found for example mtc1 in opcode.inc, but mtc0 is missing, this opcode is important for the initialization of th

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-05-28 Thread Michael Ring
ichael Am 28.05.13 21:31, schrieb Sergei Gorelkin: 28.05.2013 22:50, Michael Ring пишет: I am currently writing/porting startup code for the pic32 chips, the inline assembler of fpc seems to lack support for some opcodes, any idea how I can workarround this? With grep I found for example mtc1 in opcod

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-05-28 Thread Michael Ring
ub', +'ehb', +'ext', +'ins', +'mfc0', +'mtc0', +'sdbbp', +'wrpgpr', 'end_def' Am 28.05.13 21:49, schrieb Sergei Gorelkin: 28.05.2013 23:40, Michael Ring пишет: Thank you Sergei, I will have a look at that code. I

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-05-29 Thread Michael Ring
05.2013 2:08, Sergei Gorelkin пишет: 29.05.2013 1:26, Michael Ring пишет: I did the changes, parts of the opcodes now work fine, I think I have found the problem with the li + and + mfc0 op-codes, if last parameter is 0 then the asm statement is generated wrong: This works: and$a0,$a0,1

[fpc-devel] Compile error after upgrade to revision 24776.

2013-06-02 Thread Michael Ring
/usr/local/bin/ppc386 -Ur -Xs -O2 -n -Fui386 -Fusystems -Fu/Users/ring/devel/fpc/rtl/units/i386-darwin -Fii386 -FE. -FUi386/units/i386-darwin -dRELEASE -gw2 -di386 -dGDB -dBROWSERLOG -Fux86 -Sew pp.pas paramgr.pas(620,54) Error: Identifier not found "paracgsize" paramgr.pas(640) Fatal: There

Re: [fpc-devel] Compile error after upgrade to revision 24776.

2013-06-02 Thread Michael Ring
compiles again, TnX! Michael Am 02.06.13 16:37, schrieb Jonas Maebe: On 02 Jun 2013, at 16:19, Michael Ring wrote: /usr/local/bin/ppc386 -Ur -Xs -O2 -n -Fui386 -Fusystems -Fu/Users/ring/devel/fpc/rtl/units/i386-darwin -Fii386 -FE. -FUi386/units/i386-darwin -dRELEASE -gw2 -di386 -dGDB

[fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Michael Ring
Hi, perhaps I am overseeing a simple solution for my problem: On the pic32 there are two flash areas, one at 0x9d00 for the main program and another at 0xbfc0 that is called Boot Flash. On reset the program starts in the boot flash at the first address. I have written the startup code

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Michael Ring
symbols in different segments the error is from the .size line. Am 02.06.13 22:51, schrieb Jeppe Græsdal Johansen: Den 02-06-2013 22:41, Michael Ring skrev: Hi, perhaps I am overseeing a simple solution for my problem: On the pic32 there are two flash areas, one at 0x9d00 for the main pr

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Michael Ring
This version worked, thank you for your help! Michael Am 02.06.13 23:20, schrieb Jeppe Græsdal Johansen: Den 02-06-2013 23:15, Michael Ring skrev: Unfortunately that does not seem to work (or I use it wrong): This procedure: procedure _general_exception_handler; assembler; nostackframe

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-06-05 Thread Michael Ring
Thank you, the startup code is compiling now, I will send you a patch with the missing opcodes to have full support of mips32r2 soon. Michael Am 03.06.13 22:04, schrieb Sergei Gorelkin: 29.05.2013 21:44, Michael Ring пишет: This is looking good now on first view, all statements seem to pass

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-06-16 Thread Michael Ring
32', 'dsllv', 'dsra', 'dsra32', 'dsrav', 'dsrl', 'dsrl32', 'dsrlv', 'dsub', 'dsubu', 'end_def' 'la', 'ld', 'ldl', 'ldr', 'li', 'lld', &#x

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-16 Thread Michael Ring
.text.n_pic32mx1xxfxxxb_$$_reset # path: mipsel/ # file: pic32mx_start.inc # indx: 2 .Ll3: jr $ra nop .setmacro .setreorder .endPIC32MX1XXFXXXB_$$_RESET .Lt2: .Le1: .size PIC32MX1XXFXXXB_$$_RESET, .Le1 - PIC32MX1XXFXXXB_$$_RESET .

Re: [fpc-devel] Some Opcodes missing in internal assembler for mips32r2

2013-06-18 Thread Michael Ring
: 16.06.2013 22:17, Michael Ring пишет: I have now browsed through the current mips documentation and have created a file that includes all opcodes, the version they are first in (starting with mips32) and a small comment what the mnemonic does. This file is attached to this mail. The problem here is that

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-18 Thread Michael Ring
; list Objet : Re: [fpc-devel] How can I distribute code in two different memory areas? (.section) Den 17-06-2013 08:20, Sergei Gorelkin skrev: 16.06.2013 23:39, Michael Ring пишет: I had some time this weekend (while beeing grilled by the sun on my balcony) to work on another thing that did not wo

Re: [fpc-devel] where do download BinUtils for ARM - Raspberry Pi?

2013-06-20 Thread Michael Ring
You should better install the native port of lazarus & freepascal on the raspberry and connect the machine to a display/mouse/keyboard. Install latest raspian from http://www.raspberrypi.org/downloads and here's a user-guide for installing lazarus/fpc: http://elinux.org/Lazarus_on_RPi Then y

[fpc-devel] I could use some help on gdb problems with pic32 (missing debuginfo)

2013-06-22 Thread Michael Ring
Hi! I have spent a while trying to figure out what I am doing wrong but I do not have clue. I can compile a binary for pic32 just fine but when I load it into gdb I get an error: Dwarf Error: bad length (0x6f59) in compilation unit header (offset 0x7e + 0) when I look at the file with rea

[fpc-devel] Bug: Alignment issue with dwarf debug_info on mipsel(-embedded)?? code

2013-07-05 Thread Michael Ring
I have now found out why debug symbols get discarded by pic32mx-elf32-gdb. The problem is a bug in the generation of dwarf-debuginfo. My guess is that the problem should also exist in linux target. For mips unaligned data in dward debug info needs to be defined as .4byte and .2byte instead o

Re: [fpc-devel] Bug: Alignment issue with dwarf debug_info on mipsel(-embedded)?? code

2013-07-06 Thread Michael Ring
-elf32- to compile use: ppcrossmipsel -MObjFPC -Scghi -Ch1024 -Cs1024 -Tembedded -Pmipsel -gw2 -vewnhix -l -Cppic32mx -WpPIC32MX220F032C -XPpic32mx-elf32- -FD/usr/local/bin -a -godwarfsets -godwarfmethodclassprefix hello.pas -al -ar Michael Am 05.07.13 22:23, schrieb Michael Ring: I have now foun

Re: [fpc-devel] Bug: Alignment issue with dwarf debug_info on mipsel(-embedded)?? code

2013-07-07 Thread Michael Ring
[20]=( #9'.2byte'#9,#9'.4byte'#9,#9'.8byte'#9 ); Am 07.07.13 09:26, schrieb Florian Klämpfl: Am 05.07.2013 22:23, schrieb Michael Ring: I have now found out why debug symbols get discarded by pic32mx-elf32-gdb. The problem is a bug in the generatio

Re: [fpc-devel] Bug: Alignment issue with dwarf debug_info on mipsel(-embedded)?? code

2013-07-07 Thread Michael Ring
This is looking good now, I can also compile the rtl with enabled debuginfo and this now also loads without error into gdb, thank you very much! Michael Am 07.07.13 17:10, schrieb Florian Klaempfl: Can anybody help with a fix? Do I understand it correctly, that it is sufficient so replace .l

[fpc-devel] Current Trunk does not build for target embedded amd ARM-Cortex-M0 (Introduced in Rev 25370)

2013-09-02 Thread Michael Ring
Trunk for armv7m buils just fine with this commandline: make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-O-" BINUTILSPREFIX=arm-none-eabi- doing the same for armv6m: make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=a

Re: [fpc-devel] Current Trunk does not build for target embedded amd ARM-Cortex-M0 (Introduced in Rev 25370)

2013-09-03 Thread Michael Ring
Working again, thank you! Michael Am 03.09.13 09:00, schrieb Jeppe Græsdal Johansen: Should be fixed in trunk now. Regards, Jeppe Den 03-09-2013 08:44, Michael Ring skrev: Trunk for armv7m buils just fine with this commandline: make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded

[fpc-devel] fpc compiler is unable to link on OSX Mavericks

2013-10-04 Thread Michael Ring
I today installed the GA of Mavericks, it seems that crt1.o was deleted from /usr/lib: [ring@macbookpro devel]$ fpc hello.pas Free Pascal Compiler version 2.6.2 [2013/02/03] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Darwin for i386 Compiling hello.pas Assembling

Re: [fpc-devel] fpc compiler is unable to link on OSX Mavericks

2013-10-04 Thread Michael Ring
'Downloads' anymore on my system, not sure if this is because I updated my system or because they changed the way that the commandline tools are installed. Michael [ring@macbookpro devel]$ fpc hello.pas -XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve

Re: [fpc-devel] fpc compiler is unable to link on OSX Mavericks

2013-10-04 Thread Michael Ring
After xcode-select --install crt1.o is once again visible in /usr/lib. No idea why Apple decided to go this strange way, thank you for your help! Michael Am 04.10.13 14:42, schrieb Jonas Maebe: On 04 Oct 2013, at 14:38, Jonas Maebe wrote: If you did not get a pop-up as described in that th

[fpc-devel] Trunk does not build for arm-embedded since rev 25888

2013-11-01 Thread Michael Ring
I tried today's trunk, unfortunately it does not build: /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/Users/ring/devel/fpc/rtl/units/arm-embedded -darm -dRELEASE -O- -Us -Sg system.pp flt_pac

Re: [fpc-devel] Trunk does not build for arm-embedded since rev 25888

2013-11-01 Thread Michael Ring
OK, thank you! Am 01.11.13 12:10, schrieb Jonas Maebe: On 01/11/13 09:22, Michael Ring wrote: I tried today's trunk, unfortunately it does not build: /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../ar

[fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-10 Thread Michael Ring
Hi, while playing arround I found a strange behaviour that seems to have to do with the fact that writes to bitpacked records are byte aligned. Here are the details: I have create a bitpacked record set for the GPIO Registers of the processor. On Port D of the processor I have 16 LED's, one fo

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Michael Ring
huge number of bits (>8) gets modified at the same time) What do you think? Michael Am 11.12.13 10:34, schrieb Jonas Maebe: On 11 Dec 2013, at 08:43, Michael Ring wrote: The strb command seems to be the problem, documentation from STM states: Each I/O port bit is freely programmable, ho

[fpc-devel] Current 2.11 Snapshot does not compile on windows for i386-linux Target

2006-05-13 Thread Michael Ring
I've downloaded today's snapshot from ftp.freepascal.org. While 2.03 Version cross-compiles on windows for linux the version 2.11 Snapshot doesn't. Here's the Error Output: C:/Programme/fpc/fpcbuild-2.11/fpcsrc/rtl/units/i386-linux -di386 -dRELEASE -Fi../objpas/sysutils ../unix/sysutils.pp

Re: [fpc-devel] Current 2.11 Snapshot does not compile on windows for i386-linux Target

2006-05-14 Thread Michael Ring
Thanks! Vincent Snijders wrote: Michael Ring wrote: I've downloaded today's snapshot from ftp.freepascal.org. While 2.03 Version cross-compiles on windows for linux the version 2.11 Snapshot doesn't. Here's the Error Output: This has been fixed today. Maybe it works

[fpc-devel] Trunk does not compile for armv6m since rev. 26346

2014-01-02 Thread Michael Ring
Checkin Comment was: Optimized support for 32x32 => 64bit multiplications on ARM This code uses UMULL and SMULL to perform the multiplications, which take two 32bit source registers and two 32bit destination registers. ... umull is not supported by cortex-m0 chips ... system.inc(1770,8) Warn

Re: [fpc-devel] Trunk does not compile for armv6m since rev. 26346

2014-01-02 Thread Michael Ring
I tried rev. 26354, the problem is not yet fixed, perhaps Jonas is right and there's more to do... I both tried armv7m and armv6m, both break: ring/devel/fpc/rtl/units/arm-embedded -darm -dRELEASE -O- -gw2 -Fi../objpas/sysutils sysutils.pp dati.inc(80,34) Fatal: Internal error 2002090902 Fatal

[fpc-devel] Illegal chars in cwstring.pp when compiling trunk

2014-01-02 Thread Michael Ring
Does not seem to be a good day today to compile trunk ;-) On my Mac I get this error Message: cwstring.pp(1,1) Fatal: illegal character "'�'" ($BB) cwstring.pp(1,1) Fatal: Compilation aborted make[5]: *** [cwstring.ppu] Error 1 make[4]: *** [darwin_all] Error 2 make[3]: *** [rtl] Error 2 make[2]

Re: [fpc-devel] Trunk does not compile for armv6m since rev. 26346

2014-01-02 Thread Michael Ring
Working again for armv7m and armv6m, thank you! Michael Am 02.01.14 16:24, schrieb Florian Klämpfl: Am 02.01.2014 15:18, schrieb Michael Ring: I tried rev. 26354, the problem is not yet fixed, perhaps Jonas is right and there's more to do... I both tried armv7m and armv6m, both break:

[fpc-devel] arm-embedded target does not compile in trunk since revision 26964 (Some AVR related changes)

2014-03-07 Thread Michael Ring
Error Message is: */bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/Users/ring/devel/fpc/rtl/units/arm-embedded -darm -dRELEASE -O- -gw2

Re: [fpc-devel] arm-embedded target does not compile in trunk since revision 26964 (Some AVR related changes)

2014-03-12 Thread Michael Ring
;p:PFileTextRecChar;flags:longint; pchangeable: boolean); +procedure do_open(var f;p:pChar;flags:longint; pchangeable: boolean); begin end; Am 07.03.14 16:35, schrieb Michael Ring: Error Message is: */bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded /Users/ring/devel/fpc/compiler/ppcrossarm

Re: [fpc-devel] arm-embedded target does not compile in trunk since revision 26964 (Some AVR related changes)

2014-03-12 Thread Michael Ring
Thank you Jeppe, I did not want to look impatient, was just wondering if this problem somehow did not catch attention... ;-) Michael Am 12.03.14 17:41, schrieb Jeppe Græsdal Johansen: Den 12-03-2014 16:51, Michael Ring skrev: As there was no reaction I created a patch, question is if this

[fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-18 Thread Michael Ring
I need to preset 4 longWords at a specific memory location in flash of the microcontroller that define the startup behaviour of the chip. I came up with two solutions, but both more feel like a hack than a proper way to do things, any ideas how to do this better? a) by hijacking the declara

[fpc-devel] DWARF Error on mipsel-embedded target

2014-04-19 Thread Michael Ring
I knew for a while that dwarf output for the target is not 100% correct, I now found one example of a wrongly generated debuginfo, could somebody please help me and fix this problem in compiler? I see the problem both with dwarf2 or dwarf4 debug info, with dwarf2 the error message is a little

Re: [fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-23 Thread Michael Ring
Thanks, but does not solve the problem, it's not about reading the data, it's about defining the data so that it is included in the elf file in the correct section so that the microcontroller is programmed with the values when the elf file is uploaded to the microcontroller. Michael Am 23.04

Re: [fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-23 Thread Michael Ring
: http://wiki.freepascal.org/TARGET_Embedded_Mipsel Michael Am 23.04.14 14:19, schrieb Michael Schnell: On 04/23/2014 10:34 AM, Michael Ring wrote: Thanks, but does not solve the problem, it's not about reading the data, it's about defining the data so that it is included in the elf f

Re: [fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-23 Thread Michael Ring
Am 23.04.14 15:30, schrieb Michael Schnell: Some questions that might put us in a working position: Can you state the cause why xc32 is not usable ? binutils from xc32 is not usable, I could not link correctly when I used th xc32- tools. For our project (from your first message seemingly diff

Re: [fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-23 Thread Michael Ring
Am 23.04.14 15:35, schrieb Michael Schnell: The wiki page speaks of gdb. Does same use PICKit a similar tool to connect to the chip ? If mplabx is you primary development env then you do not need another debugger. The JLink-Probe is for those like me that do not want to work in a C-Style IDE.

Re: [fpc-devel] Need an elegant way to preset a specific memory area in elf files

2014-04-23 Thread Michael Ring
Thank you for this tip Sergei, this seems to work just fine! Michael Am 23.04.14 10:44, schrieb Sergei Gorelkin: 23.04.2014 12:34, Michael Ring пишет: Thanks, but does not solve the problem, it's not about reading the data, it's about defining the data so that it is included in th

[fpc-devel] dwarf error when using const on mipsel arch

2014-06-20 Thread Michael Ring
Hi! consts seem to sometimes mix up dwarf debuginfo. the following simple program: program hello; const const1: longword = 1; // const2: longword = 1; // const3: longword = 1; // const4: longword = 1; //var // i : integer; begin end. causes the following dwarf error on load in gdb: Re

[fpc-devel] libndsfpc makefile not created correctly on trunk

2014-08-04 Thread Michael Ring
I cannot build target arm-embedded on trunk because the Makefile for libndsfpc is not generated correctly: /Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin/make -C libndsfpc distclean Makefile:199: *** The Makefile doesn't support target arm-embedded, please run fpcmake first. Stop.

Re: [fpc-devel] libndsfpc makefile not created correctly on trunk

2014-08-05 Thread Michael Ring
Fixed in trunk, thank you! Am 04.08.14 um 22:04 schrieb Michael Ring: I cannot build target arm-embedded on trunk because the Makefile for libndsfpc is not generated correctly: /Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin/make -C libndsfpc distclean Makefile:199: *** The

[fpc-devel] Code generator issue for Cortex-M0 chips in trunk

2014-08-08 Thread Michael Ring
There seems to be a bug in the codegenerator for armv6m thumb code. tst r0,#-2147483648 is not valid armv6m assembler code, documentation says that tst only can use registers: TST Rn, Rm where: Rn Is the register holding the first operand. Rm The register to test against. Cortex-M0+ Devic

Re: [fpc-devel] Code generator issue for Cortex-M0 chips in trunk

2014-08-08 Thread Michael Ring
Will do so Michael Am 08.08.14 um 13:57 schrieb Sven Barth: Am 08.08.2014 10:29 schrieb "Michael Ring" <mailto:m...@michael-ring.org>>: > > There seems to be a bug in the codegenerator for armv6m thumb code. > > tst r0,#-2147483648 > > is not valid

[fpc-devel] Subversion offline?

2014-08-10 Thread Michael Ring
I am currently getting an error message: [ring@MacbookPro fpc-arm]$ svn update Updating '.': svn: E175002: Unable to connect to a repository at URL 'http://svn.freepascal.org/svn/fpc/trunk' svn: E175002: The OPTIONS request returned invalid XML in the response: XML parse error at line 1: no ele

Re: [fpc-devel] Code generator issue for Cortex-M0 chips in trunk

2014-08-10 Thread Michael Ring
The patch worked, generated assembler looks ok, will test on device this evening Am 08.08.14 um 14:27 schrieb Nico Erfurth: On 08.08.14 10:28, Michael Ring wrote: There seems to be a bug in the codegenerator for armv6m thumb code. tst r0,#-2147483648 is not valid armv6m assembler code

Re: [fpc-devel] avr-embedded

2014-08-14 Thread Michael Ring
Here's an overview about important files, based on what I know from the arm/mipsel targets: fpc/compiler/avr/cpuinfo.pas//Here you add new controllers fpc/compiler/systems/t_embed //Linker scripts, new controllers need to also get added here fpc/compiler/systems/i_embed //I gues

Re: [fpc-devel] Pinguino

2014-09-02 Thread Michael Ring
I guess it depends on what you understand by the word support ;-) The Pinguino has a PIC32MX440F256H; translated headers for this chip are available. Flashing and Debugging with JLink V9 Adapter should also work fine with gdb, it did with every other PIC32MX I tried. There's also support for

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-08 Thread Michael Ring
This smells like a problem I had on pic32. In my case the pic32 chips do not have a floating point unit and the processor creates an illegal instruction (or something similar) exception. I solved this for me by patching out the call to the hardware coprocessor when softfpu is selected. You c

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-08 Thread Michael Ring
Sven, you were faster than me ,-) Michael Am 08.09.14 um 22:54 schrieb Sven Barth: Am 08.09.2014 20:26 schrieb "Reinier Olislagers" mailto:reinierolislag...@gmail.com>>: > > On 08/09/2014 20:05, Sven Barth wrote: > > Could you please recompile FPC with OPT="-gl" (maybe also -O-) and > > comp

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-09 Thread Michael Ring
This problem also looks similar, there are two procedures in setjump.inc and they both address the fpu: ctc1 $v0,$31 cfc1 $v0,$31 Michael Am 09.09.14 um 08:29 schrieb Reinier Olislagers: Applied a similar patch [1]; progress, thanks! gdb bt now shows: ^C Program received signal SI

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-09 Thread Michael Ring
Sergei, I have reworked the patch based on your comment: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=28634 Do you think this is solved better now? Michael Am 09.09.14 um 08:52 schrieb Sergei Gorelkin: 09.09.2014 9:53, Sven Barth пишет: On 08.09.2014 22:54, Mic

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-11 Thread Michael Ring
Am 09.09.14 um 13:32 schrieb Sergei Gorelkin: 09.09.2014 14:33, Michael Ring пишет: Sergei, I have reworked the patch based on your comment: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=28634 Do you think this is solved better now? No, my point was that

Re: [fpc-devel] creating the embedded port of fpc

2014-10-12 Thread Michael Ring
I am wondering why compile did not fail, or did you rename your binutils tools? In case you did not rename them those commandlines should work: make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m INSTALL_PREFIX=/home/sietse *BINUTILSPREFIX=arm-none

Re: [fpc-devel] creating the embedded port of fpc

2014-10-12 Thread Michael Ring
-eabi-* *-vu* tled1.pp Ch and Cs set heap and stacksize, -vu enables (some) debug output Michael Am 12.10.14 um 20:06 schrieb Michael Ring: I am wondering why compile did not fail, or did you rename your binutils tools? In case you did not rename them those commandlines should work: make clean

  1   2   3   >