EmbeddedRelated.com
Forums

Production programming of LPC17xx

Started by Tim Mitchell September 29, 2011
I'm using Cygwin for Windows.The simple solution get compiled the OpenOCD from www.sprakfun.com forum.

But that's all impossible for poor person to help others.

The best solution are that GDB server must work at Wifi Router(have USB host) or IAP at "old" wifi router(have serial)...for bootloader.

The reason for above that, cause the others/poor(who's didn't have access) already posses that ARM MCUs(cause they are not electrician surely didn't knew that).With 5-10 US$ then they will have "ALL" as replacement of Apple IPAD that US goverment planned....

I'm not saying that ARMs MCU at Mobile phone or smart phone.

IAP with GPRS not the "community programmer"....Whisper of mongkey.

Jeckson

--- In l..., David Smead wrote:
>
> Use Debian Linux. You could provide a live boot USB drive with everything
> on it to program the units. Getting OpenOCD to work is as easy as typing
> "apt-get install openocd" and preparing a small script file.
>
> DaveS
>
> On Thu, Sep 29, 2011 at 4:16 AM, Tim Mitchell wrote:
>
> > **
> >
> >
> > Do people here have any experience of JTAG production programming (small
> > batches of 100 or so) for LPC17xx parts?
> >
> > The small assembly company who build up a lot of our designs for customers
> > do not currently have a way of programming these devices (they mostly do AVR
> > and PIC designs) and have asked us what they should buy.
> >
> > As far as I can see the only sensibly priced solutions are an Olimex (or
> > similar) JTAG adaptor with OpenOCD, or a Rowley CrossConnect with CrossLoad.
> > The latter has some advantages as we're developing using Crossworks, and I
> > know how good Rowley support is, but it is a lot more expensive and is
> > command line software which we'd probably have to write a front end for. On
> > the other hand it sounds like OpenOCD can be painful to install and get
> > working.
> >
> > Have I missed an obvious solution?
> >
> > --
> > Tim Mitchell
> >
> >
> >
>
>

An Engineer's Guide to the LPC2100 Series

OK.

On Fri, Sep 30, 2011 at 12:28 AM, jeckson_sb wrote:

> **
> I'm using Cygwin for Windows.The simple solution get compiled the OpenOCD
> from www.sprakfun.com forum.
>
> But that's all impossible for poor person to help others.
>
> The best solution are that GDB server must work at Wifi Router(have USB
> host) or IAP at "old" wifi router(have serial)...for bootloader.
>
> The reason for above that, cause the others/poor(who's didn't have access)
> already posses that ARM MCUs(cause they are not electrician surely didn't
> knew that).With 5-10 US$ then they will have "ALL" as replacement of Apple
> IPAD that US goverment planned....
>
> I'm not saying that ARMs MCU at Mobile phone or smart phone.
>
> IAP with GPRS not the "community programmer"....Whisper of mongkey.
>
> Jeckson
>
> --- In l..., David Smead wrote:
> >
> > Use Debian Linux. You could provide a live boot USB drive with everything
> > on it to program the units. Getting OpenOCD to work is as easy as typing
> > "apt-get install openocd" and preparing a small script file.
> >
> > DaveS
> >
> > On Thu, Sep 29, 2011 at 4:16 AM, Tim Mitchell wrote:
> >
> > > **
> > >
> > >
> > > Do people here have any experience of JTAG production programming
> (small
> > > batches of 100 or so) for LPC17xx parts?
> > >
> > > The small assembly company who build up a lot of our designs for
> customers
> > > do not currently have a way of programming these devices (they mostly
> do AVR
> > > and PIC designs) and have asked us what they should buy.
> > >
> > > As far as I can see the only sensibly priced solutions are an Olimex
> (or
> > > similar) JTAG adaptor with OpenOCD, or a Rowley CrossConnect with
> CrossLoad.
> > > The latter has some advantages as we're developing using Crossworks,
> and I
> > > know how good Rowley support is, but it is a lot more expensive and is
> > > command line software which we'd probably have to write a front end
> for. On
> > > the other hand it sounds like OpenOCD can be painful to install and get
> > > working.
> > >
> > > Have I missed an obvious solution?
> > >
> > > --
> > > Tim Mitchell
> > >
> > >
> > >
> >
> >
> >
> >
>


I should re-iterate that the LPCXpresso board contains a programmer /
debugger interface portion and a chip portion, and costs $30 ish. Just cut
the tracks to the on board LPC1114 ( it's designed to do that )

It comes with all the SW required to program the devices from the command
line or within the debugger, and has a debug connector for exactly this
purpose so all you need is the standard ARM debugger cable.

Although it uses the SW debug interface this is connected via the same pins
using the standard JTAG interface cable, so unless you have other jtag
devices connected it's a no-brainer.

Regards

Phil.

From: l... [mailto:l...] On Behalf Of
jeckson_sb
Sent: 30 September 2011 08:29
To: l...
Subject: [lpc2000] Re: Production programming of LPC17xx

I'm using Cygwin for Windows.The simple solution get compiled the OpenOCD
from www.sprakfun.com forum.

But that's all impossible for poor person to help others.

The best solution are that GDB server must work at Wifi Router(have USB
host) or IAP at "old" wifi router(have serial)...for bootloader.

The reason for above that, cause the others/poor(who's didn't have access)
already posses that ARM MCUs(cause they are not electrician surely didn't
knew that).With 5-10 US$ then they will have "ALL" as replacement of Apple
IPAD that US goverment planned....

I'm not saying that ARMs MCU at Mobile phone or smart phone.

IAP with GPRS not the "community programmer"....Whisper of mongkey.

Jeckson

--- In l... , David
Smead wrote:
>
> Use Debian Linux. You could provide a live boot USB drive with everything
> on it to program the units. Getting OpenOCD to work is as easy as typing
> "apt-get install openocd" and preparing a small script file.
>
> DaveS
>
> On Thu, Sep 29, 2011 at 4:16 AM, Tim Mitchell wrote:
>
> > **
> >
> >
> > Do people here have any experience of JTAG production programming (small
> > batches of 100 or so) for LPC17xx parts?
> >
> > The small assembly company who build up a lot of our designs for
customers
> > do not currently have a way of programming these devices (they mostly do
AVR
> > and PIC designs) and have asked us what they should buy.
> >
> > As far as I can see the only sensibly priced solutions are an Olimex (or
> > similar) JTAG adaptor with OpenOCD, or a Rowley CrossConnect with
CrossLoad.
> > The latter has some advantages as we're developing using Crossworks, and
I
> > know how good Rowley support is, but it is a lot more expensive and is
> > command line software which we'd probably have to write a front end for.
On
> > the other hand it sounds like OpenOCD can be painful to install and get
> > working.
> >
> > Have I missed an obvious solution?
> >
> > --
> > Tim Mitchell
> >
> >
> >
>
>



On Thu, Sep 29, 2011 at 7:16 PM, Tim Mitchell wrote:

> As far as I can see the only sensibly priced solutions
> are an Olimex (or similar) JTAG adaptor with OpenOCD, or a Rowley CrossConnect
> with CrossLoad. The latter has some advantages as we're developing using Crossworks,
> and I know how good Rowley support is, but it is a lot more expensive and is command
> line software which we'd probably have to write a front end for. On the other hand it
> sounds like OpenOCD can be painful to install and get working.
>
> Have I missed an obvious solution?

OpenOCD should work fine. It is not really painful to install (at
least under Windows
and Linux) and get working if you use the recommended hardware JTAG debugger.
Their mailing list is also quite helpful.

For Windows, you can download the binary here. It is linked with
libftdi.
http://www.freddiechopin.info/index.php/en/download/category/4-openocd

As for the driver, I think Olimex may have provide the supported libusb-win32
driver. If not, you can use the FTDI driver and then install libusb-win32 filter
on top to use libftdi/OpenOCD. libusb-win32 has the GUI Filter Wizard which
is really easy to use.

--
Xiaofan
Hi Phil

Your LPCXpresso suggestion is a good one for ultimate low-budget, but in the particular production environment I am thinking of, the Segger unit will result in a lot less support phone calls to me.

--
Tim Mitchell

On Fri, Sep 30, 2011 at 6:16 PM, Tim Mitchell wrote:
> Hi Phil
>
> Your LPCXpresso suggestion is a good one for ultimate low-budget,
> but in the particular production environment I am thinking of, the Segger
> unit will result in a lot less support phone calls to me.

If you have the buget, then the Segger solution is good. Take note you
need to buy J-Flash license.
http://www.segger.com/cms/jflash.html

If you are using Atmel MCU, then they provide the programming
utility which supports J-Link for free.

--
Xiaofan
----Original Message----
From: l...
[mailto:l...] On Behalf Of Xiaofan Chen
Sent: 30 September 2011 11:24 To: l...
Subject: Re: [lpc2000] Re: Production programming of LPC17xx

>
> If you have the buget, then the Segger solution is good.
> Take note you
> need to buy J-Flash license.
> http://www.segger.com/cms/jflash.html
>

That's a good point... another 400 euro... although it does say you can plug by USB and copy data files using USB mass-storage.

--
Tim Mitchell

----Original Message----
From: l...
[mailto:l...] On Behalf Of Tim Mitchell
Sent: 30 September 2011 12:16 To: l...
Subject: RE: [lpc2000] Re: Production programming of LPC17xx

> ----Original Message----
> From: l...
> [mailto:l...] On Behalf Of Xiaofan Chen
> Sent: 30 September 2011 11:24 To: l...
> Subject: Re: [lpc2000] Re: Production programming of
> LPC17xx
>
> >
> > If you have the buget, then the Segger solution is
> > good. Take note you need to buy J-Flash license.
> > http://www.segger.com/cms/jflash.html
> > That's a good point... another 400 euro... although it
> does say you can plug by USB and copy data files using
> USB mass-storage.
Just to set the record straight, Segger say the J-Flash software is included in the price, you do not need to buy a license separately.
--
Tim Mitchell

If your toolchain can output (X)SVF or JAM files (these files are low-level "recording" of the JTAG events), then there are dozens of relatively low cost professional programmers available which can "play" these files "back" (my favourite are the Elnec products but given my location I am inevitably biased ;-) ).

The added benefit for your producer is, that most of them are much more versatile and can program also the AVRs and PICs through their respective SPI-like ISP interfaces.

Jan Waclawek
----- Original Message ---------------
>Hi Phil
>
>Your LPCXpresso suggestion is a good one for ultimate low-budget, but in the particular production environment I am thinking of, the Segger unit will result in a lot less support phone calls to me.
>
>--
>Tim Mitchell

> If your toolchain can output (X)SVF or JAM files (these files are low-
> level "recording" of the JTAG events), then there are dozens of
> relatively low cost professional programmers available which can "play"
> these files "back" (my favourite are the Elnec products but given my
> location I am inevitably biased ;-) ).
>
> The added benefit for your producer is, that most of them are much more
> versatile and can program also the AVRs and PICs through their
> respective SPI-like ISP interfaces.

JAM and SVF files have no loop capability, so it would be hard to flash an
LPC1700 using them.

Having written JAM (extended somewhat) and SVF parser in order to play these
on a CrossConnect, there is no possibility of programming an LPC1700 without
some form of conditional in the script. They don't offer it, so there's no
point in going down this road.

Regards,

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
SolderCore running Defender... http://www.vimeo.com/25709426