copiler for lpc2000
2006-01-11 by sheep_n_ship
Yahoo Groups archive
Index last updated: 2026-04-28 23:31 UTC
Thread
2006-01-11 by sheep_n_ship
hi, Is there any free c compiler like gcc for lpc2xxx best regards sam
2006-01-11 by Anton Erasmus
On 11 Jan 2006 at 11:27, sheep_n_ship wrote: > hi, > Is there any free c compiler like gcc for lpc2xxx > best regards > Yes, GCC - In particular arm-elf-gcc. Look at http://www.gnuarm.com and other sites for pre compiled binaries. Regards Anton Erasmus -- A J Erasmus
2006-01-11 by Evgeny Belyanco
Hi! s> Is there any free c compiler like gcc for lpc2xxx Manual for this! http://www.olimex.com/dev/pdf/ARM%20Cross%20Development%20with%20Eclipse%20version%203.pdf Evgeny Belyanco ********************************** * Phone (cel.): +7 901 510 9046 *Moscow, Russia **********************************
2006-01-11 by Tom Walsh
sheep_n_ship wrote: >hi, >Is there any free c compiler like gcc for lpc2xxx >best regards > > > I'm using a GNU toolchain + Insight + Abatron BDI2000 JTAG for my work on a Linux box: http://www.openhardware.net/?title=ARM%20Thumb%20tools%20for%20LPC2000&dir=ArmTools&file=ThumbToolchain.html >sam > > > > > > >Yahoo! Groups Links > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
2006-01-11 by Xtian Xultz
Hello guys!
I am starting my work with LPC2106. I made some leds flashing, now I am trying
to understand how interrupts works. I could not find any documentation
explining how to implement it using gcc, I have the Insiders Guide, but the
examples are for the Keil only.
I made the program below, but the interrupt function are never called.
Can someone point my error? Or better, where can I get a documentation
explaining how to implement interrupts with gcc?
Thanx in advance for any help.
My code:
In the ex_lpc_lib1.h, the variables are defined as below:
#define GPIO_IODIR (*(t_reg32*)(0xE0028008))
#define PCB_PINSEL0 (*(t_reg32*)(0xE002C000))
#define VICIntSelect (*(t_reg32*)(0xFFFFF00C))
#define VICIntEnable (*(t_reg32*)(0xFFFFF010))
#define SCB_EXTINT (*(t_reg32*)(0xE01FC140))
The program runs by flashing leds attached to pins P0.4 to P0.7 and P010 to
P0.13. The DEBUGF is a macro that sends the string over JTAG. Pressing the
button attached to EINT1 (this pin have a pull up resistor and the switch
pulls the pin down) never go to the interrupcao() routine.
To compile this code, I had to make it as ARM, when I compiled it as THUMB I
got an error saying that the FIQ routine must be compiled as ARM, so I
compiled the entire code as ARM. Is it possible to tell to gcc that I want
only the FIQ routine compiled as ARM?
#include "ex_lpc_lib1.h"
#define DEBUG_LEDS 0
#define DEBUG_OUT 1
#include "ex_debug.h"
static void delay(t_u32 wDelay);
static void escreve(t_u32 valor);
static void interrupcao() __attribute__ ((interrupt("FIQ"))) ;
/*------------------------------------------------------------------------------
main
------------------------------------------------------------------------------*/
int main(void) {
t_u32 escrita = 0x00000010;
t_u32 x;
GPIO_IODIR = 0x00003CF0;
PCB_PINSEL0 = 0x20000000;
VICIntSelect = 0x00008000;
VICIntEnable = 0x00008000;
for(;;) {
for(x=4; x!=0; x--) {
escreve(escrita);
escrita = escrita << 1;
}
escrita = escrita << 2;
for(x=3; x!=0; x--) {
escreve(escrita);
escrita = escrita << 1;
}
for(x=4; x!=0; x--) {
escreve(escrita);
escrita = escrita >> 1;
}
escrita = escrita >> 2;
for(x=3; x!=0; x--) {
escreve(escrita);
escrita = escrita >> 1;
}
}
return 0;
}
void escreve(t_u32 valor) {
// DEBUGF("Valor=%x\n", valor);
GPIO_IOSET = valor;
delay(100);
GPIO_IOCLR = valor;
}
void delay(t_u32 wDelay) {
t_u32 wClock;
// Gets current clock value and programs timer 0 to count in 1milisecond units
wClock = ex_clock_get() * EX_BOARD_MCLOCK;
T0_PR = (wClock / 1000) - 1; // Prescale register
T0_PC = 0; // Prescale counter
T0_TC = 0; // Initialize timer counter
T0_TCR = 1; // Enable counter
// Waits for counter value to reach specified value
while (T0_TC < wDelay)
;
}
void __attribute__ ((interrupt("FIQ"))) interrupcao(void) {
DEBUGF("Interrompido\n");
GPIO_IOSET = 0x00000010;
SCB_EXTINT = 0x00000002;
}2006-01-11 by Marko Pavlin (home)
Hello! Does anyone ported FreeRTOS / uIP demo to keil PKARM or should I do it ;) ?? M.
2006-01-11 by Dan Beadle
I think Keil/2129 is one of the available ports from FreeRTOS. I did and published a port to IAR. There were some structural changes for that due to IAR's version of assembler and the intensive macros used in FreeRTOS. I think going to the 2124 should be pretty much a no-brainer. Look for the ARM->Keil link on FreeRTOS site. _____
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf Of Marko Pavlin (home) Sent: Wednesday, January 11, 2006 1:15 PM To: lpc2000@yahoogroups.com Subject: [lpc2000] FreeRTOS/uIP port to olimex LPC-E2124 with Keil Hello! Does anyone ported FreeRTOS / uIP demo to keil PKARM or should I do it ;) ?? M. SPONSORED LINKS Microprocessor <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2 =Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=9 3&.sig=tsVC-J9hJ5qyXg0WPR0l6g> Microcontrollers <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor& w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s =93&.sig=DvJVNqC_pqRTm8Xq01nxwg> Pic microcontrollers <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microproces sor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c =4&s=93&.sig=TpkoX4KofDJ7c6LyBvUqVQ> 8051 microprocessor <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocess or&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c= 4&s=93&.sig=1Ipf1Fjfbd_HVIlekkDP-A> _____ YAHOO! GROUPS LINKS * Visit your group "lpc2000 <http://groups.yahoo.com/group/lpc2000> " on the web. * To unsubscribe from this group, send an email to: lpc2000-unsubscribe@yahoogroups.com <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ [Non-text portions of this message have been removed]
2006-01-12 by Marko Pavlin
Thank you. It was a "no brainer". Dan Beadle wrote:
> I think Keil/2129 is one of the available ports from FreeRTOS. I did > and published a port to IAR. There were some structural changes for > that due to IAR's version of assembler and the intensive macros used in > FreeRTOS. I think going to the 2124 should be pretty much a no-brainer. > Look for the ARM->Keil link on FreeRTOS site. > > > > _____ > > From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf > Of Marko Pavlin (home) > Sent: Wednesday, January 11, 2006 1:15 PM > To: lpc2000@yahoogroups.com > Subject: [lpc2000] FreeRTOS/uIP port to olimex LPC-E2124 with Keil > > > > Hello! > > Does anyone ported FreeRTOS / uIP demo to keil PKARM or should I do it > ;) ?? > > M. > > > > SPONSORED LINKS > > Microprocessor > <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2 > <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2> > =Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=9 > 3&.sig=tsVC-J9hJ5qyXg0WPR0l6g> > > Microcontrollers > <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor& > <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&> > w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s > =93&.sig=DvJVNqC_pqRTm8Xq01nxwg> > > Pic microcontrollers > <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microproces > <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microproces> > sor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c > =4&s=93&.sig=TpkoX4KofDJ7c6LyBvUqVQ> > > 8051 microprocessor > <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocess > <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocess> > or&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c= > 4&s=93&.sig=1Ipf1Fjfbd_HVIlekkDP-A> > > > > > > > > _____ > > YAHOO! GROUPS LINKS > > > > * Visit your group "lpc2000 > <http://groups.yahoo.com/group/lpc2000> " on the web. > > * To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > _____ > > > > [Non-text portions of this message have been removed] > > > > SPONSORED LINKS > Microprocessor > <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=tsVC-J9hJ5qyXg0WPR0l6g> > Microcontrollers > <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=DvJVNqC_pqRTm8Xq01nxwg> > Pic microcontrollers > <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=TpkoX4KofDJ7c6LyBvUqVQ> > > 8051 microprocessor > <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=1Ipf1Fjfbd_HVIlekkDP-A> > > > > ------------------------------------------------------------------------ > YAHOO! GROUPS LINKS > > * Visit your group "lpc2000 > <http://groups.yahoo.com/group/lpc2000>" on the web. > > * To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------------------------------------------------ >