Yahoo Groups archive

Lpc2000

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

Thread

RAM loading via JTAG

RAM loading via JTAG

2005-08-17 by Piotr Zbysinski

I plan to build Flash programmer (via JTAG) for LPC2K. Is there 
anybody who knows JTAG command codes used for SRAM loading?
Rgs
Piotr

Re: [lpc2000] RAM loading via JTAG

2005-08-17 by Richard Duits

When you switch the ARM7 into debug mode, all instructions and data are 
read from the jtag interface. You can just upload a ldm instruction for 
example with the data following the instruction and then use a stm 
instruction to store it in sram. Then you setup the registers to call 
the IAP routine and set a breakpoint to the same address the LR is 
pointing to. The ARM site has excelent documentation on this, so I 
suggest you browse www.arm.com and lookup the information you need.

A suggestion: use a FT2232 (see 
http://www.ftdichip.com/FTProducts.htm#FT2232C) for the low level JTAG 
stuff, they have a JTAG DLL for windows and good documentation the write 
this yourself for other platforms. All you need is this single FT2232 
and some passive components to make this work.

Richard Duits



Piotr Zbysinski wrote:
Show quoted textHide quoted text
> I plan to build Flash programmer (via JTAG) for LPC2K. Is there
> anybody who knows JTAG command codes used for SRAM loading?
> Rgs
> Piotr
>
>
>
>
> SPONSORED LINKS
> Microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&w5=8085+microprocessor&c=5&s=120&.sig=OPqm0ilH6VyGn-geZ0nNwA> 
> 	Microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&w5=8085+microprocessor&c=5&s=120&.sig=e6n93hF7rArBsrPQJltQ_w> 
> 	Intel microprocessors 
> <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&w5=8085+microprocessor&c=5&s=120&.sig=EENrTtKaQUw-Vd0BgTdDmw> 
>
> Pic microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&w5=8085+microprocessor&c=5&s=120&.sig=iYT6za1gT3-VT1hwIylDpw> 
> 	8085 microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=8085+microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&w5=8085+microprocessor&c=5&s=120&.sig=PhYMBsCkQptYbazQFyNujQ> 
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Re: [lpc2000] RAM loading via JTAG

2005-08-18 by Piotr Zbysinski - EP(H)

----- Original Message ----- 
Show quoted textHide quoted text
  From: Richard Duits 
  To: lpc2000@yahoogroups.com 
  Sent: Thursday, August 18, 2005 1:15 AM
  Subject: Re: [lpc2000] RAM loading via JTAG


  When you switch the ARM7 into debug mode, all instructions and data are 
  read from the jtag interface. You can just upload a ldm instruction for 
  example with the data following the instruction and then use a stm 
  instruction to store it in sram. 

  ** Do you mean: should I send via JTAG binary code of LDM/STM instructions?

  Then you setup the registers to call 
  the IAP routine and set a breakpoint to the same address the LR is 
  pointing to. The ARM site has excelent documentation on this, so I 
  suggest you browse www.arm.com and lookup the information you need.
  ** OK, I'll try.


  A suggestion: use a FT2232 (see 
  http://www.ftdichip.com/FTProducts.htm#FT2232C) for the low level JTAG 
  stuff, they have a JTAG DLL for windows and good documentation the write 
  this yourself for other platforms. All you need is this single FT2232 
  and some passive components to make this work.

  ** JTAG is not a problem for me (I used FT2232 in universal PLD programmer/configurator IEEE1532 compatible). My idea is to prepare Windows software for simple Macraigor interface for fast programming LPC uCs. 
  Thanks for answer.
  Piotr

[Non-text portions of this message have been removed]

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.