Re: GCC compiler

Started by rtstofer in LPC200010 years ago

--- In l...@yahoogroups.com, Aditya Bankar wrote: > > Hi all, > I saw that the gcc compiler supports compilation for...

--- In l...@yahoogroups.com, Aditya Bankar wrote: > > Hi all, > I saw that the gcc compiler supports compilation for ARM microprocessor. I tried generating .o file for ARM. But how does it know about the microcontroller being used? How to tell the compiler that we are using LPC2000 microcontroller so that it places appropriate code to redirect printf data to UART? >


Re: Digest Number 944

Started by Mauricio Scaff in LPC200012 years ago

Ok. I really need a USB code running in gcc and a don't have children but want to someday. So, I'' post all my findings here, and what i got....

Ok. I really need a USB code running in gcc and a don't have children but want to someday. So, I'' post all my findings here, and what i got. Hopefully somebody will try this, do some more progress and share it back here. As far as I know the main problem porting keil USBMEM to gcc is the __pack attribute. I know keil code is not that complete, but once it is up and running will be easi


IAP calls from GCC - workaround

Started by viskr in LPC200012 years ago 2 replies

I think I've resolved the IAP problem and its due to a GCC "feature", maybe a bug. Anyway if you call IAP the way it is specified in the...

I think I've resolved the IAP problem and its due to a GCC "feature", maybe a bug. Anyway if you call IAP the way it is specified in the doc's, it works sometimes- #define iap_entry ((IAP) 0x7FFFFFF1) // IAP entry point ... iap.cmd = 50; // IAP Command: Prepare Sectors for Write iap.par[0] = GET_SECNUM(flash_addr);// s...


Cygwin problem

Started by duci750 in LPC20009 years ago 2 replies

I seem to have a trivial but frustrating problem: When I try to compile, with the gcc in YAGARTO or WinARM, the compiler can not find files...

I seem to have a trivial but frustrating problem: When I try to compile, with the gcc in YAGARTO or WinARM, the compiler can not find files who's path starts with /. I have no problem when using gcc found in C:\cygwin\bin on the same files. Once I dive into the directory, (i.e. not using /) it seems to work. I am probably looking for answers at the wrong places. Could someone give me...


Problem with makefile

Started by joelteply in LPC200013 years ago 3 replies
GCC

I am having newbie problems getting the core gcc functions defined in my program. I need to get the gcc functions linked in....

I am having newbie problems getting the core gcc functions defined in my program. I need to get the gcc functions linked in. Right now I can't do division or string functions. Here is an example of the errors: "undefined reference to memcpy" "un


Has any one faced optmization problem using gnu arm gcc

Started by vijayasarathy T in LPC200013 years ago 3 replies

Hi, Iam using GNU arm gcc compiler for LPC2104 , when i use while( !( SCB_PLLSTAT & PLL_LOCK ) );) this statement,...

Hi, Iam using GNU arm gcc compiler for LPC2104 , when i use while( !( SCB_PLLSTAT & PLL_LOCK ) );) this statement, the assembly codes are not generated for other instruction below this statement. do any one have a suggestion. thanks


Strange GCC compiler assembler output

Started by Jan Thogersen in LPC200012 years ago 13 replies

Hi, Now I'm trying to dig into the assembler generation from the GCC compiler and I've noticed something that I don't quite...

Hi, Now I'm trying to dig into the assembler generation from the GCC compiler and I've noticed something that I don't quite understand. Here is the dump that got my attention: if (buf_inpos == buf_outpos) T0MR0++; else { // The fifo is empty E59F3130 ldr r3, [pc, #304] E5D33000 ldrb r3, [r3] E51B101C ldr r1, [r11, #-28] E1530001 cmp r3, r1 ...


Settings in startup.s file for multiple interrupts GCC

Started by ravindra_lpc in LPC200012 years ago

Hi , I m using MCB2130 board .I hav tested all features of it in Keil ARM Tools .Now I m interested using GCC compiler . Question 1) when I...

Hi , I m using MCB2130 board .I hav tested all features of it in Keil ARM Tools .Now I m interested using GCC compiler . Question 1) when I changed in startup.s file like below for my ADC ISR to run it is working: ********************************************************************* ********** # Exception Vectors # Mapped to Address 0. # Absolute addressing mode must be used. # Dum...


C union not working

Started by Leonardo Santos in LPC200013 years ago 6 replies

Hello All: I'm working with a LPC2106 using the GCC 3.4.4 toolchain (GCC + binutils 2.15 + newlib 1.13). I wrote a union and a...

Hello All: I'm working with a LPC2106 using the GCC 3.4.4 toolchain (GCC + binutils 2.15 + newlib 1.13). I wrote a union and a structure to access the P0 pins individually, like this: typedef struct { int p0 : 1; int p1 : 1; int p2 : 1; (...) in


Re: IAR workbench or Rowley CrossWorks

Started by Michael Scott in LPC200011 years ago

Thanks to all for your opinions, I'm almost sorry that I asked the question. BTW we selected CrossWorks. I ran across a comparison between GCC...

Thanks to all for your opinions, I'm almost sorry that I asked the question. BTW we selected CrossWorks. I ran across a comparison between GCC and a few other compilers including IAR which compared code size and execution speed. It showed almost no difference between GCC and WorkBench, Those were the two best overall too. Frankly I'm also not impressed with the presentation of Workbench. An...


debugging: (gcc tools) stabs or gdb format?

