EmbDev.net

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


Author: Lisong Yuan (bufang)
Posted on:

Rate this post
0 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.

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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

Author: Lisong Yuan (bufang)
Posted on:

Rate this post
0 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

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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

Author: Lisong Yuan (bufang)
Posted on:

Rate this post
0 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

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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

Author: Rohit Chandel (rohit123)
Posted on:
Attached files:

Rate this post
0 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

Author: Clifford Slocombe (clifford)
Posted on:

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

Author: Guest (Guest)
Posted on:

Rate this post
0 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.

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.