Problems with GCC 4.0.2 using -mthumb

Started by lastj10 in LPC20008 years ago 10 replies
GCC

Hello, I'm trying to compile a simple example for arm7tdmi with the following toolchain: binutils-2.16.1, gcc-4.0.2 and newlib-1.14.0. I want to...

Hello, I'm trying to compile a simple example for arm7tdmi with the following toolchain: binutils-2.16.1, gcc-4.0.2 and newlib-1.14.0. I want to have just thumb code so I'm using the -mthumb option, here's my makefile: CC=/home/joao/gcc-4.0.2/bin/arm-gcc OPTS=-mcpu=arm7tdmi -mthumb all: armtest armtest: armtest.c $(CC) $(OPTS) $ < -o bin/$@ It's just a silly code so I can test some t


Re: OT: Cortex-M3 groups and GCC

Started by "FreeRTOS.org Info" in LPC200010 years ago

> The Stellaris Cortex-M3 parts look quite interesting. In particular, > the 28 pin variants, and the LM3S6965. Based on the Googling I've > ...

> The Stellaris Cortex-M3 parts look quite interesting. In particular, > the 28 pin variants, and the LM3S6965. Based on the Googling I've > done (when did Google get verbified, anyway?), there are no GCC builds > for the Cortex,=20 No so! CodeSourcery (and CrossWorks which I think uses CodeSourcery or a variant thereof) support the M3 with GCC. Full instructions on obtaining the tools a


OT: Cortex-M3 groups and GCC

Started by jcwren in LPC200010 years ago 4 replies

I appeal to the group's wide ranging knowledge :) The Stellaris Cortex-M3 parts look quite interesting. In particular, the 28 pin variants,...

I appeal to the group's wide ranging knowledge :) The Stellaris Cortex-M3 parts look quite interesting. In particular, the 28 pin variants, and the LM3S6965. Based on the Googling I've done (when did Google get verbified, anyway?), there are no GCC builds for the Cortex, unless you go with a vendor build. It looks like GCC 4.3 (tentative release date for mid-March) will support the Corte...


gcc under uVision (Keil)

Started by "davidj.vpac" in LPC200010 years ago 1 reply

Trying to build a very basic LPC2119 project in UVision having set it up for gcc compilation. When it compiles/links I get output such as...

Trying to build a very basic LPC2119 project in UVision having set it up for gcc compilation. When it compiles/links I get output such as : ============== Build target 'Target 1' assembling Startup.s... compiling main.c... C:\Cygnus\Arm-Tools\Bin\arm-uclibc-gcc.exe: *** heap allocated but not at 0x7A0000 3 [main] arm-uclibc-gcc 1996 sync_with_child: child 4880(0x140) died before...


ARM / GCC newbie

Started by c_hall2001 in LPC200013 years ago 2 replies

I'm just starting out with the ARM controllers and GCC. Currently I am using the Atmel ATmega128 with the Codevision compiler. ...

I'm just starting out with the ARM controllers and GCC. Currently I am using the Atmel ATmega128 with the Codevision compiler. Codevision hides all the details of linking and all the other details that you need to deal with in GCC + ld. My question is this-- Is there


Which GCC Toolchain & debugging & extmem

Started by deunhido in LPC200013 years ago 3 replies

I just got an Olimex LPC-H2294 and have a few quesions. First, which is the best GCC toolchain to use on Windows. So far, I've ...

I just got an Olimex LPC-H2294 and have a few quesions. First, which is the best GCC toolchain to use on Windows. So far, I've found: GNUARM: gcc-3.4.3, insight-6.1 + newlib 1.12.0 http://www.gnuarm.com Macraigor: gcc 3.4.0, gdb, insight-6.1-macraigor + glibc + their own cygw


Update to gcc-4.3.3 (from 4.2) breaks my build

Started by rsturmer in LPC20009 years ago 24 replies

I have a simple program for the LPC2103 that I've been building successfully for months with gcc 4.2, but on the switch to 4.3 (new machine, got...

