Startup code working with lpc214x and not with lpc2468

Started by urjust2oocool in LPC200010 years ago 29 replies

Hello everyone, I 'm able to work the GNU compiler provided with keil on LPC 214x. I used the staup code provided with the gnu examples of keil....

Hello everyone, I 'm able to work the GNU compiler provided with keil on LPC 214x. I used the staup code provided with the gnu examples of keil. There was no issues. I tried running a small application on LPC 2468. After compiling when i try to debug it in debug mode it ends up in an infinite loop within this 3 lines shown below. 0x0000007C E5903008 LDR R3,[R0,#0x0008] 0x000000...


How can I load an executable into both Flash and RAM using GNU ld

Started by r_williams408 in LPC200012 years ago 1 reply

I am using the Keil IDE with the GNU compiler and linker. My target is a LPC2124 running at 60Mhz. I need to load part of my application into...

I am using the Keil IDE with the GNU compiler and linker. My target is a LPC2124 running at 60Mhz. I need to load part of my application into Flash and a couple of library routines into RAM. So far I have been unable to link the library so that it can be copied into RAM and executed. The linker seems to always want to resolve all of the code links into Flash address space. I have tried...


Re: Renaming registers: IAR versus GNU

Started by Domen Puncer in LPC20008 years ago

--- In l...@yahoogroups.com, "adrianunderwater" wrote: > > Hi all... > > I have an IAR assembly project (LPC2378) that I am porting to...

--- In l...@yahoogroups.com, "adrianunderwater" wrote: > > Hi all... > > I have an IAR assembly project (LPC2378) that I am porting to GNU. In IAR renaming registers is easy and straightforward, using #define, as such: > > 1: #define IP r12 > 2: #define U r11 > 3: #define W r0 > > and using like this: > > 4: add IP,r0,#45 > 5: add U,r0,#43 > > When I


ARM ,BSS start address

Started by chet...@gmail.com in LPC200011 years ago
GNU

Hi there, Iam doing a CAN based project using LPC2368 controller. The development is done using GNU compiler. I have not specified the BSS...

Hi there, Iam doing a CAN based project using LPC2368 controller. The development is done using GNU compiler. I have not specified the BSS start address in the Keil uVision3 IDE settings for the GNU compiler. The code is working without any problems. I would like to know whether the BSS start address must be specified in the Linker settings. Regards, Chetan


Re: Using GNU's arm-linux-gnueabi tools for programming LPC2148

Started by Felipe de Andrade Neves Lavratti in LPC20005 years ago

You should use arm-elf-gcc, not the linux-gnueabi version. Google for yagarto tools, you will find examples. On Tue, Sep 10, 2013 at 1:51 AM, ...

You should use arm-elf-gcc, not the linux-gnueabi version. Google for yagarto tools, you will find examples. On Tue, Sep 10, 2013 at 1:51 AM, wrote: > ** > I can program for LPC2148 using keil compiler tools. But I want to use > GNU's tools to compile and debug . I try some tutorials available online > but I fail some how. So I am searching some Startup Code so that My C


Bit wise operations with 64 bit variables

Started by r_goncalves2000 in LPC200012 years ago 4 replies

Hello all. I'm sorry, if this is a off topic question, but I'm programming for a LPC2294 in C language. Does any one knows if bit wise...

Hello all. I'm sorry, if this is a off topic question, but I'm programming for a LPC2294 in C language. Does any one knows if bit wise operations in 64 bit variables are possible? I'm using gnu 4.0.2 I declare a 64 bit variable like: unsigned long long Var Them I make: var |= (1 < < 32) GNU gives a "warning: left shift count > = width of type". And the code don't work as I expe


Where can I find GNU GCC coding examples for lpc2000?

Started by jctt001 in LPC200013 years ago 2 replies

Hello, I am a beginner about ARM coding; Anyone can tell me where can I find GNU GCC coding examples for lpc2000? Thanks, Yahoo! Groups...

Hello, I am a beginner about ARM coding; Anyone can tell me where can I find GNU GCC coding examples for lpc2000? Thanks, Yahoo! Groups Links


Startup code for Olimex E2294

Started by Deepak in LPC200012 years ago

