Forums

RTOS

Started by Ravi January 4, 2008
Dear all,

Can anybody guide me to start working on RTOS.
I have some exprience in embedded without RTOS for same chip.
I have LPc2148 board and using WinARM compiler.
Can anyone tell me from where to start for RTOS.
I had a snap of RTOS concepts and how it works.
But need help on how to load it on chip and how to program the tasks.
Waiting for reply...

with regards
Ravi




An Engineer's Guide to the LPC2100 Series

Hello Ravi,

Refer to this http://www.freertos.org/ link. There is freertos with LPC2148 demo code.
You can also try TNKernal http://www.tnkernel.com/, which is also having some sample code .

Best Regards,
Karun.

----- Original Message ----
From: Ravi
To: l...
Sent: Friday, January 4, 2008 4:05:48 PM
Subject: [lpc2000] RTOS

Dear all,

Can anybody guide me to start working on RTOS.
I have some exprience in embedded without RTOS for same chip.
I have LPc2148 board and using WinARM compiler.
Can anyone tell me from where to start for RTOS.
I had a snap of RTOS concepts and how it works.
But need help on how to load it on chip and how to program the tasks.

Waiting for reply...

with regards
Ravi



____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Thanx Mr Karunanithy,
for your kind help and quick reply.

I'll come back after browsing http://www.freertos.org/

with regards

Ravi
On Fri, 04 Jan 2008 Karunanithy wrote :
>Hello Ravi,
>
>Refer to this http://www.freertos.org/ link. There is freertos with LPC2148 demo code.
>You can also try TNKernal http://www.tnkernel.com/, which is also having some sample code .
>
>Best Regards,
>Karun.
>
>----- Original Message ----
> From: Ravi
>To: l...
>Sent: Friday, January 4, 2008 4:05:48 PM
>Subject: [lpc2000] RTOS
>
>Dear all,
>
>Can anybody guide me to start working on RTOS.
>I have some exprience in embedded without RTOS for same chip.
>I have LPc2148 board and using WinARM compiler.
>Can anyone tell me from where to start for RTOS.
>I had a snap of RTOS concepts and how it works.
>But need help on how to load it on chip and how to program the tasks.
>
>Waiting for reply...
>
>with regards
>Ravi
>
>
>
> ____________________________________________________________________________________
>Be a better friend, newshound, and
>know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>




--- In l..., "Ravi" wrote:
>
> Dear all,
>
> Can anybody guide me to start working on RTOS.
> I have some exprience in embedded without RTOS for same chip.
> I have LPc2148 board and using WinARM compiler.
> Can anyone tell me from where to start for RTOS.
> I had a snap of RTOS concepts and how it works.
> But need help on how to load it on chip

Often, the RTOS is simply linked in with the rest of the app code. I
know that a 'big box' OS is nothing like that, but it is not practical
to implement a general-purpose OS with loadable drivers etc. in 16K of
RAM . Basically, you only use what you need. You can, if you
wish, load your OS in a secondary boot loader and call it from your
main app via. software interrupts, just like a 'real computer', but
there are snags with this approach when you have deployed thousands of
units and you find that the OS has a bug that has just been fixed.
Embedded developers don't, as a rule, have access to 'Patch Tuesday' :(

.. and how to program the tasks

With an RTOS, it's all about I/O. Think carefully about how you are
going to structure your data/buffers and how your I/O is going to work
- how to structure your interrupt drivers and get the buffers in/out
of them. For example, my current main app has vital CAN and UART
comms. A CAN message has up to 11 bytes and the UART buffer might
contain 14-16 bytes. It makes sense for me, therefore to use I/O
buffer structs/objects that can contain 16 bytes of payload. With the
2148 USB, you will need a pool of larger buffers.

If you get the data, interrupts and inter-thread comms right, the code
will just follow on.

Rgds,
Martin
--- In l..., "Ravi" wrote:
>
> Dear all,
>
> Can anybody guide me to start working on RTOS.
> I have some exprience in embedded without RTOS for same chip.
> I have LPc2148 board and using WinARM compiler.
> Can anyone tell me from where to start for RTOS.
> I had a snap of RTOS concepts and how it works.
> But need help on how to load it on chip and how to program the tasks.
> Waiting for reply...
>
> with regards
> Ravi
>

You can try JC Wren's demo code for the 2148 which includes demos of
just about everything including FreeRTOS: www.jcwren.com/arm

Richard
Hi Ravi,

Where are you living ....

I suggest you that RTOS is not a very easy concept ...

it is better to buy a kit of rtos from www.emblitz.com or www.eilabz.com ... they are very cheap... from Bangalore...

