calling convension of GCC vs Arm compiler (RVCT)

Started by Gus in LPC20009 years ago 10 replies

Hello experts! I have a compiled binary image that is compiled with GCC. I need to call that code from ARM compiler (RVCT). In theory I am not...

Hello experts! I have a compiled binary image that is compiled with GCC. I need to call that code from ARM compiler (RVCT). In theory I am not seeing a problem but when I try it it doesn't work. Even if I call a "void foo(void)" function with no arguments it will still not work. I end up with abort handler. I am basically trying to do something like how IAP works. Have a GCC compiled binary ...


Multiple IRQ routines in GCC

Started by vineet jain in LPC200012 years ago 6 replies

Hello, I need some help in writing IRQ routines in GCC, it works the way I wrote for KEIL GCC but doesn't with the Eclipse one. Stubs are...

Hello, I need some help in writing IRQ routines in GCC, it works the way I wrote for KEIL GCC but doesn't with the Eclipse one. Stubs are placed in the sample code for Eclipse IDE: Excerpt from the code: void IRQ_Routine (void) __attribute__ ((interrupt("IRQ"))); and then way below: void IRQ_Routine (void) { while (1) ; } I need to write two routines as IRQ for RTC...


Toolchain

Started by geimble in LPC200014 years ago 1 reply

Hello ! I am trying to build a working toolchain for the LPC2106 . Can anyone help me with the steps i have to make and the...

Hello ! I am trying to build a working toolchain for the LPC2106 . Can anyone help me with the steps i have to make and the changes i have to do for the specific lpc2106 hardware ? The files I want to use are newlib, gcc , gdb and gcc under cygwin Regards


ARM Gnu Gcc

Started by "M. Manca" in LPC20006 years ago 4 replies

Some time ago I found a GNU GCC (for ARM cores) distribution maintained by ARM Ltd. I have lost the web page address, is there anyone knowing it...

Some time ago I found a GNU GCC (for ARM cores) distribution maintained by ARM Ltd. I have lost the web page address, is there anyone knowing it and pointing me to it? Many thanks. ------------------------------------


GCC runing optomization!

Started by Gus in LPC200013 years ago 3 replies
GCC

Hello, Anyone is using GCC compiler version 3.4.2 WITH optomization? When I enable optomization, my applicatin acts...

Hello, Anyone is using GCC compiler version 3.4.2 WITH optomization? When I enable optomization, my applicatin acts funny! I am not sure why. Gus


int64 variables with GCC in crossworks IDE

Started by Gus in LPC200012 years ago 4 replies

Is there a way to use 46-bit variables in GCC and crossworks tool set?

Is there a way to use 46-bit variables in GCC and crossworks tool set?


Makefile

Started by rtos2010 in LPC20008 years ago 1 reply

I'm looking for a good book or online resource that explains GNU GCC makefiles for the LPC2xxx series. Something that you may have used to learn...

I'm looking for a good book or online resource that explains GNU GCC makefiles for the LPC2xxx series. Something that you may have used to learn makefiles not just a Google search result (I already did that). My dilemma is that I see many example code for WinARM, YAGARTS, CodeSourcery and the make files never seem to work unilaterally between then even though they all use GNU GCC. Thanks. ...


Freertos and Lpc23xx

Started by sashi ono in LPC200011 years ago 6 replies

I'm have a really heck of a time trying to get freertos to run on the lpc23xx series. I've ported it the lpc2129, lpc2148 parts without...

I'm have a really heck of a time trying to get freertos to run on the lpc23xx series. I've ported it the lpc2129, lpc2148 parts without a problem. Is there something I should be aware with on the lpc2300 series. It seems to treat interrupts differently. Any insight would be great. I'm using gcc. tried it with gcc 3 and 4.


How to declare RAM functions in GCC

Started by sig5534 in LPC200013 years ago 14 replies

In the IAR compiler there was an attribute to declare a function to get it mapped into RAM. How is this handled in GCC? Is there some equiv...

In the IAR compiler there was an attribute to declare a function to get it mapped into RAM. How is this handled in GCC? Is there some equiv attribute? Thanks, Chris.


assembly question

Started by nabil Litayem in LPC200011 years ago 1 reply
GCC

Hello everybody. I want to compile assembly file who is writen for compiler other than gcc. I dont know how i can use macros in assembly with...

Hello everybody. I want to compile assembly file who is writen for compiler other than gcc. I dont know how i can use macros in assembly with gcc compiler. If someone have some idea it could be very helpful. Thank you in advance. Nabil ___________________________________________________________________________ D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos qu...


More compiler-optimization funnies

Started by Kenneth Crudup in LPC200011 years ago
GCC

