EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91RM9200 command line compilation options using winarm,


Author: ac (Guest)
Posted on:

Rate this post
0 useful
not useful
I m using Winarm tool and AT91RM9200 processor. I would like to know
that wheather the tool works with said processor? If so plz suggest the
command line options.

Author: Stefan (Guest)
Posted on:

Rate this post
0 useful
not useful
ac wrote:
> I m using Winarm tool and AT91RM9200 processor. I would like to know
> that wheather the tool works with said processor? If so plz suggest the
> command line options.

There is at least a register definition file for the AT91RM9200. But
there are no examples for this µC.

So i think you have to write linker control scripts and startup code.
Perhaps you can use some code from WinARMs AT91SAM764 examples. But this
is no trival task for a beginner with this µC and/or ARM assembler/C.

Stefan

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Stefan wrote:
> ac wrote:
>> I m using Winarm tool and AT91RM9200 processor. I would like to know
>> that wheather the tool works with said processor? If so plz suggest the
>> command line options.
>
> There is at least a register definition file for the AT91RM9200. But
> there are no examples for this µC.
>
> So i think you have to write linker control scripts and startup code.
> Perhaps you can use some code from WinARMs AT91SAM764 examples. But this
> is no trival task for a beginner with this µC and/or ARM assembler/C.
>
> Stefan

A good starting point are the examples provided by Atmel on
http://www.at91.com/Pages/products/EvaluationBoard...

The header-files with the register-defintions should work out of the box
with any C-compiler. An example startup-code is available from Atmel for
ADS- and the Green-Hills-toolchain but it is not very difficult to port
them to the gnu-Assembler. For a linker-script please read the
ld-documentation, it's not very difficult to setup a simple
linker-script for the first steps but it may be some work to get
everything right (remapping etc.).

Martin Thomas

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.