Re: Startup code



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 \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



.



Relevant Pages

  • Re: So... What are the alternatives? Was: I dont use an RTOS because...
    ... I have never heard an RTOS having ... reasons that another poster recommended using multiple processors: ... provides most, of the common layer as OS calls, IPC ... there are embedded systems and there are ...
    (comp.arch.embedded)
  • Re: How ordinary embedded differs from RTOS code?
    ... Many "ordinary" embedded systems use RTOSs; I assume you mean what's the difference with using an RTOS vs. not. ... With an RTOS you can assign each of these to an RTOS task; without you usually write a task loop that does everything in one context. ... It may do so after checking flags, etc., or the task functions may check the flags themselves. ...
    (comp.arch.embedded)
  • Re: When A Embedded System Need An OS
    ... It is just like asm or a higher language like c. ... timer flags. ... An RTOS provides better and more flexible ways to schedule your tasks ... I recommend you to read the following books about Embedded Systems: ...
    (comp.arch.embedded)
  • Re: So... What are the alternatives? Was: I dont use an RTOS because...
    ... Roberto Waltman wrote: ... > I agree with Tim - Any OS, not necessarily an RTOS. ... there are embedded systems and there are ... Tim Wescott ...
    (comp.arch.embedded)
  • RTOS for an Embedded System
    ... When should we use an RTOS for an Embedded System? ... Do I require startup code even if I have an RTOS or RTOS itself will ... take care of boot up. ...
    (comp.sys.arm)