gnuarm toolchain - libraries

Started by j_c_smith_uk in LPC200012 years ago

Hi Guys, I'm a born again embedded guy having broken my teeth many years ago on Z80 etc. I'm new to the ARM world as far as "from scratch" is...

Hi Guys, I'm a born again embedded guy having broken my teeth many years ago on Z80 etc. I'm new to the ARM world as far as "from scratch" is concerned. I've started from Jim Lynch's excellent tutorial on how to set up the Eclips environment and the guarm toolchain etc. I have startd with an Olimex LPC-MT- 2106. I've had a measure of success in C getting things like flashled and ...


Conversion from long to char array fails

Started by aartmulder1 in LPC20009 years ago 21 replies

Good morning, After spending ages to try and error and still no solution i'm getting desperate. I'm using the LPC2478STK from Olimex and...

Good morning, After spending ages to try and error and still no solution i'm getting desperate. I'm using the LPC2478STK from Olimex and GNUARM version 4.4.1. and eclipse. When copying the value from an 4 bytes array to a long, thus all 4 bytes concatenated, the compiler swaps the byte order in a weird way. The memory contains the right value at the right positions as i could see with the...


FW: GNUARM C++ Constructors

Started by James Dabbs in LPC200015 years ago 1 reply

The following linker script snippet does not seem to account for the constructors of all my initialized data objects: ...

The following linker script snippet does not seem to account for the constructors of all my initialized data objects: __CTOR_LIST__ = .; LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) *(SORT(.ctors)) LONG(0) __CTOR_END__ = . ; __DTOR_LIST__ = .;


LPC 2138 header files

Started by kandepet_pavan in LPC200011 years ago 2 replies

Hello, I'm trying out some programs for LPC2138 from the Olimex website. I seem to be missing a header file. I cant find the...

Hello, I'm trying out some programs for LPC2138 from the Olimex website. I seem to be missing a header file. I cant find the iolpc2138.h header file. Anyone know where I can find this header? I only have GNUArm and Cygwin installed and i dont think they provide this file. -thanks -Pavan


size of "Hello World" binary too big?

Started by Gerald Hollfelder in LPC200011 years ago 6 replies

I compiled a simple "Hello World" using GNUARM & newlib-lpc_rel_5a in thumb mode. The size of the final binary (after "arm-elf-objcopy...

I compiled a simple "Hello World" using GNUARM & newlib-lpc_rel_5a in thumb mode. The size of the final binary (after "arm-elf-objcopy -O binary") is 10k bytes. Any tips getting a lower size binary? ------------------------------------


Re: LPC2103 problem

Started by schucasso in LPC20008 years ago

Tried even that :) MAT2.1 on P0.8 and MAT2.2 on P0.9 works fine but P0.7 doesn't :( But if I compile the same example with GnuARM everything...

Tried even that :) MAT2.1 on P0.8 and MAT2.2 on P0.9 works fine but P0.7 doesn't :( But if I compile the same example with GnuARM everything work as it should :) --- In l...@yahoogroups.com, Marcus Andreotti wrote: > > " PINSEL0 |= 0x00028000; " > > Do you guarantee what value PINSEL0 was before starting main()? Have you > tried make PINSEL0 a value instead of 'or


Assembler problem

Started by Gabriel Sartori in LPC200011 years ago 3 replies

Hi all, My english is not very good but I will try to make myself clear. I'm trying to make my first project using lpc2144 and a blink...

Hi all, My english is not very good but I will try to make myself clear. I'm trying to make my first project using lpc2144 and a blink led example using GNUARM, eclipse and openocd in my linux machine. I read the tutorial "Arm Cross Development with Eclipse rev.4" and follow the steps to configure my system and used the demo_blink_flash as my first project. When I try to make ...


Trouble with LPC2148 (first project)

Started by nic...@... in LPC200013 years ago 3 replies

Dear lpc2000@lpc2..., I would like to use the LPC2148 for a C project, but I can't get any program to run on the processor. This is my...

Dear lpc2000@lpc2..., I would like to use the LPC2148 for a C project, but I can't get any program to run on the processor. This is my first time using the ARM microcontrollers. I am using the GNUARM toolchain with GCC to write and compile code and the Philips LPC2000 Flash Utility v2.2.2 to upload the hex files to the flash. I am using the IA


Free ARM IDE

Started by pdqlogic in LPC200011 years ago 35 replies

Hi, We've written a Windows 2000/XP based IDE (called ArmEd) which interfaces with the GNUARM toolchain & Insight debugger. It also uses...

Hi, We've written a Windows 2000/XP based IDE (called ArmEd) which interfaces with the GNUARM toolchain & Insight debugger. It also uses OpenOCD to interface to the target JTAG port. You can create and configure projects very easily, then build, download & debug them. The IDE was developed for use with a LPC2214/FPGA development board but can be used with other LPC2xxx targets. An ...


Having trouble getting interrupts to work on GNUARM + LPC2106

Started by chabely_k99 in LPC200013 years ago 2 replies

Does anyone have a simple example including a startup.s file that I can compile in GCC that demonstrates how to use interrupts? I've ...

Does anyone have a simple example including a startup.s file that I can compile in GCC that demonstrates how to use interrupts? I've looked at and have tried many examples. I can get the interrupt to fire once but never again. I think the interrupt isn't being reset correctly within the ISR. I'm usings the following ISR function. I can get the ISR to work co


timer interrupts

Started by Ankur Khetrapal in LPC200012 years ago 5 replies

