Forums

How to program AT91SAM7S64's flash using a JTAG parallel cable?

Started by Ken March 8, 2006
Hi everyone,

I know that some ARM7 chip, such as S3C4510, can be programmed using a
JTAG parallel cable without a emulator. Does anyone konw how to program
AT91SAM7S64 using a JTAG parallel cable?

Thanks,

Ken

there doesnt seem to be any ready to use solutions for this, so you
need to write the thing yourself, I am about todo it also, as I have
found no ready solutions. I am using armtool to load application to
RAM, that works ok, so now if I create small small 'stub' that
communicates over DCC than flash programming would become possible also

Antti

Ken wrote:
> Hi everyone, > > I know that some ARM7 chip, such as S3C4510, can be programmed using a > JTAG parallel cable without a emulator. Does anyone konw how to program > AT91SAM7S64 using a JTAG parallel cable? > > Thanks, > > Ken >
Using OpenOCD JTAG client + Chameleon POD (as Wiggler clone or as Amontec JTAG Accelerator configuration), it is possible to FLASH LPC2xxx ( LPC2106, LPC2148, ...) OpenOCD is free, so you may customize it for your own SAM7 Flash uploader integration. As the OpenOCD includes a well done JTAG HAL (Hardware Abstration Layer), you will be able to update from your own-made wiggler parport cable to an Amontec JTAGkey cable (USB to JTAG cable). Note: the OpenOCD includes one GDB port layer and one Telnet port layer (Telnet is using for OpenOCD config, and for starting the Flash upload service) Best regards, Laurent www.amontec.com
yes  I know all that. LPC21xx is supported by the openocd, SAM7 isnt
easy as that.
so whatever path is taken there is custom programming required to
program the SAM7 with or without the used of openocd

Antti

 I have a *skeleton* for a solution that uses my jjtag Java package
(http://bleyer.org/jjtag). You can check it out at
http://bleyer.org/armoid/sam7s-util.zip. The source code file is
SAMJTAG.java. I have included the parallel port wiggler adapter DLL and
the giveio driver there. You can check out the jjtag sources at the
dev.java.net CVS repo. A USB interface for FTDI chips is also possible
with my jd2xx package (http://bleyer.org/jd2xx).

 Please note that this is more like a brainstorming for a programmer
tool. I wrote it while I was reading the Flash programming section of
the sam7s manual and currently don't have any hardware to test it. You
can take it as a starting point... Hey, something is better than
nothing ;o)

 Best regards.

--
PabloBleyerKocik /"On ne voit bien qu=92avec le c=9Cur.
 pablo          / L=92essentiel est invisible pour les yeux."
  @bleyer.org  / -- Le petit prince (XXI), Antoine de Saint-Exup=E9ry

Antti wrote:
> yes I know all that. LPC21xx is supported by the openocd, SAM7 isnt > easy as that. > so whatever path is taken there is custom programming required to > program the SAM7 with or without the used of openocd > > Antti >
OpenOCD currently supports Wiggler (clones), FTDI FT2232C based JTAG interfaces (Amontec JTAGkey), and the Amontec JTAG Accelerator, and allows ARM7 (ARM7TDMI and ARM720t) and ARM9 (ARM920t) based cores to be debugged. Laurent www.amontec.com
Yes, Yes, there is support for debug in openocd, sure!

but nothing for SAM7S onchip flash programming - and the OP asked for
SAM7S flash programming!
not about debugging or general JTAG comms

SAM7 does not have call able flash API entry points (as LPC21xx has) so
there flash programming
needs a ARM side small stub to be developed in additiona to the JTAG
comms

Antti

Amontec, Larry wrote:

> Antti wrote: > >> yes I know all that. LPC21xx is supported by the openocd, SAM7 isnt >> easy as that. >> so whatever path is taken there is custom programming required to >> program the SAM7 with or without the used of openocd >> >> Antti >> > OpenOCD currently supports Wiggler (clones), FTDI FT2232C based JTAG > interfaces (Amontec JTAGkey), and the Amontec JTAG Accelerator, and > allows ARM7 (ARM7TDMI and ARM720t) and ARM9 (ARM920t) based cores to be > debugged. > > Laurent > www.amontec.com > > >
Flash support for both Philips LPC2xxx and Atmel AT91SAM7 are supported For more info, the OpenOCD configuration is from : - http://openfacts.berlios.de/index-en.phtml?title=OpenOCD_configuration
;)

the SAM7 support wasnt yet added last I checked, now it seems to be
added
nice!

Antti wrote:

> ;) > > the SAM7 support wasnt yet added last I checked, now it seems to be > added > nice! >
Yes, Mr. Dominic Rath is doing a very nice work ! The Dominic Rath 's donation page ;-) : http://developer.berlios.de/project/make_donation.php?group_id=4148