Beginner's problem with SAM7

Guest #1171519
Rate this post
• ▲ 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
Guest #1171520
Rate this post
• ▲ 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_projects/index_at91.html
. Maybe I have made a mistake in the example for OpenOCD so it just
works with "here" with the AT91SAM7S-EK.

Martin Thomas
Guest #1171521
Rate this post
• ▲ 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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.