They are self learning kit...

Lets try if it works...

Regards,

Simran..

----- Original Message ----
From: rtstofer
To: l...
Sent: Friday, 4 January, 2008 5:46:37 PM
Subject: [lpc2000] Re: RTOS

--- In lpc2000@yahoogroups .com, "Ravi" wrote:

>

> Dear all,

>

> Can anybody guide me to start working on RTOS.

> I have some exprience in embedded without RTOS for same chip.

> I have LPc2148 board and using WinARM compiler.

> Can anyone tell me from where to start for RTOS.

> I had a snap of RTOS concepts and how it works.

> But need help on how to load it on chip and how to program the tasks.

>

>

> Waiting for reply...

>

> with regards

> Ravi

>

You can try JC Wren's demo code for the 2148 which includes demos of

just about everything including FreeRTOS: www.jcwren.com/ arm

Richard







Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
--- In l..., simran singh
wrote:
>
> Hi Ravi,
>
> Where are you living ....
>
> I suggest you that RTOS is not a very easy concept ...
>
> it is better to buy a kit of rtos from www.emblitz.com or
www.eilabz.com ... they are very cheap... from Bangalore...
>
> They are self learning kit...
>
> Lets try if it works...
>

Heh - I thought that your post was a wind-up at first, but there is
the site with kits etc!

The RTOS kit is interesting, but I am a bit surprised at the choice of
an 8051 derivative for the processor. It's been some time since I
used an 8051 but, as I remember, it has a very restricted on-chip
stack that would have to be swapped out to external RAM on every
context-switch. That's gotta be slow!

Still - they seem very good value! It's almost worth buying them,
developing software and selling them as product.

Anyone else tried these kits?

Rgds,
Martin
> -----Original Message-----
> From: l...
> [mailto:l...] On Behalf Of simran singh
> Sent: 05 January 2008 11:04
> To: l...
> Subject: Re: [lpc2000] Re: RTOS
>
> Well Martin...
>
> I totally agree with you...
>
> but problem is very simple... I tried my best to learn RTOS...
>
> I cannot have any coaching .... hence i am opting out for a kit...
>
> Regards,
>
> Simran..
You need not buy anything if you instead use a simulator.

You can run FreeRTOS.org demo projects in the MPLAB simulator for 8, 16 or
32bit devices, the AVRStudio simulator, the old Keil ARM7 simulator (now
defunct), or just run it on a PC (real mode only, this option does not
permit stepping through context switching when using Open Watcom). I think
you can run it in the Silicon Labs simulator too but can't quite remember.

See http://www.freertos.org/FreeRTOS-quick-start-guide.html

Regards,
Richard.

+ http://www.FreeRTOS.org
14 official architecture ports, 5000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.



Well Martin...

I totally agree with you...

but problem is very simple... I tried my best to learn RTOS...

I cannot have any coaching .... hence i am opting out for a kit...

Regards,

Simran..

----- Original Message ----
From: mjames_doveridge
To: l...
Sent: Saturday, 5 January, 2008 4:09:26 PM
Subject: [lpc2000] Re: RTOS

--- In lpc2000@yahoogroups .com, simran singh

wrote:

>

> Hi Ravi,

>

> Where are you living ....

>

> I suggest you that RTOS is not a very easy concept ...

>

> it is better to buy a kit of rtos from www.emblitz. com or

www.eilabz.com ... they are very cheap... from Bangalore...

>

> They are self learning kit...

>

> Lets try if it works....

>

Heh - I thought that your post was a wind-up at first, but there is

the site with kits etc!

The RTOS kit is interesting, but I am a bit surprised at the choice of

an 8051 derivative for the processor. It's been some time since I

used an 8051 but, as I remember, it has a very restricted on-chip

stack that would have to be swapped out to external RAM on every

context-switch. That's gotta be slow!

Still - they seem very good value! It's almost worth buying them,

developing software and selling them as product.

Anyone else tried these kits?

Rgds,

Martin







Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
Check out http://www.embedded.com/2000/0009/0009feat4.htm for
explanation of concepts leading from non-RTOS to RTOS-based systems.

--- In l..., "Ravi" wrote:
>
> Dear all,
>
> Can anybody guide me to start working on RTOS.
> I have some exprience in embedded without RTOS for same chip.
> I have LPc2148 board and using WinARM compiler.
> Can anyone tell me from where to start for RTOS.
> I had a snap of RTOS concepts and how it works.
> But need help on how to load it on chip and how to program the
tasks.
>
>
> Waiting for reply...
>
> with regards
> Ravi
>
>
>
>