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

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

2015-08-14 Thread Jeppe Johansen
On 08/14/2015 09:08 AM, Koenraad Lelong wrote: Is this the way to do it ? Or is there better way ? Or does this exist already ? Comments please. If that's a proper way to do this, how could this be included in a next version of fpc ? Do I make a bug-report including the new file, with diffs

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

2015-08-14 Thread Michael Ring
Jeppe would be the best person to answer your question anyway as he is the master of (nearly) all files in the embedded directory. I just checked, when I created my own units for other devices I included those const's, it seems that they never were in Jeppe's files could it be that you saw the

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

2015-08-14 Thread Marc Santhoff
Hi Koenraad, On Fr, 2015-08-14 at 09:08 +0200, Koenraad Lelong wrote: > Is this the way to do it ? Or is there better way ? Or does this exist > already ? > > Comments please. > > If that's a proper way to do this, how could this be included in a next > version of fpc ? Do I make a bug-repor

[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.

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 refe

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

2013-12-11 Thread Jeppe Græsdal Johansen
Den 11-12-2013 19:20, Koenraad Lelong skrev: Hi, I made some time to tinker with my arm-embedded fpc-compiler. Since I had a problem in the past with routines optimized away I checked for this. And indeed there is a problem : my interrupt-routines are gone. How do I tell the compiler to leave

[fpc-pascal] arm-embedded and interrupts

2013-12-11 Thread Koenraad Lelong
Hi, I made some time to tinker with my arm-embedded fpc-compiler. Since I had a problem in the past with routines optimized away I checked for this. And indeed there is a problem : my interrupt-routines are gone. How do I tell the compiler to leave those routines in the binary ? I tried -O-, -

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread Michael Ring
existing jtag debugger i use ? ( this one i have -> http://microcontrollershop.com/product_info.php?cPath=110_161&products_id=1106 ) Kind Regards Justin -Original Message- From: Michael Ring Sent: Thursday, January 31, 2013 2:31 AM To: FPC-Pascal users discussions Subject

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread delphian
ind Regards Justin -Original Message- From: Michael Ring Sent: Thursday, January 31, 2013 2:31 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Arm Embedded Question LPC1343 Board uses a special JTAG interface that does not have open sourced driver support. So if you do not

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread Michael Ring
LPC1343 Board uses a special JTAG interface that does not have open sourced driver support. So if you do not want to use their GUI (based on Eclipse if I remember correctly) which is mainly C/C++ based then the easiest way is to cut the board in two pieces and to then connect it to an inexpens

Re: [fpc-pascal] Arm Embedded Question

2013-01-30 Thread Koenraad Lelong
Op 30-01-13 13:38, delph...@smythconsulting.net schreef: I've been following the wiki and have successfully created fpc for my arm processor ( Cortex M3 - using a LPC 1343 board) ( as per the wiki's intructions) once i have written my sample program is there anyway to debug it on the MCU ? ( ie

[fpc-pascal] Arm Embedded Question

2013-01-30 Thread delphian
I've been following the wiki and have successfully created fpc for my arm processor ( Cortex M3 - using a LPC 1343 board) ( as per the wiki's intructions) once i have written my sample program is there anyway to debug it on the MCU ? ( ie like doing in Lazarus for win32/64 projects) any help

Re: [fpc-pascal] ARM embedded

2012-09-06 Thread Florian Klämpfl
Am 06.09.2012 17:34, schrieb Rainer Stratmann: > Got the ARM crosscompiler under Linux running. > Thanks to Jeppe Johansen! > > Before it runs I deleted some of the CPUARM_HAS_BLX,CPUARM_HAS_BLX_LABEL > identifiers below. Because the linker gaves warnings/errors. As I understand > does the thumb

[fpc-pascal] ARM embedded

2012-09-06 Thread Rainer Stratmann
Got the ARM crosscompiler under Linux running. Thanks to Jeppe Johansen! Before it runs I deleted some of the CPUARM_HAS_BLX,CPUARM_HAS_BLX_LABEL identifiers below. Because the linker gaves warnings/errors. As I understand does the thumb2 mode not support this mnemonics. Is it possible to set f