EmbeddedRelated.com
Forums
Memfault Beyond the Launch

FreeRTOS on AT91SAM7S-EK

Started by "gabriele.brosulo" August 10, 2007
Hi all,
I've got an AT91SAM7S256 on the subject's evaluation board, and I can
use it with some simple code that blinks leds, read/write from UART0
and DBGU, count time and use interrupt.

I develop with Eclipse, gnuarm's gcc toolchain, OpenOcd & friends on a
linux box.

Now I want to use FreeRTOS, I downloaded it from the official site,
but I can't compile it. Also I didn't found a demo application for my
board.. I also don't know if it possible with my board and my develop
environment.

How can I do it? Is there another better multitasking OS for my board?

Any help is welcome!

Thanks a lot, and sorry for my bad English :)

g4b0
gabriele,

Have you taken a look at Micrium's uC/OSII?

http://micrium.com/

>From: "gabriele.brosulo"
>Reply-To: A...
>To: A...
>Subject: [AT91SAM] FreeRTOS on AT91SAM7S-EK
>Date: Fri, 10 Aug 2007 14:33:00 -0000
>
>Hi all,
>I've got an AT91SAM7S256 on the subject's evaluation board, and I can
>use it with some simple code that blinks leds, read/write from UART0
>and DBGU, count time and use interrupt.
>
>I develop with Eclipse, gnuarm's gcc toolchain, OpenOcd & friends on a
>linux box.
>
>Now I want to use FreeRTOS, I downloaded it from the official site,
>but I can't compile it. Also I didn't found a demo application for my
>board.. I also don't know if it possible with my board and my develop
>environment.
>
>How can I do it? Is there another better multitasking OS for my board?
>
>Any help is welcome!
>
>Thanks a lot, and sorry for my bad English :)
>
>g4b0
>

_________________________________________________________________
Messenger Caf open for fun 24/7. Hot games, cool activities served daily.
Visit now. http://cafemessenger.com?ocid=TXT_TAGHM_AugHMtagline
--- In A..., "HENK VISSER" wrote:
> gabriele,
>
> Have you taken a look at Micrium's uC/OSII?
>
> http://micrium.com/
>

Hi Henk,

I had a look at that site just this afternoon, but I didn't find any
port for my board.. Do you think I have to search better?

I also read that the ports already done for the atmel's board on that
site are just for the IAR compiler, I'm searching for a gcc port..

Thanks for your help.
g4b0
> Now I want to use FreeRTOS, I downloaded it from the official site,
> but I can't compile it.

Why not - what is the issue?

>Also I didn't found a demo application for my
> board..

Here is a link for that board
http://www.freertos.org/portsam7iar.html . It uses IAR but there are
FreeRTOS.org ports for the SAM7 that use GCC, so it is just a case of
targeting it at a different board. The port pins on which the LEDs
are placed might be different. The amount of ROM/RAM might be
different. But everything else I suspect will be the same.

Here is a port for the SAM7X using IAR
http://www.freertos.org/portsam7xiar.html

Here is a port for the SAM7X using Rowley
http://www.freertos.org/portsam7xlwIP.html This uses GCC with the
Rowley interface but the port code is the same.

Here is the same with command line makefile for GCC.
http://www.freertos.org/portsam7xlwIP.html#CommandLineUsage
The SAM7X is very similar to the SAM7S but has an Ethernet MAC. You
will have to remove the code relating to the Ethernet, but other than
that I think this is what you are after.

Sorry I don't have an exact match of processor and compiler, but then
there are probably 5 compilers and 20 boards, so that's an awful lot
of combinations.

>I also don't know if it possible with my board and my develop
> environment.

Here is an article on FreeRTOS with Eclipse. Again not for your
processor, but gives you all the information you require:
http://www.elektronikpraxis.vogel.de/themen/embeddedsoftwareengineerin
g/implementierung/articles/89587/ [German]

http://www.elektronikpraxis.vogel.de/fileserver/vogelonline/files/419.
pdf [English]
Regards,
Richard.

http://www.FreeRTOS.org
http://www.SafeRTOS.com
gabriele.brosulo wrote:
> Hi all,

Hi,

> I've got an AT91SAM7S256 on the subject's evaluation board, and I can
> use it with some simple code that blinks leds, read/write from UART0
> and DBGU, count time and use interrupt.
>
> I develop with Eclipse, gnuarm's gcc toolchain, OpenOcd & friends on a
> linux box.
>
> Now I want to use FreeRTOS, I downloaded it from the official site,
> but I can't compile it. Also I didn't found a demo application for my
> board.. I also don't know if it possible with my board and my develop
> environment.
>

I'm using exactly the same environment. I started from SAM7X-LWIP-GCC
project from FreeRTOS, replaced SAM7X specific ATMEL files in
portable/gcc/arm7_AT91SAM7S(yes I guess port is originally started using
a SAM7S then changed to SAM7X) with SAM7S related files. Moreover, you
may need to edit Board.h file in order to correctly blink leds and you
should remove lwIP related code from the Makefile. Then It should work
definitely. I guess editing the linker script is not mandatory, I think
SAM7S256 and SAM7X256 has the same memory map.