I have a simple program for the LPC2103 that I've been building successfully for months with gcc 4.2, but on the switch to 4.3 (new machine, got the latest sources, applied the interwork patch, and rebuilt) I get a software interrupt as soon as I power the thing up. If I break in, the thing is off in the weeds in Thumb mode. A quick look at the .lss file produced by gcc turns up a pretty s...


Anyone want to help start an open-source LPC2xxx hardware library for GCC?

Started by Neil Jansen in LPC200010 years ago 12 replies

Hi, I'm wondering if there is any interest in starting an open-source LPC2xxx hardware library for GCC and other free compilers? It seems...

Hi, I'm wondering if there is any interest in starting an open-source LPC2xxx hardware library for GCC and other free compilers? It seems all the expensive compilers have the libraries ready to go, but the GCC crowd is stuck doing this stuff from scratch or gathering bits and pieces of code. ARM-ELF-GCC uses Newlib, but that only does standard lib stuff... no specific hardware routine...


gcc 4.0.2 generates broken IRQ routine code?

Started by zilogarm in LPC200012 years ago 1 reply

I am using gcc 4.0.2/cygwin to generate code for a LPC2138, and when I use -O0, interrupts cause the system to behave different after returning...

I am using gcc 4.0.2/cygwin to generate code for a LPC2138, and when I use -O0, interrupts cause the system to behave different after returning from them (function calls stop working etc, as if the stack gets broken), while -O3 doesnt have this flaw at all. Is there any known problems with IRQ:s and gcc 4.0.2 ? /Daniel ------------------------ Yahoo! Groups Sponsor --------------------~--...


Windows Vista and Arm-elf-gcc

Started by James Brown in LPC200011 years ago
GCC

Hello, Has any one successfully got WinArm/arm-elf-gcc working on windows vista, just receives a new machine so I thought I would give it a go...

Hello, Has any one successfully got WinArm/arm-elf-gcc working on windows vista, just receives a new machine so I thought I would give it a go however when ever I try to build with arm-elf-gcc I get an error; Assembling (ARM-only): inc/crt0.S arm-elf-gcc -c -mcpu=arm7tdmi-s -mthumb-interwork -I. -x assembler-with-cpp -DROM_RUN -Wa,-adhlns=inc/crt0.lst,-gdwarf-2 inc/crt0.S -o inc/crt0.o ...


gcc problem

Started by Michal Krestan in LPC200012 years ago 11 replies

I'm using LPC2106 in my application with gcc 4.0.0. I've compiled all my sources in ARM mode and it works fine, but for IAP routine call I...

I'm using LPC2106 in my application with gcc 4.0.0. I've compiled all my sources in ARM mode and it works fine, but for IAP routine call I had to use -mthumb-interwork flag for gcc. After this, my application will crash in few sec (not on IAP call, but inside IRQ function). The problem is in IRQ routine. When I'll make call of function inside ISR, gcc will generate wrong code without r


Embedding File Content GCC

Started by sig5534 in LPC20009 years ago 8 replies
GCC

I'm trying to embed a file into the ROM code, and have some way of using the GCC makefile to do the conversion everytime into C. There is a...

I'm trying to embed a file into the ROM code, and have some way of using the GCC makefile to do the conversion everytime into C. There is a function called "file2c.c" or "file2c.tcl" that I think does this, but I can't get this tcl kit stuff to work under Win32 GCC. Has anyone set this up before? I'd sure love to see your makefile syntax. There is another way to do it using objcopy pe...


GCC LPC2xxx Compiler - Selection for Warning Types Reported?

Started by tmasyl in LPC200010 years ago 6 replies

Greetings: I wonder if there is a way to select the types of warnings reported from GCC after each compile? More...

Greetings: I wonder if there is a way to select the types of warnings reported from GCC after each compile? More specifically I have used compilers in the past that provide a list of any variables that have been declared but never used. Currently I do not get that particular type of warning from GCC. I imagine there may be other warning types that I would find useful tha...


Linker Problems

Started by miruffer in LPC200012 years ago 8 replies

