EmbeddedRelated.com
Forums

JTAG programming for production - LPC2148

Started by Sutton Mehaffey August 15, 2007
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

An Engineer's Guide to the LPC2100 Series

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
--- 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
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/
--- 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
--- 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
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?