Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Flash upload via JTag

2005-05-25 by soren_t_hansen

Hi Tom

Is this the kind of program that is found under the Files
(LPC-Flashroutines...) or do you have another program that can do the
trick.
And will it work with a Raven JTag (Chameleon POD) and GDB?

/Søren

--- In lpc2000@yahoogroups.com, "tom_laffey" <tom_laffey@y...> wrote:
> Hi Soren,
> 
> I'm using a 2294 and program flash via JTAG.  I make use of the tool 
> chain's ability to open files on the PC via the debugger/JTAG 
> connection, i.e., using "semi-hosting".  
> 
> The basic approach is to write a (C/C++) program that performs the 
> following steps (error checking, etc omitted):
>   - open a file on the host
>   - read data from the debugger/host file into a buffer
>   - as needed, erase a flash sector using IAP call
>   - write the buffer to the correct offset within the current sector 
> using IAP call
>   - repeat until end of file or end of flash space
> 
> The program descibed above is loaded into RAM with the debugger and 
> executed.  On program completion, the part's flash is programmed.  
> 
> Regards,
> 
> 
> Tom
> 
> 
> --- In lpc2000@yahoogroups.com, "soren_t_hansen" <soren_t_hansen@y...> 
> wrote:
> > Is it possible to upload ones program to the flash memory of a LPC2132
> > through the JTag interface?
> > I'm using a Chameleon POD JTag Interface and OCDRemote, in combination
> > with Eclipse.
> > 
> > I know that it is possible through Keil micro Vision, but as I'm using
> > C++, this is not an option.
> > 
> > Is it completly undoable or does a workaround exist?
> > 
> > Regards
> > Søren

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.