Hi All, I am struggling with setting up developing environment for Olimex E2294 using GNU toolchain. I have taken reference code (startup...

Hi All, I am struggling with setting up developing environment for Olimex E2294 using GNU toolchain. I have taken reference code (startup crt.s, main, makefile) and modified it as per the address map requirement for the board. I also modify linker scripts. I don't know I am missing any thing. Do anybody have reference code for Olimex E2294 board with GNU Tool chain ? Regar...


How to initialize global array when declaring it for GNU C compiler?

Started by jctt001 in LPC200012 years ago 4 replies
GNU

Dear All: I declare a global char array with initialize for GNU C compiler like : char array[20] = "abcde"; but it doesn't work;...

Dear All: I declare a global char array with initialize for GNU C compiler like : char array[20] = "abcde"; but it doesn't work; unless I assign them in main() like : int main(void) { .... array[0] = 'a'; array[1] = 'b'; array[2] = 'c'; ........ .... } Anyone can help me please, thanks, Stephen


Header File for LPC2294 and GNU GCC?

Started by "claus.meyer73" in LPC200012 years ago 3 replies

Hello, has anyone a header file for the LPC2294 that i can use with Eclipse and GNU GCC? Thank you... Claus

Hello, has anyone a header file for the LPC2294 that i can use with Eclipse and GNU GCC? Thank you... Claus


Re: diference btw GNU tool chain and ARM tool chain

Started by Mukund Deshmukh in LPC200011 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.


problem to handle interrupt routines for GNU tools LPC2138

Started by Ravindra Mishra in LPC200012 years ago 4 replies

hi all, i hav used LPC2138 using "Keil ARM Tools" for compilation and it was working well for each features of LPC2138. Now i want to use...

hi all, i hav used LPC2138 using "Keil ARM Tools" for compilation and it was working well for each features of LPC2138. Now i want to use "GNU Tools" for compiling the code . After making all project settings LED blinking code working but I am unable to execute the code using interrupts . Any body plz tell me how to write the interrupt routines .i dont know how to write & in...


experienced with "linker script" ld.exe (GNU CC RedHat) ?

Started by alberto in LPC200014 years ago

Hi, I have the following problem: I can't modify the "linker script" to fit the memory map a would. I'm using GNU CCompiler and...

Hi, I have the following problem: I can't modify the "linker script" to fit the memory map a would. I'm using GNU CCompiler and linker (ld.exe)RedHat (V.3.3.1 for ARM). I've developped a board with a microprocessor LPC2214 and now i'm debugging code. I would map memory as follow:


can't setup gnu linker script to output .data into flash

Started by Christopher Harvey in LPC20007 years ago 11 replies

I've having trouble getting gnu ld to output my .data section into flash. Here is the snippet in my ld script: MEMORY { flash :...

I've having trouble getting gnu ld to output my .data section into flash. Here is the snippet in my ld script: MEMORY { flash : ORIGIN = 0x00000000, LENGTH = 512K ram : ORIGIN = 0x40000000, LENGTH = 32K usbram : ORIGIN = 0x7FD00000, LENGTH = 8K ethram : ORIGIN = 0x7FE00000, LENGTH = 16K } [snip] .data : { __data_beg__ = .; _...


Re: ARM GNU and 64 bits double

Started by Tom Walsh in LPC200011 years ago

Tuan Pham Anh wrote: > > Hi LPC2000 group, > > I've never use ARM7, and I have a quick question: > > Currently, I use AVR and WinAVR,...

Tuan Pham Anh wrote: > > Hi LPC2000 group, > > I've never use ARM7, and I have a quick question: > > Currently, I use AVR and WinAVR, since WinAVR does not support 64 bits > double. > > I wonder if WinARM or ARM GNU supports 64 bits double or not with > at91sam7s256 or LPC2148? > It is called a "long long int" and gcc supports it, for example: typedef unsigned long long int uBig64


LPC2104 using LPC GCC Compiler Tools

Started by "Lava S. kumar" in LPC200011 years ago

sir, I am using LPC gcc compiler tools,during program compilation and debugging I face some problems. My board having one...

sir, I am using LPC gcc compiler tools,during program compilation and debugging I face some problems. My board having one serial port,one modem port and one jtag connector. My tools are "GNU gdb 2003-09-20-cvs (cygwin special),copy right 2003 GDB configured as "i686-pc-cygwin",and GNU gdb 6.1-macraigor2. First off all know my procedure 1. ...


Re: Keil USBmem example doesn't work when GCC compiler is used

Started by dush...@yahoo.co.in in LPC200011 years ago 1 reply

Hi Friend Dushyant here, right now i am working on USB serial communication .i am using USBHID code(available from keil.com).this code is...

Hi Friend Dushyant here, right now i am working on USB serial communication .i am using USBHID code(available from keil.com).this code is compitable for real view compliler.this code was working in real view compiler and USB was also detected. now our real view is expiered. so We r using GNU (cygwin) compiler.for that i had change some syntax like __irq which was not supported in GNU ...


Regarding C and assembly file compilation and linking

Started by subhashinimanne in LPC200014 years ago 4 replies

What are the sequence of steps required to create executable file from C source file using GNU Compilers. What are the...

What are the sequence of steps required to create executable file from C source file using GNU Compilers. What are the necessary options used for that What are the Sequence of steps required to create executable file form Assembly sourec file using GNU Compilers.


GNU compiler ERROR/Warnings

Started by chet...@gmail.com in LPC200010 years ago 13 replies

Hi there, Iam using Keil uVision3(MDK 3.11) with GNU compiler for my LPC2368 based project. Iam seeing the following error (undefined...

Hi there, Iam using Keil uVision3(MDK 3.11) with GNU compiler for my LPC2368 based project. Iam seeing the following error (undefined reference to '__udivsi3') and warnings( missing braces around initializer) : Build target 'MCB2300' assembling Startup.s... compiling LPC2000_CAN_Driver.c... src/LPC2000_CAN_Driver.c(72): warning: missing braces around initializer src/LPC2000_CAN_Driver.c(...


startup and linker descriptor files for lpc2468 on KEIL uVision IDE using GNU

Started by ravikaundinyasa in LPC20009 years ago
GNU

Dear friends, I have an urgent requirement for lpc2468 startup.s and target.ld files on KEIL uVision IDE using GNU tool chain. I tried by making...

Dear friends, I have an urgent requirement for lpc2468 startup.s and target.ld files on KEIL uVision IDE using GNU tool chain. I tried by making changes to default startup.s that comes from RealView compiler. But it is not working. I selected the tool chain options in folders/extensions tab correctly. I also checked the option "Don't use default startup file". Thanks in advance Ravikanth -...