Port MicroC/OSII to AT91SAM7S With GNU Compiler

#1172750
Rate this post
useful
not useful
Lisong Yuan wrote:
> Can anybody give me any information about how to start?

You might start from here: http://micrium.com/atmel/AT91SAM7.html and
port the IAR code as necessary. The biggest problem will probably be the
porting of assembler code since the GNU assembler syntax and directives
are somewhat different.

There is an GNU based STR711 port here
http://www.yagarto.de/projects/ucosarm/index.html that may also serve as
a useful example - the memory mapping I/O and configuration will of
course be different, but between teh GNU code for STR7 and the IAR code
for your targer, you should be able to synthesise a working build.

Another GNU example for ARM:

www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf (Philips/NXP LPC)


Clifford
OP #1172751
Rate this post
useful
not useful
Thank you very much. I will take a look at them.


Clifford Slocombe wrote:
> Lisong Yuan wrote:
>> Can anybody give me any information about how to start?
>
> You might start from here: http://micrium.com/atmel/AT91SAM7.html and
> port the IAR code as necessary. The biggest problem will probably be the
> porting of assembler code since the GNU assembler syntax and directives
> are somewhat different.
>
> There is an GNU based STR711 port here
> http://www.yagarto.de/projects/ucosarm/index.html that may also serve as
> a useful example - the memory mapping I/O and configuration will of
> course be different, but between teh GNU code for STR7 and the IAR code
> for your targer, you should be able to synthesise a working build.
>
> Another GNU example for ARM:
>
> www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf (Philips/NXP LPC)
>
>
> Clifford
#1172752
Rate this post
useful
not useful
Lisong Yuan wrote:
> Thank you very much. I will take a look at them.
>
>
> Clifford Slocombe wrote:
>> Lisong Yuan wrote:
>>> Can anybody give me any information about how to start?
>>
>> You might start from here: http://micrium.com/atmel/AT91SAM7.html and
>> port the IAR code as necessary. The biggest problem will probably be the
>> porting of assembler code since the GNU assembler syntax and directives
>> are somewhat different.
>>
>> There is an GNU based STR711 port here
>> http://www.yagarto.de/projects/ucosarm/index.html that may also serve as
>> a useful example - the memory mapping I/O and configuration will of
>> course be different, but between teh GNU code for STR7 and the IAR code
>> for your targer, you should be able to synthesise a working build.
>>
>> Another GNU example for ARM:
>>
>> www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf (Philips/NXP LPC)
>>
>>
>> Clifford

I already done it. If you look in the zip file from micrium, you will
find the port for GNU :P

if you need a sample, let me know.

Jonathan
OP #1172753
Rate this post
useful
not useful
Jonathan Dumaresq wrote:
> Lisong Yuan wrote:
>> Thank you very much. I will take a look at them.
>>
>>
>> Clifford Slocombe wrote:
>>> Lisong Yuan wrote:
>>>> Can anybody give me any information about how to start?
>>>
>>> You might start from here: http://micrium.com/atmel/AT91SAM7.html and
>>> port the IAR code as necessary. The biggest problem will probably be the
>>> porting of assembler code since the GNU assembler syntax and directives
>>> are somewhat different.
>>>
>>> There is an GNU based STR711 port here
>>> http://www.yagarto.de/projects/ucosarm/index.html that may also serve as
>>> a useful example - the memory mapping I/O and configuration will of
>>> course be different, but between teh GNU code for STR7 and the IAR code
>>> for your targer, you should be able to synthesise a working build.
>>>
>>> Another GNU example for ARM:
>>>
>>> www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf (Philips/NXP LPC)
>>>
>>>
>>> Clifford
>
> I already done it. If you look in the zip file from micrium, you will
> find the port for GNU :P
>
> if you need a sample, let me know.
>
> Jonathan

Hi Jonathan,

Could you please send me your example with startup file and link script.
I still have problem to port uCOS to AT91SAM7S, the board always get
reset when doing context switch.

Thank you very much,

Lisong
#1392954
Rate this post
useful
not useful
Hi,

The main.out file is missing from the output.
I need it to debug with olimex ARM-USB-TINY.
I tried to give it in make file but no effect.
May be syntax was wrong or do I need separate editor to modify it?

I have modified make file after looking into some other some other 
example projects which came along the jtag. I found that they just copy 
main.elf to main.out !!!! :
'cp main.elf main.out'

Even after the changes I could not succeed.

Can anybody modify the makefile I am using(attached with the post) and 
post it back on forum.

Also little insight into how it works will be appreciated.

Regards
Rohit
Attached files:
Guest #1394796
Rate this post
useful
not useful
Why not use Segger embOS? There exists ports for nearly all 
compiler/cpus and trial version (which have only the 3 task/15 minutes 
restriction) are available on their website! There is also a ARM7/GNU 
port and CM3/GNU port.
#1395076
Rate this post
useful
not useful
Guest wrote:
> Why not use Segger embOS?

Well you could say that about any number of other alternative RTOSes. 
Why embOS in particular? It does share a similarity with Micro-C/OS II, 
including using an identical task monitor utility. It has a more 
sophisticated scheduler. However Micro-C/OS II you can use 
non-commercially for the price of the book.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now