Reply by windam_2000 August 24, 20072007-08-24
Hi Brendan,

We don't have a high volume product, so we just have techs program
each device manually via ulink + Keil IDE. There are 4 devices in the
jtag chain, so programming time is the time to select one device +
flash via IDE, multiplied by 4.
Our HW folks did not expose the serial pins, and so the ISP method is
not an option.

-win

--- In l..., "Brendan Murphy"
> Win,
>
> Just out of interest, when you say there's several LPCs in the chain,
> does that mean they can be programmed in parallel?
>
> Also, how long does it take (approximately) to program the devices like
> this?

An Engineer's Guide to the LPC2100 Series

Reply by Brendan Murphy August 16, 20072007-08-16
--- In l..., "windam_2000" wrote:
> We use jtag since the ISP requires a serial circuit. The program is
> downloaded using the Keil IDE via uLink jtag adapter. The free
> version of the Keil IDE has a point/click GUI to select a device in a
> jtag chain which has several LPCs on it.
> The uLink w/ eval board is around $300.
> I could have recommended a $20 jtag parallel port dongle and HJTAG
> ($free), but I don't want my neck on the line when units come back due
> to bad programming. Whatever you end up using, make sure that it
> doesn't result in returned units which will result in more cost to
> deal with than having invested in good tools in the first place.
>
> Hope this helps,
>
> -win
>

Win,

Just out of interest, when you say there's several LPCs in the chain,
does that mean they can be programmed in parallel?

Also, how long does it take (approximately) to program the devices like
this?

Brendan
Reply by windam_2000 August 16, 20072007-08-16
--- In l..., "Sutton Mehaffey" wrote:
> I'm looking for a simple and inexpensive method for 4-5 technicians
> to simply be able to program a LPC2148 with a given .hex file?

We use jtag since the ISP requires a serial circuit. The program is
downloaded using the Keil IDE via uLink jtag adapter. The free
version of the Keil IDE has a point/click GUI to select a device in a
jtag chain which has several LPCs on it.
The uLink w/ eval board is around $300.
I could have recommended a $20 jtag parallel port dongle and HJTAG
($free), but I don't want my neck on the line when units come back due
to bad programming. Whatever you end up using, make sure that it
doesn't result in returned units which will result in more cost to
deal with than having invested in good tools in the first place.

Hope this helps,

-win
Reply by Alexandre Kremer August 16, 20072007-08-16
LPC parts have built in bootloader, so you can
program it anytime you want through the serial port.
By doing a reset with ISP pin in low state, the chip
enters into ISP mode and the bootloader starts to run.
If you send "?" at 9600 bps and no parity the
chip must answer with "Synchronized", wich means the
bootloader is up and running.

SDS

--- eremitic193 escreveu:

> I am new to the arm world and just a little curious
> as to how you
> program with serial when there is no program in the
> chip? Do you use
> the ICP or NXP ICP Bridge as seen in Flash Magic? Am
> I correct in
> assuming that something like that which is already
> on the chip would
> be used in this type of process?
>
> -Zach
>
> --- In l..., "Brendan Murphy"
> wrote:
> >
> > --- In l..., "Sutton Mehaffey"
> wrote:
> > >
> > > Can anyone tell me what they use for mass
> programming thru JTAG?
> In
> > > other words, I know I don't have to give the
> technician a wiggler
> and
> > > the Keil GUI to program parts. Does anyone make
> some kind of
> dongle
> > > from serial to JTAG that will work? And which
> software? Flash
> Magic?
> > > I'm looking for a simple and inexpensive method
> for 4-5
> technicians
> > > to simply be able to program a LPC2148 with a
> given .hex file?
> > Thanks.
> > >
> > > Sutton
> > >
> >
> > I think you'll find it a lot faster, easier and
> cheaper to do if
> you
> > program through the serial port for production.
> >
> > I'm not even sure you can get a "non-debugger"
> setup that would
> program
> > through the JTAG, at least not without going to a
> lot of trouble.
> >
> > We can program multiple devices at a time using
> the serial port,
> with
> > the unit mounted on a test jig (also used for
> in-circuit and
> functional
> > test).
> >
> > Brendan
> >
>
> Yahoo! Groups Links
>