These info may be incomplete since it was more than 1 year I did this,
re-doing this should be a 5 minute task. If these don't work, I'll be
happy to mail a SAM7S64(I only have that board to test) port for you.

Regards,
Caglar AKYUZ
Yes they are all probably for IAR!

>From: "gabriele.brosulo"
>Reply-To: A...
>To: A...
>Subject: [AT91SAM] Re: FreeRTOS on AT91SAM7S-EK
>Date: Fri, 10 Aug 2007 16:15:40 -0000
>
>--- In A..., "HENK VISSER" wrote:
> >
> >
> > gabriele,
> >
> > Have you taken a look at Micrium's uC/OSII?
> >
> > http://micrium.com/
> >Hi Henk,
>
>I had a look at that site just this afternoon, but I didn't find any
>port for my board.. Do you think I have to search better?
>
>I also read that the ports already done for the atmel's board on that
>site are just for the IAR compiler, I'm searching for a gcc port..
>
>Thanks for your help.
>g4b0
>

_________________________________________________________________
A new home for Mom, no cleanup required. All starts here.
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
Gabriele

Did you solve the problem of using FreeRTOS in AT91SAM7S_EK ? If so, could you send me directions to work with it ?

Thanks

MArcio
----- Original Message -----
From: Richard
To: A...
Sent: Friday, August 10, 2007 7:38 PM
Subject: [AT91SAM] Re: FreeRTOS on AT91SAM7S-EK
> Now I want to use FreeRTOS, I downloaded it from the official site,
> but I can't compile it.

Why not - what is the issue?

>Also I didn't found a demo application for my
> board..

Here is a link for that board
http://www.freertos.org/portsam7iar.html . It uses IAR but there are
FreeRTOS.org ports for the SAM7 that use GCC, so it is just a case of
targeting it at a different board. The port pins on which the LEDs
are placed might be different. The amount of ROM/RAM might be
different. But everything else I suspect will be the same.

Here is a port for the SAM7X using IAR
http://www.freertos.org/portsam7xiar.html

Here is a port for the SAM7X using Rowley
http://www.freertos.org/portsam7xlwIP.html This uses GCC with the
Rowley interface but the port code is the same.

Here is the same with command line makefile for GCC.
http://www.freertos.org/portsam7xlwIP.html#CommandLineUsage
The SAM7X is very similar to the SAM7S but has an Ethernet MAC. You
will have to remove the code relating to the Ethernet, but other than
that I think this is what you are after.

Sorry I don't have an exact match of processor and compiler, but then
there are probably 5 compilers and 20 boards, so that's an awful lot
of combinations.

>I also don't know if it possible with my board and my develop
> environment.

Here is an article on FreeRTOS with Eclipse. Again not for your
processor, but gives you all the information you require:

http://www.elektronikpraxis.vogel.de/themen/embeddedsoftwareengineerin
g/implementierung/articles/89587/ [German]

http://www.elektronikpraxis.vogel.de/fileserver/vogelonline/files/419.
pdf [English]

Regards,
Richard.

http://www.FreeRTOS.org
http://www.SafeRTOS.com
On Thursday 16 August 2007 14:43:40 Marcio Campos Lima(Net Open) wrote:
> Gabriele
>
> Did you solve the problem of using FreeRTOS in AT91SAM7S_EK ? If so,
> could you send me directions to work with it ?
>
> Thanks
>
> MArcio

Hi Marcio,
Now I try to solve the problem, I'm just returned from my holiday. Like I said
in a previous post I'll post my solution (if I've got one) to the list after
my test. Did you find a solution during the last week?

g4b0
On Saturday 11 August 2007 00:38:41 Richard wrote:
> Here is the same with command line makefile for GCC.
> http://www.freertos.org/portsam7xlwIP.html#CommandLineUsage
> The SAM7X is very similar to the SAM7S but has an Ethernet MAC. You
> will have to remove the code relating to the Ethernet, but other than
> that I think this is what you are after.

First of all, sorry for my late, I was in holiday!!
I will try to modify that code, then I'll post to the list my result.

thanks a lot

g4b0
On Saturday 11 August 2007 00:38:41 Richard wrote:
> Here is the same with command line makefile for GCC.
> http://www.freertos.org/portsam7xlwIP.html#CommandLineUsage
> The SAM7X is very similar to the SAM7S but has an Ethernet MAC. You
> will have to remove the code relating to the Ethernet, but other than
> that I think this is what you are after.

Hi Richard,
I tried this solution, I had to do some change:

Added AT91SAM7S256.h to my project.
Modified all occurencies of AT91SAM7X256.h with the new one.
Solved some case-sensitive problem (I work on linux).
Removed from makefile all occurencies of lwIP and BasicWEB.c.
Compiled.
Programmed on flash (no error from OpenOCD).

No LED blinking :(

Any hint? I can post every file of my project, if you need to have a look at
them..

Thanks a lot
g4b0

Memfault Beyond the Launch