EmbDev.net

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


von Antônio Padilha (Guest)


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

von Martin Thomas (Guest)


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

von Antônio Padilha (Guest)


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

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.