Flickr agora em portugu. Vocclica, todo mundo v
http://www.flickr.com.br/
Reply by Brendan Murphy August 16, 20072007-08-16
--- In l..., "Xiaofan Chen" wrote:
>
> On 8/16/07, Brendan Murphy wrote:
> > Just to further clarify: we wrote our own programming tool that's
> > integrated into the functional tester for the devices. It's designed
> > to be highly automated: the unit is loaded onto the jig, bar code
> > label scanned, program/functional test cycle started, result
> > displayed (and stored to database) and good/bad sticker attached.
> > That is one good way and many bigger companies are doing it.
>
> For real high-volume, you use pre-programmed chips. Many
> semiconductor vendors or third party vendors provide this kind
> of service.
>
> Xiaofan
>

Absolutely: the kind of volumes I'm talking about here are maybe 10k to
50k units per year, done in batches of a few thousand. The prorgramming
and test are highly automated, but there's still some manual handling
involved in the setup I described. If higher volumes are involved (say
100k+ per year), even more automation and optimisation as you suggest
are appropriate.

For anything more than a handful of units using tools designed for
development environments is not really apropriate. I'm not aware of any
JTAG based programming tools that would be suitable.

Brendan
Reply by Xiaofan Chen August 16, 20072007-08-16
On 8/16/07, Brendan Murphy wrote:
> Just to further clarify: we wrote our own programming tool that's
> integrated into the functional tester for the devices. It's designed
> to be highly automated: the unit is loaded onto the jig, bar code
> label scanned, program/functional test cycle started, result
> displayed (and stored to database) and good/bad sticker attached.
>

That is one good way and many bigger companies are doing it.

For real high-volume, you use pre-programmed chips. Many
semiconductor vendors or third party vendors provide this kind
of service.

Xiaofan
Reply by Bruce Paterson August 15, 20072007-08-15
Don't use JTAG.
Use ISP (serial). Use FlashMagic, lpc21isp or the Philips Flash Utility.
________________________________

From: l... [mailto:l...]
On Behalf Of Sutton Mehaffey
Sent: Wednesday, 15 August 2007 10:56 PM
To: l...
Subject: [lpc2000] JTAG programming for production - LPC2148

Can anyone tell me what they use for mass programming thru JTAG?
In
other words, I know I don't have to give the technician a
wiggler and
the Keil GUI to program parts. Does anyone make some kind of
dongle
from serial to JTAG that will work? And which software? Flash
Magic?
I'm looking for a simple and inexpensive method for 4-5
technicians
to simply be able to program a LPC2148 with a given .hex file?
Thanks.

Sutton
Reply by derbaier August 15, 20072007-08-15
--- In l..., "Brendan Murphy"
wrote:
>
> --- In l..., "ghetto_shinobi" >
> For programming LPC2148 through JTAG i use H-JTAG.It comes along with
> > H-Flasher which can be used to program on-chip flash.You can program
> > LPC2148 Flash memory with only few clicks.You can either load .hex or
> > .bin file and it works with Wigglers clones.
> > Ive been using it for couple months and no problems so far.
>
> I'm sure it's fine for your needs, but the original question was about
> programming in a production environment. Anything that involves a "few
> clicks" would be problematic in that environment.
>

I would imagine that at high production volumes a high end tool like
the Lauterbach Trace-32 would be a better choice since it is much
faster than H-JTAG and much much faster than a serial port, and it can
be scripted to perform all the necessary programming and test
functions that can be accomplished over the JTAG interface( no clicks)
. Since a Trace-32 is operated via TCP/IP over Ethernet, they can all
be networked to support production data as well. I am sure there are
other volume production grade tools like it, but that is the only one
that I have experience with.

--Dave
Reply by samydan2003 August 15, 20072007-08-15
--- In l..., "Sutton Mehaffey" wrote:
>
> Can anyone tell me what they use for mass programming thru JTAG? In
> other words, I know I don't have to give the technician a wiggler and
> the Keil GUI to program parts. Does anyone make some kind of dongle
> from serial to JTAG that will work? And which software? Flash Magic?
> I'm looking for a simple and inexpensive method for 4-5 technicians
> to simply be able to program a LPC2148 with a given .hex file?
Thanks.
>
> Sutton
>

hi
http://hjtag.com
this can help u
easy to use an fast egought:)

br dan
Reply by Brendan Murphy August 15, 20072007-08-15
--- In l..., "ghetto_shinobi" >
For programming LPC2148 through JTAG i use H-JTAG.It comes along with
> H-Flasher which can be used to program on-chip flash.You can program
> LPC2148 Flash memory with only few clicks.You can either load .hex or
> .bin file and it works with Wigglers clones.
> Ive been using it for couple months and no problems so far.

I'm sure it's fine for your needs, but the original question was about
programming in a production environment. Anything that involves a "few
clicks" would be problematic in that environment.