Flash upload via JTag
2005-05-23 by soren_t_hansen
Yahoo Groups archive
Index last updated: 2026-04-28 23:31 UTC
Thread
2005-05-23 by soren_t_hansen
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
2005-05-23 by tom_laffey
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
2005-05-23 by jamesasteres
Søren, I have a C++ program and can flash via JTAG using IAR debugger and JLink (I think JLink is made by Segger but IAR sells it too). James --- 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
2005-05-24 by Mike
James, I use the IAR debuugger with JLINK interface... I did not know that you could FLASH a chip via JTAG. Can you describe (in detail) this operation? Are there any tricks to it, that may not be intuitive to a novice user like myself? Thanks, - Mike --- In lpc2000@yahoogroups.com, "jamesasteres" <jamesasteres@y...> wrote:
> Søren, > I have a C++ program and can flash via JTAG using IAR debugger and > JLink (I think JLink is made by Segger but IAR sells it too). > James > > > --- 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
2005-05-24 by jamesasteres
Mike, I assume you are using the IAR compiler. The main challenge is getting the linker set up to place the program into flash (not RAM). We use a linker script file (not the dialogs). You should have some examples from IAR. IAR support can help you with set-up. James --- In lpc2000@yahoogroups.com, "Mike" <ware_florida@y...> wrote: > > James, > I use the IAR debuugger with JLINK interface... I did not know > that you could FLASH a chip via JTAG. > > Can you describe (in detail) this operation? Are there any tricks to > it, that may not be intuitive to a novice user like myself? > > Thanks, > - Mike > > > --- In lpc2000@yahoogroups.com, "jamesasteres" <jamesasteres@y...> > wrote: > > Søren, > > I have a C++ program and can flash via JTAG using IAR debugger and > > JLink (I think JLink is made by Segger but IAR sells it too). > > James > > > > > > --- 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
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