EmbeddedRelated.com
Forums
Memfault Beyond the Launch

AT91SAM7S64 Gcc project

Started by daufoo October 4, 2005
Hi all,

I have the atmel dev kit with j-link and I would like to shift the
development platform from IAR to Gcc. I would like to know if where
can I find more information.

I have tried to build a sample project using WinARM, however what's
the best way to load the binary file using the j-link? Any other
resouces for doing that? (prefer not using SAM-BA right now). I have
seen the bin2sim project in the file section, however I'm not quite
sure how to use that IAR flash loader.

Any help will be appreciated.


I have just uploaded a simple project for the SAM7S64 that uses GCC.
This uses UART interrupts, showing how that works too.

At this stage I have only tested the ram build under Linux. Cygwin
should work fine.

As for debugging, this **should** work with a jlink using the
jlinkserver. However I have not tested that. I have been using a
bd12000.
--- In AT91SAM7@AT91..., "daufoo" <jwykwok@t...> wrote:
> Hi all,
>
> I have the atmel dev kit with j-link and I would like to shift the
> development platform from IAR to Gcc. I would like to know if where
> can I find more information.
>
> I have tried to build a sample project using WinARM, however
what's
> the best way to load the binary file using the j-link? Any other
> resouces for doing that? (prefer not using SAM-BA right now). I have
> seen the bin2sim project in the file section, however I'm not quite
> sure how to use that IAR flash loader.
>
> Any help will be appreciated.


I've had somewhat inconsistent results with jlinkserver and gdb. Sometimes
it programs completely, sometimes it misses blocks. Not sure what the deal
is.

Here's my own SAM7S GCC project. It's FreeRTOS with its demo application,
set up as a Kdevelop project. This includes the gnuarm toolchain and
FreeRTOS, so it's a big download. It's missing serial and USB support
because I haven't rewritten the ISRs yet.

http://www.argentdata.com/gnu-arm-kdevelop.tar.gz

Scott

> -----Original Message-----
> From: AT91SAM7@AT91...
> [mailto:AT91SAM7@AT91...] On Behalf Of embeddedjanitor
> Sent: Tuesday, October 04, 2005 5:58 PM
> To: AT91SAM7@AT91...
> Subject: [AT91SAM7] Re: AT91SAM7S64 Gcc project
>
> I have just uploaded a simple project for the SAM7S64 that uses GCC.
> This uses UART interrupts, showing how that works too.
>
> At this stage I have only tested the ram build under Linux.
> Cygwin should work fine.
>
> As for debugging, this **should** work with a jlink using the
> jlinkserver. However I have not tested that. I have been
> using a bd12000. >
> --- In AT91SAM7@AT91..., "daufoo" <jwykwok@t...> wrote:
> > Hi all,
> >
> > I have the atmel dev kit with j-link and I would like to
> shift the
> > development platform from IAR to Gcc. I would like to know if where
> > can I find more information.
> >
> > I have tried to build a sample project using WinARM, however
> what's
> > the best way to load the binary file using the j-link? Any other
> > resouces for doing that? (prefer not using SAM-BA right
> now). I have
> > seen the bin2sim project in the file section, however I'm not quite
> > sure how to use that IAR flash loader.
> >
> > Any help will be appreciated. >
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Get Bzzzy! (real tools to help you
> find a job). Welcome to the Sweet Life.
> http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dN_tlB/TM
> --------------------------
> ------~- > Yahoo! Groups Links




Thanks for both of your helps.

I'm going to give them a try. However, is there any documentation on
how to use the gdb and the jlinkserver?

So far I'm only managed to load the code (simple-code) from the IAR
project. I tried J-flash v1.36b but there seems to be some problems,
such as lost connection during erase, flashing etc.

Any other methods in using the j-link from the dev-ket? Prefer to be a
free version.
--- In AT91SAM7@AT91..., <scott@o...> wrote:
> I've had somewhat inconsistent results with jlinkserver and gdb.
Sometimes
> it programs completely, sometimes it misses blocks. Not sure what
the deal
> is.
>
> Here's my own SAM7S GCC project. It's FreeRTOS with its demo
application,
> set up as a Kdevelop project. This includes the gnuarm toolchain and
> FreeRTOS, so it's a big download. It's missing serial and USB support
> because I haven't rewritten the ISRs yet.
>
> http://www.argentdata.com/gnu-arm-kdevelop.tar.gz
>
> Scott
>
> > -----Original Message-----
> > From: AT91SAM7@AT91...
> > [mailto:AT91SAM7@AT91...] On Behalf Of embeddedjanitor
> > Sent: Tuesday, October 04, 2005 5:58 PM
> > To: AT91SAM7@AT91...
> > Subject: [AT91SAM7] Re: AT91SAM7S64 Gcc project
> >
> > I have just uploaded a simple project for the SAM7S64 that uses GCC.
> > This uses UART interrupts, showing how that works too.
> >
> > At this stage I have only tested the ram build under Linux.
> > Cygwin should work fine.
> >
> > As for debugging, this **should** work with a jlink using the
> > jlinkserver. However I have not tested that. I have been
> > using a bd12000.
> >
> >
> >
> > --- In AT91SAM7@AT91..., "daufoo" <jwykwok@t...> wrote:
> > > Hi all,
> > >
> > > I have the atmel dev kit with j-link and I would like to
> > shift the
> > > development platform from IAR to Gcc. I would like to know if where
> > > can I find more information.
> > >
> > > I have tried to build a sample project using WinARM, however
> > what's
> > > the best way to load the binary file using the j-link? Any other
> > > resouces for doing that? (prefer not using SAM-BA right
> > now). I have
> > > seen the bin2sim project in the file section, however I'm not quite
> > > sure how to use that IAR flash loader.
> > >
> > > Any help will be appreciated.
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~--> Get Bzzzy! (real tools to help you
> > find a job). Welcome to the Sweet Life.
> > http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dN_tlB/TM
> > --------------------------
> > ------~->
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >




--- In AT91SAM7@AT91..., "daufoo" <jwykwok@t...> wrote:

> So far I'm only managed to load the code (simple-code) from the IAR
> project. I tried J-flash v1.36b but there seems to be some problems,
> such as lost connection during erase, flashing etc.
>
> Any other methods in using the j-link from the dev-ket? Prefer to be
a
> free version.

I don't know much about the jlink even though I have one. I use a
bdi2000 most of the time which performs like the $2400 price would
suggest!

For erasing, programming etc how about writing a small chunk of code
to do this instead?



Memfault Beyond the Launch