Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

regarding programming lpc2106

regarding programming lpc2106

2004-06-04 by debasishmohapatro

i would like to know whether there is any standard header file 
present for the processor or we have to write it.

if there where can i find it

and reagarding a startup code for the lpc proceesor is there any 
startup files.

regards
debasish

Re: [lpc2000] regarding programming lpc2106

2004-06-04 by Robert Adsett

At 09:31 AM 6/4/04 +0000, you wrote:
>i would like to know whether there is any standard header file
>present for the processor or we have to write it.
>
>if there where can i find it
>
>and reagarding a startup code for the lpc proceesor is there any
>startup files.

What are you using to program with?  If GCC there are some examples at 
http://www.aeolusdevelopment.com (the newlib port layer download has a 
header file, a link control file and an example startup).  There are also 
some files in the groups files area.

If it's one of the non-gcc tools then the appropriate startup and headers 
should be included with the tools.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: regarding lpc2106 linker defined file

2004-06-05 by debasishmohapatro

regarding the linker file(lpc2106.ld),
i am unable to make it out what exactly the file is for and how it is 
designed for the need of a LPC processor.can any body give a detail 
expalnation of the file or some link where i can find some explanatiom

Re: [lpc2000] Re: regarding lpc2106 linker defined file

2004-06-05 by Robert Adsett

At 11:52 AM 6/5/04 +0000, you wrote:
>regarding the linker file(lpc2106.ld),

Which one?  Where did you get it from?  There are multiple variations.  I 
think there is at least one in the groups files section.  I know there is 
one with the newlib port I did and with some of the packaged GCC ARM ports 
out there.

>i am unable to make it out what exactly the file is for and how it is
>designed for the need of a LPC processor.can any body give a detail
>expalnation of the file or some link where i can find some explanatiom

You could check the documentation for ld.

Basically, this file will tell ld where to place each 'segment' of code and 
data generated by the compiler and assembler.  For the LPC and similar 
micros that means it 'tells' ld what foes in flash, what goes in RAM, and 
what is placed in flash to be copied to RAM by the startup.  It also tells 
the startup where to place the stack and in some cases what order to place 
some things in.

In some instances the special function registers are also defined in the file.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.