EmbeddedRelated.com
Forums
Memfault Beyond the Launch

RTOS and Interrupts on the 2148

Started by nishchay mhatre June 17, 2009
RTOS isnt like linux or anything else.
RTOS is just a program witch shortly switch tasks, it is, instead of running
the program sequencialy, it runs in parallel mode between functions.
In a RTOS you will program your application with the kernell, while in
windows or linux there are a boot loader, witch load and run the kernell and
provide full hardwaare translation to the OS, and the aplication runs above
the OS. And teorically, a OS or application CANT acces hardware directly, it
must be done through a BIOS or BOOTLOADER, witch control the acces to a
medium avoiding colisions or unwanted behavior where, becouse of its
parallel kind of execution, different tasks or functions can try to access a
medium at the same time, so it is necessary a special control.

On a RTOS you will program the application using the RTOS functions to
create tasks, use fifos and buffers, check semaphores, and all other things
that the RTOS implement. It is much much lighter then a uClinux, require no
bootloader and it is fully programed with the "kernell".

2009/6/18 nishchay mhatre

> Hi all,
> I need to clear some concepts regarding RTOS.
> I know what makes an RTOS different from an OS like Linux or Windows XP and
> I think I might need to use an RTOS for this project.
> But how exactly is an RTOS used? This is my rough idea:
> You first port the RTOS to your hardware (which is analogous to installing
> an OS on your pc (?) ).
> Then there must be some kind of shell which helps you to write programs
> that
> will run on the RTOS -hardware platform. So through the host computer we
> access this shell and do the needful.
> Is this the right idea? Please correct me.
> Also, how do I do this practically. Suppose I have to port an RTLinux onto
> an LPC2148...
> What hardware, software and procedure should I use?
> Thank you,
>
> -Nishchay
>
> On Wed, Jun 17, 2009 at 11:26 PM, J.C. Wren >
> wrote:
>
> >
> >
> > While it's for GCC and not Keil or whatever, you may wish to look at the
> > port at http://jcwren.com/arm
> > --jc
> >
> >
> > On Wed, Jun 17, 2009 at 11:21 AM, Felipe de Andrade Neves Lavratti <
> > f...@gmail.com >
> wrote:
> >
> > >
> > >
> > > Yes, that's what I am trying to do.. many have said it is a simple job
> > but,
> > > for my skills, it's being a pain in the a**.
> > >
> > > I've had to do a lot of changing from the LPC23xx.s to the ports, the
> VIC
> > > interrupts and the Timers.. and I havent got it working yet.
> > > Att
> > > Fanl.
> > > 2009/6/17 > 40freertos.org> > > 40freertos.org>>
> > >
> > > >
> > > >
> > > > > Porting a FreeRTOS isnt a very easy thing to do on Keil once it
> > doesn't
> > > > uses
> > > > > the GCC or WINARM compiler. So it has different methods of
> > > programation.
> > > > I
> > > > > am having a lot of troubles porting a 2129 keil FreeRTOS to 2378.
> > > >
> > > > Moving a demo project from one LPC device to another is not really
> > > > 'porting'
> > > > but an exercise in changing the linker script, and sometimes changing
> > the
> > > > timer use in prvSetTimerInterrupt(). There is an LPC/Keil example in
> > the
> > > > FreeRTOS download.
> > > >
> > > > Regards,
> > > > Richard [FreeRTOS]
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> ~~Jai Hind~~
>
>
>
>
>


An Engineer's Guide to the LPC2100 Series


Memfault Beyond the Launch