EmbDev.net

Forum: ARM programming with GCC/GNU tools about at91sam7a3EK


von Nine S. (ninesunsz)


Rate this post
useful
not useful
Hi everyone
  i am fresh to the at91sam7a3,I try to use WINARM to compile example
about sam7a3.i found there is examples about sam7s64 in Examples
provided by Winarm.then i modified it to use headerfile of sam7a3.Now it
can build project sucessfully.i get an bin file by modifing makefile.but
it couldnot work after i download to the EK board.Does any one else have
good examples on at91sam7a3-EK board?

von Martin Thomas (Guest)


Rate this post
useful
not useful
Nine Sun wrote:
> Does any one else have
> good examples on at91sam7a3-EK board?

Atmel has - but not for the GNU-toolchain as far as I know. Browse to
www.at91.com->kits->(select kit)->software. My GNU-ports of the
SAM7S-examples provided by Atmel may serve as templates how code for
EWARM or RDKARM can be adapted for the GNU tools.

Martin Thomas

von Nine S. (ninesunsz)


Rate this post
useful
not useful
Martin Thomas wrote:
> Nine Sun wrote:
>> Does any one else have
>> good examples on at91sam7a3-EK board?
>
> Atmel has - but not for the GNU-toolchain as far as I know. Browse to
> www.at91.com->kits->(select kit)->software. My GNU-ports of the
> SAM7S-examples provided by Atmel may serve as templates how code for
> EWARM or RDKARM can be adapted for the GNU tools.
>
> Martin Thomas

thanks for your reply,but you may misunderstand me,i use IAR compiler to
compile it,but i want to use WINARM now.of course these example can work
normally in IAR compiler,then i modify the sam7a3 example about flinking
led ,it can be complied and linked sucessfully in enviorment of
WINARM.but when i download it to EK board ,the leds couldnot be blink,so
i want someone give advice about it.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Nine Sun wrote:
> thanks for your reply,but you may misunderstand me,i use IAR compiler to
> compile it,but i want to use WINARM now.of course these example can work
> normally in IAR compiler,then i modify the sam7a3 example about flinking
> led ,it can be complied and linked sucessfully in enviorment of
> WINARM.but when i download it to EK board ,the leds couldnot be blink,so
> i want someone give advice about it.

Well, give all information and I will try to understand better. In the
first message you have written that you try to tried to port a SAM7S
example that comes with WinARM to a SAM7A by just replacing the
header-file. How could I know that you already have the examples for IAR
and already use IAR EWARM and you now try to port an example for IAR to
the GNU-tools? You do not give any details about what you have
"modified" (in the code for IAR? in the WinARM-example?). Did you check
the startup-code (compare with the code for IAR) and the linker-scripts
(memory-sizes/locations)?

Search this forum, as far as I remember, there is already some
information about creating code for a SAM7A with GNU-tools available.

von Jim K. (ancaritha)


Rate this post
useful
not useful
Martin Thomas wrote:
> Search this forum, as far as I remember, there is already some
> information about creating code for a SAM7A with GNU-tools available.

Here ya go:
http://users.wpi.edu/~jimmykaz/Arm/Sam7A3_Virt_Fnct.rar

This should include everything you need to get you started on the
SAM7A3.  Hell, it even works with C++ and virtual functions (thanks
again to Martin for helping me to get that working)!

von ninesun (Guest)


Rate this post
useful
not useful
Martin Thomas wrote:
> Nine Sun wrote:
>> thanks for your reply,but you may misunderstand me,i use IAR compiler to
>> compile it,but i want to use WINARM now.of course these example can work
>> normally in IAR compiler,then i modify the sam7a3 example about flinking
>> led ,it can be complied and linked sucessfully in enviorment of
>> WINARM.but when i download it to EK board ,the leds couldnot be blink,so
>> i want someone give advice about it.
>
> Well, give all information and I will try to understand better. In the
> first message you have written that you try to tried to port a SAM7S
> example that comes with WinARM to a SAM7A by just replacing the
> header-file. How could I know that you already have the examples for IAR
> and already use IAR EWARM and you now try to port an example for IAR to
> the GNU-tools? You do not give any details about what you have
> "modified" (in the code for IAR? in the WinARM-example?). Did you check
> the startup-code (compare with the code for IAR) and the linker-scripts
> (memory-sizes/locations)?
>
> Search this forum, as far as I remember, there is already some
> information about creating code for a SAM7A with GNU-tools available.

it is sorry that i delay the reply,i ask a friend of mine to give me his
at91sam7s64 EK-board,i get the at91sam7s64 example that address of
website is
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/at91sam7s_e1_20060825.zip,i
use it directly without change anything.it should be program to light
led on ekboard. then i install winarm again.i carefully check every
thing,then i compile project suceesfully,but when i download bin file to
the EK board,No Led was lited.i use openocd to burn the flash,but i
don't think error caused by openocd,because i can use openocd to burn
other bin file correctly.so i think the error should have something with
toolchain.then i want to find the exact reason.could you please to help
me to find it?thanks

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.