porting projects from Keil to GCC

Started by Sutton Mehaffey in LPC200010 years ago 2 replies
GCC

I am planning to experiment in porting a couple of my Keil projects over to GCC and see how that compiler performs as far as code size goes. ...

I am planning to experiment in porting a couple of my Keil projects over to GCC and see how that compiler performs as far as code size goes. Anybody done that before? What is involved in the conversion? I know I'll have to write makefiles. That's not a problem. Any problems in using compiled GCC code in uVision for debugging? Any other known problems/issues that may come up? Sutton ...


FreeRTOS compile

Started by Ravi in LPC200010 years ago 8 replies

Hi all While compiling "LPC2106 GCC" port. after make I'm getting following error. arm-elf-gcc: GCC_ARM7: No such file or...

Hi all While compiling "LPC2106 GCC" port. after make I'm getting following error. arm-elf-gcc: GCC_ARM7: No such file or directory After making following changes still error persist. TOOLSROOT = C:/GNUARM TOOLS = $(TOOLSROOT)/bin/arm-elf- CC=$(TOOLS)gcc Please help me Waiting for reply Ravi ------------------------------------


Type cast to byte aligned variable in GCC

Started by weartronics in LPC200012 years ago 2 replies

Dear lpc2000, I am trying to port some Keil example code (LPC2148 USBHID) to the GCC compiler. Keil use the __packed keyword to specify byte...

