Forums

FREERTOS for OLIMEX LPC2378STK

Started by jdauchot January 10, 2010
Hi

I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
Has anyone ported this OS on that board and has a baseline project using YARGARTO toolchain or similar I could look at?

Regards

Jean-Jacques

An Engineer's Guide to the LPC2100 Series

jdauchot wrote:
> Hi
>
> I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
> Has anyone ported this OS on that board and has a baseline project using YARGARTO toolchain or similar I could look at?
Not the right board, but a good starting point:

http://www.freertos.org/portlpc2368_Eclipse.html
http://www.freertos.org/portlpc2368uIP.html

Note these demos are rather old now. The MAC driver in the LPC1768
examples is much better and I think compatible.

See also:

http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

Although on that page it is the text and image that is out of date :o)
The principals are the same though.

Regards,
Richard.

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

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

jdauchot wrote:
> Hi
>
> I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
> Has anyone ported this OS on that board and has a baseline project using YARGARTO toolchain or similar I could look at?
....should also so, if you are using a very up to date GCC version then
make sure you are using FreeRTOS V6.0.2 as the way the SWI instruction
was being used had to change.

Regards,
Richard.

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

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

Thanks for reply, I will start on this and pass on any port interface code.

Regards

Jean-Jacques
--- In l..., FreeRTOS Info wrote:
>
> jdauchot wrote:
> > Hi
> >
> > I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
> > Has anyone ported this OS on that board and has a baseline project using YARGARTO toolchain or similar I could look at?
>
>
> ....should also so, if you are using a very up to date GCC version then
> make sure you are using FreeRTOS V6.0.2 as the way the SWI instruction
> was being used had to change.
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for Microcontrollers. More than 7000 downloads per month.
>
> + http://www.SafeRTOS.com
> Certified by T as meeting the requirements for safety related systems.
>

I've used FreeRTOS on that board. But I removed the whole code and let only
the FREERTOS kernel it self.

Pvt me if want to have it.

2010/1/10 jdauchot

> Hi Richard
>
> Thanks for reply, I will start on this and pass on any port interface code.
>
> Regards
>
> Jean-Jacques
> --- In l... , FreeRTOS Info
> wrote:
> >
> > jdauchot wrote:
> > > Hi
> > >
> > > I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
> > > Has anyone ported this OS on that board and has a baseline project
> using YARGARTO toolchain or similar I could look at?
> >
> >
> > ....should also so, if you are using a very up to date GCC version then
> > make sure you are using FreeRTOS V6.0.2 as the way the SWI instruction
> > was being used had to change.
> >
> > Regards,
> > Richard.
> >
> > + http://www.FreeRTOS.org
> > Designed for Microcontrollers. More than 7000 downloads per month.
> >
> > + http://www.SafeRTOS.com
> > Certified by T as meeting the requirements for safety related systems.
> >
>
Hi Felipe

i will be interested in that code project

regards

Jean-Jacques
--- In l..., "Felipe de Andrade Neves L." wrote:
>
> I've used FreeRTOS on that board. But I removed the whole code and let only
> the FREERTOS kernel it self.
>
> Pvt me if want to have it.
>
> 2010/1/10 jdauchot
>
> >
> >
> > Hi Richard
> >
> > Thanks for reply, I will start on this and pass on any port interface code.
> >
> > Regards
> >
> > Jean-Jacques
> >
> >
> > --- In l... , FreeRTOS Info
> > wrote:
> > >
> > > jdauchot wrote:
> > > > Hi
> > > >
> > > > I am about to experiment with freertos on the OLIMEX LPC2378STK kit.
> > > > Has anyone ported this OS on that board and has a baseline project
> > using YARGARTO toolchain or similar I could look at?
> > >
> > >
> > > ....should also so, if you are using a very up to date GCC version then
> > > make sure you are using FreeRTOS V6.0.2 as the way the SWI instruction
> > > was being used had to change.
> > >
> > > Regards,
> > > Richard.
> > >
> > > + http://www.FreeRTOS.org
> > > Designed for Microcontrollers. More than 7000 downloads per month.
> > >
> > > + http://www.SafeRTOS.com
> > > Certified by T as meeting the requirements for safety related systems.
> > >
> >
> >
>

