Forums

where is the RTOS running?

Started by 88wa...@163.com July 19, 2009
Recently ,i use the uc/osii on lpc2138.
but i don't know the place the rtos is running.
it's ram,or flash in the chip?
i wish the answers.
thank you in advance.

An Engineer's Guide to the LPC2100 Series

> Recently ,i use the uc/osii on lpc2138.
> but i don't know the place the rtos is running.
> it's ram,or flash in the chip?
> i wish the answers.
> thank you in advance.
You project settings will determine that, nobody else can answer the
question without inspecting the linker script you are using.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.FreeRTOS.org/Documentation
FreeRTOS eBook - learn how to use an RTOS - includes full source code.
One dumb way of finding out is by placing a breakpoint on one the of the functions and when program stops check the program counter (PC) to see if you are in flash or RAM

Note that it is possible that some functions an be in flash and some in RAM

Gus
--- In l..., "FreeRTOS info" wrote:
>
> > Recently ,i use the uc/osii on lpc2138.
> > but i don't know the place the rtos is running.
> > it's ram,or flash in the chip?
> > i wish the answers.
> > thank you in advance.
> You project settings will determine that, nobody else can answer the
> question without inspecting the linker script you are using.
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for Microcontrollers. More than 7000 downloads per month.
>
> + http://www.FreeRTOS.org/Documentation
> FreeRTOS eBook - learn how to use an RTOS - includes full source code.
>

--- In l..., 88wangqh@... wrote:
>
> Recently ,i use the uc/osii on lpc2138.
> but i don't know the place the rtos is running.
> it's ram,or flash in the chip?
> i wish the answers.
> thank you in advance.
>
Where is your program located, where are your data located? If you know the answer to these questions, how do you know? Because you assigned memory locations to them in the linker.

So, Richard already made the point, it is in your linker script.

A couple hints; if you don't know it is probably still running in the SRAM and there is rather limited space there.
Where should it run? There are executable sections, those should be located in the flash and there are data buffers, stack, task information, those will always have to be in RAM because they change all the time.

Probably still got some studying ahead of you.

Bob
http://www.lpc2000.com