Hi, I have big problems with the gcc-linker. Last week I compiled the newest version of gcc(4.0.2), binutils(2.16.1) and newlib(1.13)...

Hi, I have big problems with the gcc-linker. Last week I compiled the newest version of gcc(4.0.2), binutils(2.16.1) and newlib(1.13) under linux debian. Before I worked with WinARM(gcc 4.0.0). I tried to compile my project with the new toolchain. No warnings no errors. But the printf didn't work. To let the printf work via uart1 I have initia


GCC warning message

Started by Octavius in LPC200011 years ago 2 replies
GCC

Hi All, Have anyone encounter the warning message as shown below (Using GCC compiler): arm-thumb-elf/bin/ld: Warning: alignment 4 of...

Hi All, Have anyone encounter the warning message as shown below (Using GCC compiler): arm-thumb-elf/bin/ld: Warning: alignment 4 of symbol "Counter" in .\obj\timer.o is smaller than 32 in .\obj\user.o Could you advise me what does the above mean? By the way, are there any documentation for GCC's Warning or error messages? Thank you very much for spending time reading...


Getting Started with gcc in Keil cVision3

Started by David Jones in LPC200010 years ago 1 reply

Target: LPC2119 using ETT Board (Purchased from Futuretec) I have been able to : Get GPIO, PWM and Frequency Modulator going using Keil...

Target: LPC2119 using ETT Board (Purchased from Futuretec) I have been able to : Get GPIO, PWM and Frequency Modulator going using Keil compiler; thanks to code posted to this group (Thanks!). My main target is CAN Bus code so want to get gcc going so can use CAN examples. Trying to get gcc going from cVision3 with basic Blinky but having some troubles: I get messages such as : C:\...


GCC for ARM

Started by Aditya Bankar in LPC200010 years ago 7 replies

Hi all, My question is to all those who use GCC. I wrote a code in C and compiled it for ARM using GCC and a ".o" was created. But how do I...

Hi all, My question is to all those who use GCC. I wrote a code in C and compiled it for ARM using GCC and a ".o" was created. But how do I specify where the address of registers specific to my microcontroller. Is there any include file for that? If I use keil then there is an include file which has all addresses specific to the chip being used. How do I select between different ARM core...


{Disarmed} Re: Yet another LPC library (GCC)

Started by Stephen Eaton in LPC200010 years ago 2 replies

well done, looks interesting will take a look at it. _____ From: l...@yahoogroups.com [mailto:l...@yahoogroups.com] On Behalf...

well done, looks interesting will take a look at it. _____ From: l...@yahoogroups.com [mailto:l...@yahoogroups.com] On Behalf Of b...@zonnet.nl Sent: Monday, 17 December 2007 6:25 PM To: l...@yahoogroups.com Subject: [lpc2000] Yet another LPC library (GCC) Hello, I recently posted the first version of ALDS, my own LPC library for GCC. It was written for the LPC21xx series, and...


Conversion of Project: GCC Eclipse to Crossworks

Started by Chris Graham in LPC200011 years ago 1 reply

Is there a straightforward series of steps documented somewhere that one could follow in converting a GCC Eclipse project to Crossworks? They...

Is there a straightforward series of steps documented somewhere that one could follow in converting a GCC Eclipse project to Crossworks? They are both based on GCC so I assume the code is compatible but things like make scripts and memory map files would need to be converted. I'm hoping this is a fairly deterministic process that others may have documented and can refer to me to. - Chris...


Building GCC for ARM7 and Cortex-M0/M3

Started by ogautherot in LPC20008 years ago 4 replies

Greetings to the GCC experts :-) I've done some research on how to compile GCC for the ARM cores and found a number of articles - including a...

Greetings to the GCC experts :-) I've done some research on how to compile GCC for the ARM cores and found a number of articles - including a link to CodeSourcery G++ to avoid all the trouble. It all sounds great but left me with a doubt: how can I build a compiler that supports all LPC2388 (ARM7), LPC1765 (Cortex-M3) and LPC1114 (Cortex-M0)? The articles state only 1 architecture at a time, re...