EmbeddedRelated.com
Forums

Flashless LPC2210, flash download?

Started by volunteer_sysu March 30, 2006
Dominic,
I still meet a problem when trying to run the version you
recommended. The problem is where I should run this version, cygwin,
DOS, or just double click it? I tried all of them, but none worked.
And the problem with the version I downloaded before is that one
headfile missing, exactly ftd2xx.h, whose directory is
openocd\src\jtag. And this version was downloaded from the website
showing as follows:
http://prdownload.berlios.de/openocd/openocd-cygwin-ftd2xx-
20060213.tar.gz

Best Regards

Kevin

--- In l..., Dominic Rath
wrote:
>
> I guess this was the last release from the files section,
precompiled for
> Cygwin with support for FTDI FT2232 based JTAG interfaces.
>
> Try this one instead:
> http://www.siwawi.arubi.uni-
kl.de/avr_projects/arm_projects/openocd_svn55_win32_cygwin.zip
>
> It comes with all the files necessary and you don't have to build
it yourself.
>
> Regards,
>
> Dominic
>
> On Thursday 30 March 2006 12:45, volunteer_sysu wrote:
> > The errors are as follows. I have no idea about what happend. I
> > think I downloaded the latest version.
> >
> > Best Regards
> >
> > Kevin
>

Yahoo! Groups Links

An Engineer's Guide to the LPC2100 Series

Hello,

the OpenOCD requires a configuration file, specifying the JTAG interface to
use, the layout of the JTAG scan chain, the target connected, and other
things. By default, it tries to open 'openocd.cfg' in the same directory as
the binary, but you can select the configuration file with the '-f
config.file' command line switch.

This means that double-clicking wont work, unless you use a link specifying
the appropriate command line arguments.

Regards,

Dominic

On Thursday 30 March 2006 14:48, volunteer_sysu wrote:
> Dominic,
> I still meet a problem when trying to run the version you
> recommended. The problem is where I should run this version, cygwin,
> DOS, or just double click it? I tried all of them, but none worked.
> And the problem with the version I downloaded before is that one
> headfile missing, exactly ftd2xx.h, whose directory is
> openocd\src\jtag. And this version was downloaded from the website
> showing as follows:
> http://prdownload.berlios.de/openocd/openocd-cygwin-ftd2xx-
> 20060213.tar.gz
>
> Best Regards
>
> Kevin

Yahoo! Groups Links
You need to :-

1) Get Jim Lynch's latest tutorial. Search elsewhere in this group for
where to get it from. Make sure it is the version based on OpenOCD and
you use the exact version that jim mentions. You can however use the
latest version of OpenOCD that dominic gave you a URL too.

2) Adapt Jim's Led Flashing program to suit your chip, this will at
least need modification of the Linker scripts. Make sure you try the
running from RAM bit and skip past the running from Flash bit.

Does anybody in this group have or know where to get a linker script
for Kevin's chip ????? It may be in the files section of this group.

3) Once you have LED flashing then your Toolchain is working. Then you
can move on to look at using OpenOCD to write to your flash.

--- In l..., "volunteer_sysu" wrote:
>
> Dominic,
> I still meet a problem when trying to run the version you
> recommended. The problem is where I should run this version, cygwin,
> DOS, or just double click it? I tried all of them, but none worked.
> And the problem with the version I downloaded before is that one
> headfile missing, exactly ftd2xx.h, whose directory is
> openocd\src\jtag. And this version was downloaded from the website
> showing as follows:
> http://prdownload.berlios.de/openocd/openocd-cygwin-ftd2xx-
> 20060213.tar.gz
>
> Best Regards
>
> Kevin
>
> --- In l..., Dominic Rath
> wrote:
> >
> > I guess this was the last release from the files section,
> precompiled for
> > Cygwin with support for FTDI FT2232 based JTAG interfaces.
> >
> > Try this one instead:
> > http://www.siwawi.arubi.uni-
> kl.de/avr_projects/arm_projects/openocd_svn55_win32_cygwin.zip
> >
> > It comes with all the files necessary and you don't have to build
> it yourself.
> >
> > Regards,
> >
> > Dominic
> >
> > On Thursday 30 March 2006 12:45, volunteer_sysu wrote:
> > > The errors are as follows. I have no idea about what happend. I
> > > think I downloaded the latest version.
> > >
> > > Best Regards
> > >
> > > Kevin
>

Yahoo! Groups Links
At 10:07 AM 3/30/06 +0200, Dominic Rath wrote:
>you can't use the ISP protocol to program an external flash. On the 2210/20
>it's only possible to transfer code to target RAM. Philips can't know how
>your external memory wants to be programmed.

Well, you could use the serial ISP to bootstrap the programming routines
into RAM. That's how some serial ISPs work even for internal flash. The
ST10 as an example loads something like 16 bytes from the serial port to a
fixed memory location and then jumps to it. The serial ISP process is a
set of step loading larger programs into RAM until you have one that can
handle the flash programming. It's a lot more straightforward than I just
made it sound.

Robert

" 'Freedom' has no meaning of itself. There are always restrictions, be
they legal, genetic, or physical. If you don't believe me, try to chew a
radio signal. " -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Yahoo! Groups Links
Hello, Dominic
I wonder whether I can use the schema of the JTAG in your
document "Open On-chip Debugger" to make a JTAG interface. Then I
can use it to debug my evaluation kit in openOCD, right?

Thanks & Regards!

Kevin

--- In l..., Dominic Rath
wrote:
>
> Hello,
>
> you can't use the ISP protocol to program an external flash. On
the 2210/20
> it's only possible to transfer code to target RAM. Philips can't
know how
> your external memory wants to be programmed.
>
> The OpenOCD (GPLed JTAG debugger for ARM7/9 systems, happens to be
my
> project ;)) supports programming of external CFI compatible
flashes using the
> Intel commandset.
>
> Regards,
>
> Dominic
>
> On Thursday 30 March 2006 09:46, volunteer_sysu wrote:
> > I am beginner in LPC2000. I want to ask some questions. Thank
you!
> > 1. I wonder whether there's any free software that can be used to
> > download programs to the external flash via UART or JTAG?
> > 2. I don't know how to use the ISP protocol provided by Philips,
will
> > anyone who has written a program to download programs to the
external
> > flash teach me how to do that, or send me the source code?
thanks!
>

Yahoo! Groups Links