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

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

Reply to
Ken
Loading thread data ...

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

Reply to
Antti

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

formatting link

Reply to
Amontec, Larry

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

Reply to
Antti

I have a *skeleton* for a solution that uses my jjtag Java package

formatting link
You can check it out at
formatting link
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
formatting link

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

Reply to
Pablo Bleyer Kocik

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

formatting link

Reply to
Amontec, Larry

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

Reply to
Antti

Flash support for both Philips LPC2xxx and Atmel AT91SAM7 are supported For more info, the OpenOCD configuration is from :

-

formatting link

Reply to
Amontec, Larry

;)

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

Reply to
Antti

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

The Dominic Rath 's donation page ;-) :

formatting link

Reply to
Amontec, Larry

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

Reply to
Dominic

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

Reply to
Antti

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.