Port MicroC/OSII to AT91SAM7S With GNU Compiler

#1172750
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
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
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
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
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
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
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

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.