EmbDev.net

Forum: ARM programming with GCC/GNU tools Beginner's problem with SAM7


Author: Antônio Padilha (Guest)
Posted on:

Rate this post
0 useful
not useful
I was using WinAVR for a while but I was a bit disappointed with
ATmega8's performance for some applications, so I bougth an Olimex
SAM7-H64. I managed to program it with SAM-BA (with WinARM) and OpenOCD
(with ARM-GCC), so I thought the next steps would be easy. But the
problem is that I used the .bin provided in Olimex and SparkFun websites
for the SAM7-P64 and till now I haven't managed to blink any led with
the codes i've compiled by myself. I am mainly using the GPIO (modifying
board.h to use the Olimex board) and the OpenOCD examples provided by
Martin Thomas (and their makefiles, linker scripts, startup files).

So, my questions are: should I edit anything in the makefile provided in
those examples? Am I missing any step?

Thanks in advance.

Antônio Padilha

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Antônio Padilha wrote:
> I was using WinAVR for a while but I was a bit disappointed with
> ATmega8's performance for some applications, so I bougth an Olimex
> SAM7-H64. I managed to program it with SAM-BA (with WinARM) and OpenOCD
> (with ARM-GCC), so I thought the next steps would be easy. But the
> problem is that I used the .bin provided in Olimex and SparkFun websites
> for the SAM7-P64 and till now I haven't managed to blink any led with
> the codes i've compiled by myself. I am mainly using the GPIO (modifying
> board.h to use the Olimex board) and the OpenOCD examples provided by
> Martin Thomas (and their makefiles, linker scripts, startup files).
>
> So, my questions are: should I edit anything in the makefile provided in
> those examples? Am I missing any step?

Hmm, WinARM does not include the SAM-BA client-software and I don't
understand what you mean by "OpenOCD (with ARM-GCC)".

Could you please try another example? You should find other examples in
the AT91 yahoo-group file-section or in the WinARM collection at
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm...
. Maybe I have made a mistake in the example for OpenOCD so it just
works with "here" with the AT91SAM7S-EK.

Martin Thomas

Author: Antônio Padilha (Guest)
Posted on:

Rate this post
0 useful
not useful
Thanks for the answer, Thomas, but I've just solved my problem. I do not
follow it really well, but I guess the #if and #elif from "Board.h" were
not being recognized in the compilation. I don't know why. But after I
edited the file it worked fine with OpenOCD, though a different reset
script was more stable in my case.

About this
> Hmm, WinARM does not include the SAM-BA client-software and I don't
> understand what you mean by "OpenOCD (with ARM-GCC)".
I guess I meant to say I am using WinARM in Windows and the latest
ARM-GCC toolchain available from this website in Linux. The SAM-BA
client was downloaded from Atmel.

Thanks again.

Antônio Padilha

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.