Dear lpc2000, I am trying to port some Keil example code (LPC2148 USBHID) to the GCC compiler. Keil use the __packed keyword to specify byte alignment for variables (see http://www.keilsoftware. com/support/man/docs/ca/ca_le_packed.htm ) but this is not supported by GCC. I know GCC provides an "__attribute__ (


Interniche TCP/IP port for GCC ?

Started by opprud in LPC200010 years ago
GCC

Hi, Has anyone succesfully ported the interniche TCP/IP stack for LPC23/24xx to ARM GCC. (availible here:...

Hi, Has anyone succesfully ported the interniche TCP/IP stack for LPC23/24xx to ARM GCC. (availible here: http://www.standardics.nxp.com/support/software/nichelite) The interniche project is written for the Keil/ARM toolchain. There seems to be significant differences in the assembler files, wich does not compile under GCC without modification. Best regards Morten opprud


Import GCC project in Keil

Started by mahbub1833 in LPC200011 years ago 1 reply

Hi, Is there any way I can import GCC [GNUARM] projects into Keil RVCT3.0 ? Or vice versa??? If not then manually what I need to do to...

Hi, Is there any way I can import GCC [GNUARM] projects into Keil RVCT3.0 ? Or vice versa??? If not then manually what I need to do to import gcc projects and codes in keil? Thanks in advance.


Reg:Yagarto(GCC 4.4.2) Issues

Started by prab...@yahoo.co.in in LPC20008 years ago 1 reply

Hi all, I am using Yagarto(GCC 4.4.2) version( with LPC1764,FreeRTOS).In this GCC documents,they are mentioned that,we have to use following...

Hi all, I am using Yagarto(GCC 4.4.2) version( with LPC1764,FreeRTOS).In this GCC documents,they are mentioned that,we have to use following code in linker script, .eh_frame : { KEEP (*(.eh_frame)) } > sram Plase explain why should we use this code in linker script? Is there any specific reason?Because its consumes(0x848 bytes)ram? How to avoid this(Memory is impo


lpc21isp v160

Started by Xiaofan Chen in LPC20004 years ago 5 replies

Somehow I could not get lpc21isp to build under Ubuntu 8.04. mcuee@Ubuntu804:~/Desktop/arm/lpc21isp_160$ make gcc -D__FREEBSD__ -c -o...

Somehow I could not get lpc21isp to build under Ubuntu 8.04. mcuee@Ubuntu804:~/Desktop/arm/lpc21isp_160$ make gcc -D__FREEBSD__ -c -o adprog.o adprog.c gcc -D__FREEBSD__ -c -o lpcprog.o lpcprog.c gcc -D__FREEBSD__ -c -o lpcterm.o lpcterm.c gcc -D__FREEBSD__ -o lpc21isp lpc21isp.c adprog.o lpcprog.o lpcterm.o lpc21isp.c:244: error: static declaration of 'debug_level' follows non-static...


Is __attribute__ ((interrupt ("IRQ"))) still buggy?

Started by ttl_idiot in LPC20008 years ago 7 replies
GCC

I have some strange problem with screwed-up r14 (link register). It happens in IRQ mode, and seems to be related to an FIQ that interrupts the...

I have some strange problem with screwed-up r14 (link register). It happens in IRQ mode, and seems to be related to an FIQ that interrupts the IRQ. I am currently using GCC 4.3.2, and using optimization. It's a bad time for upgrading GCC at this point, if it doesn't solve this specific problem. 1. Is the __attribute__ ((interrupt ("IRQ")) problem still unsolved in latest version of GCC? 2. ...


Warning options for arm-elf-gcc

Started by xtianxultz in LPC200010 years ago 1 reply
GCC

Hi all I usually use -Wall for gcc, but sometimes ago I saw a huge list of warnings that is important to use when writing a firmware,...

Hi all I usually use -Wall for gcc, but sometimes ago I saw a huge list of warnings that is important to use when writing a firmware, someone knows or have some suggestions about what should I put on my Makefiles? Thanx a lot in advance!


GCC extrange behaviour with -lm

Started by Miguel Angel in LPC20009 years ago 5 replies
GCC

Hi all, I know I'm near off-topic, but, probably many of you have experiences with this: I'm trying to link my software with GCC 4.4 1)...

Hi all, I know I'm near off-topic, but, probably many of you have experiences with this: I'm trying to link my software with GCC 4.4 1) "liblibrary1.a" that's on arm-elf/lib/ 2) "libm.a" that's on arm-elf/lib/ 3) my app I make the link using gcc-arm-elf ... -lm -llibrary1 all the other flags, and my app .o object files. Then, I get surprised, because linker says: xxxxx.c ...


Problem with float and GCC

Started by sebfr74 in LPC200013 years ago 1 reply

Hi, I'm new to LPC2138, I'm actually modify a design who run on a dallas 87c520 to a LPC2138 with GCC. I want to do this (it's run well...

Hi, I'm new to LPC2138, I'm actually modify a design who run on a dallas 87c520 to a LPC2138 with GCC. I want to do this (it's run well with keil PK51 but not with GCC) : unsigned char Tab[3]; float Resolution[8]; Resolution[1]=(float)(Tab[7]|Tab[8]*0x0100)*0.00001; It compil well but I've got this error on the linking : e


How to excute the C and assembly programs under windows using GCC insight simula

Started by raju_nem in LPC20008 years ago
GCC

I am running my application under windows. I am working with one simple example in that main function is in C and i am passing values by...

I am running my application under windows. I am working with one simple example in that main function is in C and i am passing values by calling a function ADD,operation is doing in assembly.i am working with GCC compiler.How to excute the this program under windows using GCC insight debugger ------------------------------------


Converting float (or double) number to string in GCC

Started by Gaspar Pollano in LPC200010 years ago 7 replies

Hi Forum! Im working on a project which use float numbers in a LPC2148, using YAGARTO (GCC,Eclipse,etc,etc). I need print out floats numbers...

Hi Forum! Im working on a project which use float numbers in a LPC2148, using YAGARTO (GCC,Eclipse,etc,etc). I need print out floats numbers in a GLCD, using several formats (like ###0.0 or ###0.00 or 0.00000E00, etc). My project has a sprintf function wich is a reduced (uC oriented) version of the GCC's sdtio.h function, without float number support. How you deal with floats into st...


Authoring interrupts and disabling/enabling IRQs with gcc

Started by rsturmer in LPC20009 years ago 6 replies

I've been rifling through examples on the web, and it looks like there are several different methods of both enabling/disabling IRQs as well as...

I've been rifling through examples on the web, and it looks like there are several different methods of both enabling/disabling IRQs as well as actually authoring interrupts with the LPC2000 micros using GCC. (Some people use __attribute___('IRQ'), some people swear against it, etc... ) I just upgraded gcc to 4.3.2 and binutils 2.18, and it seems that anything having to do with my interrupts i...


GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP"

Started by arrek_x in LPC200012 years ago 12 replies

Hi, I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. While integrating with Keil's uVision3 IDE I'm getting (while linking)...

Hi, I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. While integrating with Keil's uVision3 IDE I'm getting (while linking) above mentioned error (for every *.o file created from *.c). I checked out, that the error does't occur when disabling option "Enable ARM/Thumb Interworking" on Assembler tab in "Options for Target..." dialog box. So, occuring (


Compile with GCC

Started by hansschumacher2 in LPC200010 years ago 12 replies
GCC

Hello, is it possible to compile the projects with a GCC compiler? Do you know a program to do it and how i have to make it? Hans

Hello, is it possible to compile the projects with a GCC compiler? Do you know a program to do it and how i have to make it? Hans


semihosting problem??

Started by lija in LPC200014 years ago

Hi, I am new in gcc & c. Right now I am working with arm7tdmi board & arm-elf-gcc. I downloaded this arm-elf-gcc setup file...

Hi, I am new in gcc & c. Right now I am working with arm7tdmi board & arm-elf-gcc. I downloaded this arm-elf-gcc setup file from http: //www.gnuarm.com. It's working well but it has some problem like math. h & semihosting. printf & scanf is working now


Re: diference btw GNU tool chain and ARM tool chain

Started by Mukund Deshmukh in LPC200010 years ago

> hi guys, > I was using Kiel ARM tool chain all these days. Now i move on to using > GNU tool chain which comes along with Keil. Could u...

> hi guys, > I was using Kiel ARM tool chain all these days. Now i move on to using > GNU tool chain which comes along with Keil. Could u please wat are the > settings that i've to look intO BEFOR I'VE TO COMPILE. Don't touch Keil GCC with even 10 feet pole... It's an old version, and it is included only to show how Keil is better than GCC. Download WinARM or YOGARTO, or GCC directly.


GCC reading ram in lpc 2292 - is it possible??

Started by boje_d in LPC200012 years ago 4 replies

Hi im using gnuarm GCC toolset. I want to make a c routine to read on a specefic ram location. I want this to be a c file. I am using a...

Hi im using gnuarm GCC toolset. I want to make a c routine to read on a specefic ram location. I want this to be a c file. I am using a lpc2292processor Is this possible? Can you suply a bit of code. Thank you Best regards Boje Demant


Writing on SD/MMC card with GCC on MCB2300

Started by rd2...@wavetel.fr in LPC200010 years ago 7 replies

Hello, I am trying to port a sample code from NPX to GCC compiler. The sample is called MCI. It's based on Keil compiler. It's just supposed...

Hello, I am trying to port a sample code from NPX to GCC compiler. The sample is called MCI. It's based on Keil compiler. It's just supposed to write some consecutive blocks on the flash card trough the MCI port. The sample works perfectly with Keil evaluation compiler, but it does not work with GCC. The compilation of the source code is not a problem. I adapted a very few part of th...