Tech Support > Computer Hardware > Microprocessors > How to program AT91SAM7S64's flash using a JTAG parallel cable?
How to program AT91SAM7S64's flash using a JTAG parallel cable?
Posted by Ken on March 8th, 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

Posted by Antti on March 8th, 2006


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

Posted by Amontec, Larry on March 9th, 2006


Ken wrote:
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



Posted by Antti on March 9th, 2006


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

Posted by Pablo Bleyer Kocik on March 10th, 2006


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’avec le cœur.
pablo / L’essentiel est invisible pour les yeux."
@bleyer.org / -- Le petit prince (XXI), Antoine de Saint-Exupéry

Posted by Amontec, Larry on March 10th, 2006


Antti wrote:
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




Posted by Antti on March 10th, 2006


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

Posted by Amontec, Larry on March 10th, 2006


Amontec, Larry wrote:

For more info, the OpenOCD configuration is from :
- http://openfacts.berlios.de/index-en..._configuration


Posted by Antti on March 10th, 2006




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

Posted by Amontec, Larry on March 10th, 2006


Antti wrote:

Yes, Mr. Dominic Rath is doing a very nice work !

The Dominic Rath 's donation page ;-) :
http://developer.berlios.de/project/...?group_id=4148

Posted by Dominic on March 10th, 2006


SAM7 support is included since today (Thanks to Magnus Lundin). I couldn'
test it myself, so please report back if you experience any problems.

Regards,

Dominic



Posted by Antti on March 10th, 2006


yes, so I wasnt so wrong saying it isnt there, i noticed the 'march 10'
date (e.g. today) on the SAM7 support

I can test on 2 different boards sam7s64 olimex and custom board
sam7s256 (3 devices in chain)

Antti


Similar Posts