EmbeddedRelated.com
Forums
Memfault Beyond the Launch

AT91SAM7S64 GCC samples

Started by Unknown July 23, 2005
Hi all,

I'm working on setting up a development environment using Kdevelop and
FreeRTOS for the SAM7S64. It's taken a bit of work because the FreeRTOS
port and demo app weren't finished and all of the ISRs had to be rewritten,
among other things. I've also got it working (to some extent at least) with
a remote J-Link JTAG pod.

For troubleshooting purposes, I'm hoping someone has a working SAM7S64
sample program and makefile for GCC that's known to work properly on the
SAM7S64-EK board. I need to make sure that my build environment is sane and
that it's able to download a known-good binary to the target. There seem to
be plenty of half-finished projects like the FreeRTOS port out there, so I
thought I'd check here before spending a lot of time on something that might
turn out to be not quite ready.

When I'm all done with this, I'll submit the completed FreeRTOS AT91SAM7S64
GCC demo app back to the FreeRTOS project, and I'll hopefully be able to
distribute a ready-to-use environment that'll make GCC + Kdevelop a viable
alternative to IAR on Windows. So far it still requires a Windows box to
host the J-Link pod, though.

Thanks for the help...

Scott


Scott,

I am not a GCC guru but I would think the Basic tools demo of the LEDs and
switches which is in the demos from atmel would work. You would need the
board.h file and the C files. I do not know if you have to convert the
startup code or not. The code in the demo itself is real easy to follow.
They have a delay function that just uses counts to kill time and some
loops that toggle the LEDs on and off and read the key switches to set the
counts for delay. I used that code to modify it and toggle some I/O lines
to drive some external devices.

Al Welch

-----Original Message-----
From: AT91SAM7@AT91... [mailto:AT91SAM7@AT91...] On Behalf
Of scott@scot...
Sent: Saturday, July 23, 2005 4:55 PM
To: AT91SAM7@AT91...
Subject: [AT91SAM7] AT91SAM7S64 GCC samples

Hi all,

I'm working on setting up a development environment using Kdevelop and
FreeRTOS for the SAM7S64. It's taken a bit of work because the FreeRTOS
port and demo app weren't finished and all of the ISRs had to be rewritten,
among other things. I've also got it working (to some extent at least) with
a remote J-Link JTAG pod.

For troubleshooting purposes, I'm hoping someone has a working SAM7S64
sample program and makefile for GCC that's known to work properly on the
SAM7S64-EK board. I need to make sure that my build environment is sane and
that it's able to download a known-good binary to the target. There seem to
be plenty of half-finished projects like the FreeRTOS port out there, so I
thought I'd check here before spending a lot of time on something that might
turn out to be not quite ready.

When I'm all done with this, I'll submit the completed FreeRTOS AT91SAM7S64
GCC demo app back to the FreeRTOS project, and I'll hopefully be able to
distribute a ready-to-use environment that'll make GCC + Kdevelop a viable
alternative to IAR on Windows. So far it still requires a Windows box to
host the J-Link pod, though.

Thanks for the help...

Scott Yahoo! Groups Links


Hmm.. Does anyone have a working, compiled version of this? I'd like to be
able to test one component at a time, starting with the download utility.
Hmm.. Can IAR generate ELF files? If so, I might try that. I just don't
want to waste a lot of time troubleshooting the JTAG interface only to find
out I've got a program that's not compiled right.

Scott

> -----Original Message-----
> From: AT91SAM7@AT91...
> [mailto:AT91SAM7@AT91...] On Behalf Of Al Welchaxxiom
> Sent: Saturday, July 23, 2005 7:28 PM
> To: AT91SAM7@AT91...
> Subject: RE: [AT91SAM7] AT91SAM7S64 GCC samples
>
> Scott,
>
> I am not a GCC guru but I would think the Basic tools demo of
> the LEDs and switches which is in the demos from atmel would
> work. You would need the board.h file and the C files. I
> do not know if you have to convert the startup code or not.
> The code in the demo itself is real easy to follow.
> They have a delay function that just uses counts to kill
> time and some loops that toggle the LEDs on and off and read
> the key switches to set the counts for delay. I used that
> code to modify it and toggle some I/O lines to drive some
> external devices.
>
> Al Welch
>
> -----Original Message-----
> From: AT91SAM7@AT91...
> [mailto:AT91SAM7@AT91...] On Behalf Of scott@scot...
> Sent: Saturday, July 23, 2005 4:55 PM
> To: AT91SAM7@AT91...
> Subject: [AT91SAM7] AT91SAM7S64 GCC samples
>
> Hi all,
>
> I'm working on setting up a development environment using
> Kdevelop and FreeRTOS for the SAM7S64. It's taken a bit of
> work because the FreeRTOS port and demo app weren't finished
> and all of the ISRs had to be rewritten, among other things.
> I've also got it working (to some extent at least) with a
> remote J-Link JTAG pod.
>
> For troubleshooting purposes, I'm hoping someone has a
> working SAM7S64 sample program and makefile for GCC that's
> known to work properly on the SAM7S64-EK board. I need to
> make sure that my build environment is sane and that it's
> able to download a known-good binary to the target. There
> seem to be plenty of half-finished projects like the FreeRTOS
> port out there, so I thought I'd check here before spending a
> lot of time on something that might turn out to be not quite ready.
>
> When I'm all done with this, I'll submit the completed
> FreeRTOS AT91SAM7S64 GCC demo app back to the FreeRTOS
> project, and I'll hopefully be able to distribute a
> ready-to-use environment that'll make GCC + Kdevelop a viable
> alternative to IAR on Windows. So far it still requires a
> Windows box to host the J-Link pod, though.
>
> Thanks for the help...
>
> Scott > Yahoo! Groups Links >
>
> Yahoo! Groups Links >
>