Hello all RTOS installers,

I am about to attempt to install freeRTOS on a ET Board (from Tailand)
using the LPC2368.
Firstly I'll use dummy portable.h and freerotconfig.h file just to get
things up and running.
Then go on from there. I've ordered the Documentaion - which will be a
great help - I hope-
At the moment no problem with compiling.
bye for now
Bonzadog

jdauchot schrieb:
>
> Hi Felipe
>
> i will be interested in that code project
>
> regards
>
> Jean-Jacques
>
> --- In l... ,
> "Felipe de Andrade Neves L." wrote:
> >
> > I've used FreeRTOS on that board. But I removed the whole code and
> let only
> > the FREERTOS kernel it self.
> >
> > Pvt me if want to have it.
> >
> > 2010/1/10 jdauchot
> >
> > >
> > >
> > > Hi Richard
> > >
> > > Thanks for reply, I will start on this and pass on any port
> interface code.
> > >
> > > Regards
> > >
> > > Jean-Jacques
> > >
> > >
> > > --- In l...
> , FreeRTOS Info
> > > wrote:
> > > >
> > > > jdauchot wrote:
> > > > > Hi
> > > > >
> > > > > I am about to experiment with freertos on the OLIMEX
> LPC2378STK kit.
> > > > > Has anyone ported this OS on that board and has a baseline project
> > > using YARGARTO toolchain or similar I could look at?
> > > >
> > > >
> > > > ....should also so, if you are using a very up to date GCC
> version then
> > > > make sure you are using FreeRTOS V6.0.2 as the way the SWI
> instruction
> > > > was being used had to change.
> > > >
> > > > Regards,
> > > > Richard.
> > > >
> > > > + http://www.FreeRTOS.org
> > > > Designed for Microcontrollers. More than 7000 downloads per month.
> > > >
> > > > + http://www.SafeRTOS.com
> > > > Certified by T as meeting the requirements for safety related
> systems.
> > > >
> > >
> > >
> > >
> >

I am struggling to get initialization of C++ global objects working.
AFAIK I must gather all .ctor sections, which contain words that must be
called, but this does not seem to work. Can anyone provide a
known-working example of the linkerscript and initialization code (ctr0.s)?

--

Wouter van Ooijen

-- -------
Van Ooijen Technische Informatica: www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: www.voti.nl/hvu

Hi Wouter,

I assume you are using CrossWorks. I had a problem with C++ constructors once, they were not called. The crt0.s is correct, the
problem was in the section placement. However the section placement file is usually processor specific, I had a problem with
LPC288x.














name=".flash_rodata"/>







In that snippet the sections in CACHED_FLASH must be given in the same order as the first sections in FLASH (it is but wasn't
before). Then follows the declarations for dtors and ctors. I reported that to Rowley and it is fixed in the new Processor package
(it looks fixed, I am still using my own).

With regards,
Jan

----- Original Message -----
From: "Wouter van Ooijen"
To:
Sent: Monday, January 11, 2010 9:33 AM
Subject: Re: [lpc2000] C++ global intitilizations (ctors)
>I am struggling to get initialization of C++ global objects working.
> AFAIK I must gather all .ctor sections, which contain words that must be
> called, but this does not seem to work. Can anyone provide a
> known-working example of the linkerscript and initialization code (ctr0.s)?
>
> --
>
> Wouter van Ooijen
>
> -- -------
> Van Ooijen Technische Informatica: www.voti.nl
> consultancy, development, PICmicro products
> docent Hogeschool van Utrecht: www.voti.nl/hvu
>
>
Jan Vanek wrote:
> Hi Wouter,
>
> I assume you are using CrossWorks.

I use GCC, I assume CW is not GCC-based? But I'll have a look at your
problem/solution anyway. The nitty-gritty of linkerscripts are still a
mistery to my (especially all those complex section names and what they
are supposed to be).

--

Wouter van Ooijen

-- -------
Van Ooijen Technische Informatica: www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: www.voti.nl/hvu