avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Custom start up file?


From: Klaus Rudolph
Subject: Re: [avr-gcc-list] Custom start up file?
Date: Mon, 23 Dec 2002 19:04:46 +0100

Bob Paddock wrote:
> 
> Can you explain the start up process for avr-gcc?
> 
> I want to initialize some hardware just as soon at the processor starts up.
> I'm not sure which file I need to modify (the first code that will run) and
> then how to link it?
> 
> avr-gcc-list at http://avr1.org

Hi Bob,

you have to use the .init1 or .init2 section for such things.
The .init2 is the normal place to setup external ram for example.
You simple link this code together, the sections will be sorted
by the linker in correct order.

Bye
        Klaus
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]