EmbeddedRelated.com
Forums
Memfault Beyond the Launch

JTAG programming for production - LPC2148

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

--- 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
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
>
----- Original Message -----
From: "eremitic193"
To:
Sent: Wednesday, August 15, 2007 5:05 PM
Subject: [lpc2000] Re: JTAG programming for production - LPC2148
>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?

That's what he said.

Leon
Read the user manual - particularly Chapter 21 where it talks about
the boot loader that is preloaded onto the device.

Then search the Internet for lpc21isp which is a command line tool for
programming the device. I don't know if it works from Windows but it
works perfectly from Linux.

So, set up a bunch of cheap Linux boxes with serial ports and you are
good to go.

NXP also has a programming tool that does work under Windows and it
will program the device over the serial port. I'm not using my WinXP
box so I don't recall the details. Flash Magic may also be able to do
serial port programming.

Of course, all of this assumes that your product exposes USART0 and
has the appropriate control of P0.14.

Richard
--- In l..., "rtstofer" wrote:
>
> Read the user manual - particularly Chapter 21 where it talks about
> the boot loader that is preloaded onto the device.
>
> Then search the Internet for lpc21isp which is a command line tool
for
> programming the device. I don't know if it works from Windows but
it
> works perfectly from Linux.
>
> So, set up a bunch of cheap Linux boxes with serial ports and you
are
> good to go.
>
> NXP also has a programming tool that does work under Windows and it
> will program the device over the serial port. I'm not using my
WinXP
> box so I don't recall the details. Flash Magic may also be able to
do
> serial port programming.
>
> Of course, all of this assumes that your product exposes USART0 and
> has the appropriate control of P0.14.
>
> Richard
>

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.

Your product doesn't necessarily have to have a serial port exposed
for this to work: on some products we just have test points at
appropriate positions on the board and the "bed-of-nails" jig does
the rest.

A few years ago I knew nothing about high volume production, but have
had to learn. It's a fascinating area: you quicly apreciate the
difference between the quality levels achievable with different
setups and what happens when you try and take short cuts.

Brendan
--- 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
>
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.

Regards!
--- 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.
--- 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
--- 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

Memfault Beyond the Launch