Scott

 

I downloaded the AT91SAM7 Example from the WinArm homepage (search for winarm in Google). When I compiled this it generated an ihex file directly with no problems. Maybe this is a good project for you to start to work on.

 

Since I wanted to test to download a binary file with the SAMBA utility I changed to “binary” in the makefile. This still generated a “.hex” file after compilation but it was in “.bin” format. (I believe there is a slight issue with the copy statement in the makefile). I changed name from .hex to .bin and downloaded successfully using SAMBA.

 

/Lars

 

 

-----Ursprungligt meddelande-----
Fr: A...@yahoogroups.com
[mailto:AT91SAM7@yahoogroups.com] F scott@opentrac.org
Skickat: den 24 juli 2005 18:40
Till: A...@yahoogroups.com
ne: RE: [AT91SAM7] AT91SAM7S64 GCC samples

 

Hmm.. Does anyone have a working, compiled version of this?  I'd like to be
able to test one component at a time, starting with the download utility.
Hmm.. Can IAR generate ELF files?  If so, I might try that.  I just don't
want to waste a lot of time troubleshooting the JTAG interface only to find
out I've got a program that's not compiled right.

Scott

> -----Original Message-----
> From: A...@yahoogroups.com
> [mailto:A...@yahoogroups.com] On Behalf Of Al Welchaxxiom
> Sent: Saturday, July 23, 2005 7:28 PM
> To: A...@yahoogroups.com
> Subject: RE: [AT91SAM7] AT91SAM7S64 GCC samples
>
> Scott,
>
> I am not a GCC guru but I would think the Basic tools demo of
> the LEDs and switches which is in the demos from atmel would
> work.  You would need  the board.h file and the C files.  I
> do not know if you have to convert the startup code or not. 
> The code in the demo itself is real easy to follow.
> They have a delay function that just uses counts to kill 
> time and some loops that toggle the LEDs on and off and read
> the key switches to set the counts for delay.  I used that
> code to modify it and toggle some I/O lines to drive some
> external devices.
>
> Al Welch
>
> -----Original Message-----
> From: A...@yahoogroups.com
> [mailto:A...@yahoogroups.com] On Behalf Of s...@opentrac.org
> Sent: Saturday, July 23, 2005 4:55 PM
> To: A...@yahoogroups.com
> Subject: [AT91SAM7] AT91SAM7S64 GCC samples
>
> Hi all,
>
> I'm working on setting up a development environment using
> Kdevelop and FreeRTOS for the SAM7S64.  It's taken a bit of
> work because the FreeRTOS port and demo app weren't finished
> and all of the ISRs had to be rewritten, among other things. 
> I've also got it working (to some extent at least) with a
> remote J-Link JTAG pod.
>
> For troubleshooting purposes, I'm hoping someone has a
> working SAM7S64 sample program and makefile for GCC that's
> known to work properly on the SAM7S64-EK board.  I need to
> make sure that my build environment is sane and that it's
> able to download a known-good binary to the target.  There
> seem to be plenty of half-finished projects like the FreeRTOS
> port out there, so I thought I'd check here before spending a
> lot of time on something that might turn out to be not quite ready.
>
> When I'm all done with this, I'll submit the completed
> FreeRTOS AT91SAM7S64 GCC demo app back to the FreeRTOS
> project, and I'll hopefully be able to distribute a
> ready-to-use environment that'll make GCC + Kdevelop a viable
> alternative to IAR on Windows.  So far it still requires a
> Windows box to host the J-Link pod, though.
>
> Thanks for the help...
>
> Scott
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
>
>
>
>
>




Memfault Beyond the Launch