EmbDev.net

Forum: ARM programming with GCC/GNU tools Port MicroC/OSII to AT91SAM7S With GNU Compiler


von Lisong Y. (bufang)


Rate this post
useful
not useful
Hi

I am starting working on porting MicroC/OSII to AT91SAM7S With GNU
Compiler. Can anybody give me any information about how to start?
Thanks.

von Clifford S. (clifford)


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

von Lisong Y. (bufang)


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

von Jonathan D. (dumarjo)


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

von Lisong Y. (bufang)


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

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Hi,

here you could fine the mini project that I have done for SAM256EK 
board.

hope thats help

www.cimeq.qc.ca/UCOS_II_EK.zip

Jonathan

von Rohit C. (rohit123)


Attached files:

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

von Clifford S. (clifford)


Rate this post
useful
not useful
Why not just load main.elf? The actual name is irrelevant.

von Guest (Guest)


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.

von Clifford S. (clifford)


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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.