Hi I am using gnuarm compiler with keil. I need to run a timer interrupt after a specific time interval again and again. I initiate the...

Hi I am using gnuarm compiler with keil. I need to run a timer interrupt after a specific time interval again and again. I initiate the timer to generate the interrupt. void timer_init(void) { T0MR0 = 1577; T0MCR = 1; // Interrupt and Reset on MR0 -- check -- should be MR1 T0TCR = 1; // Timer0 Enable VICVectAd...


[Q] GNU-Tool Chain on W2K, a simple example HowTo use it

Started by Markus Meng in LPC200014 years ago 2 replies

Hi all, after downloading the latest release from www.gnuarm.org I am actually not shure howto proceed in order to get my first...

Hi all, after downloading the latest release from www.gnuarm.org I am actually not shure howto proceed in order to get my first "Hello World" program running on the Olimex board having the LPC2106 mounted on it. I did: - Update the bootloade


Re: ARM device chart

Started by Rick Collins in LPC200012 years ago

I am updating the ARM selection guide at www.gnuarm.com and I wanted to ask again for users to proofread the chart. I found a number...

I am updating the ARM selection guide at www.gnuarm.com and I wanted to ask again for users to proofread the chart. I found a number of omissions and errors which I have fixed. But it is a lot of work to go through all the data sheets to colate this into a single document. It is very easy to miss something, especially when all of the data is not in the data sheet, but rather on the web pag...


-fno-dwarf2-cfi-asm

Started by thesalsabear in LPC20008 years ago 3 replies

hi all, I am trying to compile the demo program ARM7_LPC2106_GCC given in FreeRtos. But I get this error : cc1: error: unrecognized command line...

hi all, I am trying to compile the demo program ARM7_LPC2106_GCC given in FreeRtos. But I get this error : cc1: error: unrecognized command line option "-fno-dwarf2-cfi-asm" could you please help me. I am using gnuarm for compiling regards, vamsi ------------------------------------


Doing simple in math MAKEFILE

Started by fl429 in LPC200012 years ago 4 replies

I am customizing my makefile for use with the latest GNUARM C package. Is it possible to evaluate a simple mathamatic expression like...

I am customizing my makefile for use with the latest GNUARM C package. Is it possible to evaluate a simple mathamatic expression like this: .... UND_STACK_SIZE = 4 FIQ_STACK_SIZE = 0x100 # this does not work because it does substitutions. STACK_SIZE = $(UND_STACK_SIZE) + $(FIQ_STACK_SIZE) How do I ask make to evaluate mathamatically instead of symbolically ? Any advice ? Than...


clearing interrupts lpc2378

Started by kd7vn in LPC200011 years ago

I'm using the olimex lpc-p2378 and GNUARM tool chain. My current project is to copy data from memory to the ssp0 using the DMA...

I'm using the olimex lpc-p2378 and GNUARM tool chain. My current project is to copy data from memory to the ssp0 using the DMA controller. Things seem to be working more or less as expected. I'm getting data, and generating the correct interrupts. I was able to verify this via telnet to the target via openocd. However, I don't think I'm clearing the interrupts correctly. Both ISR...


FreeRTOS supports for 17xx

Started by prab...@yahoo.co.in in LPC20009 years ago 5 replies

Hi all, I am using FreeRTOS5.2.0 with LPC2364,GNUARM(4.1.1),Eclipse etc.Now we are in End of project.But Now we are migrating to LPC1764...

Hi all, I am using FreeRTOS5.2.0 with LPC2364,GNUARM(4.1.1),Eclipse etc.Now we are in End of project.But Now we are migrating to LPC1764 for power saving.Both are pin compatible.So HW side no changes required.But in SW side lot of things going to change.(Stack size setting,startup code,interrupt code,some assembly code etc).Because i am using FreeRTOS,this also needs to support LPC17xx.Is ...


LPCE2214 & Interrupts

Started by vennela2214 in LPC200013 years ago

Any one has any samples on LPCE2214 basic interrupts handling routienes. I have tried but fialed to get it work. My work bench is eclipse and...

Any one has any samples on LPCE2214 basic interrupts handling routienes. I have tried but fialed to get it work. My work bench is eclipse and GNUARM.. I tried to work on TIMER0..initialised..interrupts enabled..and started the timer in timer mode to match the MR0..but no success.. Thanks for your help.


GNUARM weirdness ?

Started by DECwiz \Fred van Kempen\ in LPC200013 years ago 6 replies

Hi All, I've stumbled into something very weird this weekend, and I can't seem to figure out what the problem is. Here is a snippet of...

Hi All, I've stumbled into something very weird this weekend, and I can't seem to figure out what the problem is. Here is a snippet of code: /* Write a value to a CS8900A I/O register. */ static void lan_iow(unsigned char *base, int reg, unsigned short val) { unsigned char *p; unsigned char x; /* Write low and high byt


Help on Timer interrupt in 2214

Started by vennela2214 in LPC200013 years ago

I have a problem in firing the inteerupt in ISR.I have posted my source code here for your ref.Iam checking for a flag, in main()-...

I have a problem in firing the inteerupt in ISR.I have posted my source code here for your ref.Iam checking for a flag, in main()- while()loop, which is never enabled in TIMER ISR.But when i used polling mode its working fine. So I think I definately missing some things some where. I have used this timer ISR to trigger for every 10seconds. Environment: Eclipse/GNUARM/LPC2214.. I didnt ...