EmbDev.net

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


von ac (Guest)


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

von Stefan (Guest)


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

von Martin Thomas (Guest)


Rate this post
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/AT91RM9200EK/at91rm9200ek.html

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

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.