(This post is mostly for the newbies; most of us have probably gotten caught by this once before, but it took me a minute to find it. In...

(This post is mostly for the newbies; most of us have probably gotten caught by this once before, but it took me a minute to find it. In the light of last-week's dicussion on compilers optimizing-out .ascii strings that start with NULs, I figured I'd post here anyway.) I recently switched my ARM compiler from gcc 3.4.2 to gcc 4.1.1 . After- wards, one of my programs had stopped running. L...


FIQ - How to setup it on LPC210x?

Started by Telmo Friesen in LPC20009 years ago

Hi all, I am trying to make a fast interrupt work on the LPC2101.. It sens that all interruptions are disabled in the startup code, but I...

Hi all, I am trying to make a fast interrupt work on the LPC2101.. It sens that all interruptions are disabled in the startup code, but I could not find a way to enable it in my C code. And I could not find how to tell the GCC where my handler is too (the handler has to be on 0x1c but how do I tell this to GCC?). I tryed some ways but no one worked.. Can someone help me please? Is there a...


GCC/ARM 4.7.0 for Windows

Started by Olivier Gautherot in LPC20006 years ago 25 replies

Hi, for those interested, I have a working copy of GCC/ARM 4.7.0 and GDB 7.4. They seem to have improved the code optimization, from what I...

Hi, for those interested, I have a working copy of GCC/ARM 4.7.0 and GDB 7.4. They seem to have improved the code optimization, from what I saw on a sample app. The distributionis based on the YAGARTO building scripts - I still owe the patches to Michael Fischer. I compiled the toolchain under MinGW and added the requested libraries, so that it can be used from a standard DOS box. ...


Spurious Interrupt Fixes in GCC

Started by sig5534 in LPC200012 years ago 2 replies
GCC

I've got an app with a blizzard of INTs going on, and it seems I am seeing a lot of the spurious interrupt problems mentioned in the VIC...

I've got an app with a blizzard of INTs going on, and it seems I am seeing a lot of the spurious interrupt problems mentioned in the VIC manual section. They give one fix to try as follows but this is written in ARM asm: SUB lr, lr, #4 ; STMFD sp!, {..., lr} ; MRS lr, SPSR ; TST lr, #I_Bit ; LDMNEFD sp!, {..., pc}^ GCC doesn't like some of this syntax. What is the equiv way of w...


Re: GNU inline assembler return value

Started by brendanmurphy37 in LPC200013 years ago

Hi, Thanks for the comment, though I'm not sure what you mean by "C startup" Just to clarify: - we use GCC as compiler for...

Hi, Thanks for the comment, though I'm not sure what you mean by "C startup" Just to clarify: - we use GCC as compiler for LPC2000 - we don't use any standard libraries: this avoids the most common argument against GCC of large size overhead - the startup is the assembler I included in previous e-mail - the


swi and gcc

Started by alberto in LPC200012 years ago 1 reply

Hy guys, I'm developing a can repeater with lpc2129.I'm testing interrupts and primitives before starting with high level. Has someone an...

Hy guys, I'm developing a can repeater with lpc2129.I'm testing interrupts and primitives before starting with high level. Has someone an exemple of swi using under gcc compiler? I just tried with post search but I see only the first page. thanks in advance Alberto ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new


Re: IAR workbench or Rowley CrossWorks

Started by sig5...@hotmail.com in LPC200011 years ago 3 replies

> > The downside is the extra work involved in setting GCC up for a > > particular target and in sourcing an IDE. We use Ashling tools as a...

> > The downside is the extra work involved in setting GCC up for a > > particular target and in sourcing an IDE. We use Ashling tools as a > > front-end for GCC for LPC2xxx and other ARM work, and are very happy > > with them (no connection by the way). For developing commercial > > applications, the cost of such tools is worth it, I think, just for > > the speed of getting up and running and


Startup or crt.s file for lpc2148 using GCC compiler

Started by raju_nem in LPC20009 years ago 1 reply

Hi, Any body has startup file and make file working fine with interrupts using GCC compiler (yogarto tool) on windows xp?Thanks...

Hi, Any body has startup file and make file working fine with interrupts using GCC compiler (yogarto tool) on windows xp?Thanks inadvance. ------------------------------------


JTAG debugging tools

Started by householder_lpc in LPC200013 years ago 7 replies

Hi all, I'm currently trying to find good and not too expensive tools for programming and debugging the LPC2148. I intend to use gcc as...

Hi all, I'm currently trying to find good and not too expensive tools for programming and debugging the LPC2148. I intend to use gcc as compiler. Can anyone describe what advantages Rowley Crossworks has over Eclipse+gcc+gdb? In addition, what is the main difference between the different lowcost (sub-150$) JTAG adapters? I understand that, w


Newbie question, LPC2292 examples for GCC

Started by miklospflancer in LPC200012 years ago 1 reply

I have an Embest Board with LPC2292, I am having problems running code from flash and internal Ram, I have tried to port the example from...

I have an Embest Board with LPC2292, I am having problems running code from flash and internal Ram, I have tried to port the example from Eclipse tutorial by Jim Lynch, i.e toggling an IO. However once uploaded to the target - they dont seem work. Does anyone have any simple examples for GCC that I could use to get me up and running? Best Regards