EmbDev.net

Forum: ARM programming with GCC/GNU tools about at91sam7a3EK


Author: Nine Sun (ninesunsz)
Posted on:

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

Author: Martin Thomas (Guest)
Posted on:

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

Author: Nine Sun (ninesunsz)
Posted on:

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

Author: Martin Thomas (Guest)
Posted on:

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

Author: Jim Kaz (ancaritha)
Posted on:

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

Author: ninesun (Guest)
Posted on:

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

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.