Re: Startup code
- From: Chris Hills <chris@xxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 14:29:32 +0100
In article <1120046534.853992.40170@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
>>
>> No, in embedded systems, startup code should be restricted to setting up
>> stack pointers etc., initialising or clearing variables, setting up the
>> bones of the interrupt system where this needs to be done in RAM, and
>> executing main(). Anything else should be explicit, in C, easily
>> accessible to the code writer, well documented, and obvious where it is.
>
>Startup code can also copy the program from flash to ram and
>jump to an address in ram.
>
>If you use an rtos you need to initialize the rtos structures
>before the main task is started.
Starting an RTOS could use the same start-up code and normal. the RTOS
is just an application. Then the rest is done in C.
Then you do not need start up code for the application running on the
OS.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@xxxxxxxxxxxx www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
.
- References:
- Startup code
- From: ravikumar . n
- Re: Startup code
- From: Jet Morgan
- Re: Startup code
- From: Meindert Sprang
- Re: Startup code
- From: Jet Morgan
- Re: Startup code
- From: Meindert Sprang
- Re: Startup code
- From: Paul Burke
- Re: Startup code
- From: Lanarcam
- Startup code
- Prev by Date: Re: Startup code
- Next by Date: new to ARM, need guidence
- Previous by thread: Re: Startup code
- Next by thread: Re: Startup code
- Index(es):
Relevant Pages
|