Started by ino-...@spotteswoode.dnsalias.org in LPC200012 years ago 2 replies

I see a lot of references to using "-gstabs", although from the documentation i'd infer that "-ggdb2" is superior. which should i use? on the...

I see a lot of references to using "-gstabs", although from the documentation i'd infer that "-ggdb2" is superior. which should i use? on the same train: since all the symbol handling is done in gcc, is it correct that the program flashed can be stripped as long as i have the ELF file including the debug symbols? currently i have the ELF file complete with all the symbols, and then i use ...


HELP-Touch screen program for lpc2468 @gcc

Started by Poovendhan M in LPC20006 years ago 3 replies
GCC

Guys any know how to write a touch screen program for lpc2468 at GCC compiler... plz explain or give brief note or suggest any website for...

Guys any know how to write a touch screen program for lpc2468 at GCC compiler... plz explain or give brief note or suggest any website for this. ------------------------------------


gcc optimizer bug

Started by 42Bastian in LPC20009 years ago 5 replies
GCC

Hi, maybe I am totally wrong, but this code: typedef volatile unsigned long __vu32; void bs() { int i; __vu32 *tbl = (__vu32...

Hi, maybe I am totally wrong, but this code: typedef volatile unsigned long __vu32; void bs() { int i; __vu32 *tbl = (__vu32 *)0xffffff00; for(i = 0; i < 64; ++i){ *tbl++ = (__vu32)10; } } compiles with -Os to an endless loop: mvn r2, #255 .L2: mov r3,#10 str r3, [r2], #4 b .L2 I'd say this is a bug in gcc


trustworthy gcc startup scripts

Started by Christopher Harvey in LPC20007 years ago 3 replies

I know of a few complete looking startup scripts for lpc2368 chips and I'm sure they work great. I'm wondering if there is a minimal C...

I know of a few complete looking startup scripts for lpc2368 chips and I'm sure they work great. I'm wondering if there is a minimal C environment setup project for GCC and lpc2368 that everybody around here tends to start off with. I know assembly, as well as the basics of linker scripts, but putting all that together with a new chip is a daunting task. If I'm going to trust random int...


MCB2300 help with blinky & GCC

Started by shroffja in LPC200010 years ago 7 replies
GCC

Hi All, Well I am tearing my hair out on this one and hoping someone can help. I have a MCB2300 board that I have verified using Keil...

Hi All, Well I am tearing my hair out on this one and hoping someone can help. I have a MCB2300 board that I have verified using Keil Realview compiler - I can successfully compile and run the Blinky program. I want to move to GCC so I installed winARM and downloaded the test programs from the Files section on this group, but am unable to get the programs to work. It compiles fine ...


Many thanks to ariusdsp -> how to build application ?

Started by Anonymous in LPC200014 years ago 8 replies

Hello, first many thanks to ariusdsp for their arm toolchain, seems to be running fine under cygwin (WinXP) Already compiled...

Hello, first many thanks to ariusdsp for their arm toolchain, seems to be running fine under cygwin (WinXP) Already compiled some C code from this newsgroup. But: Can you tell me how to proceed ? arm-elf-gcc -S helloworld.c arm-elf-gcc -mcpu=arm7tdmi


Sample ISR setup code for GCC?(Newbie)

Started by Richard in LPC200014 years ago 1 reply

Hi, I have used the GNU tools on an AVR, but not before on an ARM. Does anybody have a link to some sample code that setups up...

Hi, I have used the GNU tools on an AVR, but not before on an ARM. Does anybody have a link to some sample code that setups up an ISR, preferable on a timer? There does not seem to be a file posted. I have read the __attribute__((interrupt(IRQ))) part of the GCC


Problems with sting constants and gcc -On

Started by Guillermo Prandi in LPC200012 years ago 18 replies

Hi! Has anybody found this? I'm using gcc 4.01 (latest WinARM) and I'm compiling for LPC2138 (ARM7). If I use this kind of stuff, constants ...

Hi! Has anybody found this? I'm using gcc 4.01 (latest WinARM) and I'm compiling for LPC2138 (ARM7). If I use this kind of stuff, constants don't get to the HEX file: char *c = "Hello"; or my_func("Hello"); However, if I use a built-in function like printf or puts, they do!: printf("Hello&q


How to "jump" to a function without returning from it - Embedded C -

Started by Gaspar Pollano in LPC200010 years ago 6 replies
GCC

Hi forum! This is a C related question. I want to know if its posible to call a function 'X' in embedded C (gcc 4.22) using a kind of 'goto'...

Hi forum! This is a C related question. I want to know if its posible to call a function 'X' in embedded C (gcc 4.22) using a kind of 'goto' or 'jump' since the 'X' function will never return to the caller funtion. I want do this to have independent modules of code, calling functions when i needed, keeping the stack light weight... Im now using the "noreturn" attribute of gcc, but when...


lpc2294 and gcc problem linking math libraries

Started by appley12345 in LPC200012 years ago 3 replies

Hello all I'm having trouble (and a nervous breakdown just about!) trying to get my compiler to link the maths library for a program i am...

Hello all I'm having trouble (and a nervous breakdown just about!) trying to get my compiler to link the maths library for a program i am writing for a lpc2294. I know very little (it seems) about the gcc compiler. Heres the situation: i have 4 c files of my own: main.c, servo.c, com.c, VIClowlevel.c without using ANY math functions, I can get everything to compile/link and run fine o...