Re: Startup code




<ravikumar.n@xxxxxxxxxxxxxxxx> wrote in message
news:1120035513.007515.3740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> Hi all,
>
> I am Ravikumar.N, new to embedded systems programming. I have
> heard a term known as "startup Code" that will be executed in all the
> processors.
>
> Please tell me:
> 1) what is the meaning of "startup Code"
> 2) What function it does.
> 3) Who has to write the startup code.
> 4) What should be the contents of a "Startup Code".

Sounds like a homework question to me.

"startup code" is a fragment of program that gets the "environment"
ready for use by (typically) a higher level language: setting
up chip-selects, bus widths, processor options, stack pointers
(all the stuff that doesn't really fit in to the way e.g. C works).

Startup code will be specific to the particular processor that
you are using, and will be specific to the way the processor
is connected to the other devices in your design. You have to write it.

Richard [in PE12]


.



Relevant Pages

  • Re: Resizing
    ... > that it will autosize to fit another screen size ... Write some startup code that reads the screen size and resize the ...
    (alt.comp.lang.borland-delphi)
  • Re: Startup code
    ... > up chip-selects, bus widths, processor options, stack pointers ... > Startup code will be specific to the particular processor that ... like further processor and peripheral initialisation is ... code, I could always use the start up code supplied by the compiler vendor, ...
    (comp.arch.embedded)