Yahoo Groups archive

Lpc2000

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

Thread

Erasing through JTAG?

Erasing through JTAG?

2004-12-23 by Leighton Rowe

I've recently been using the JTAG (along with IAR Software) to flash 
download code to my board for debugging. Everything works fine the 
first time I debug. However, if I made a code change and tried to 
flash & debug again I get data aborts. I usually have to do a hard 
Philips ISP erase before debugging again.

Does the JTAG have any flash erasing capabilities?

Re: [lpc2000] Erasing through JTAG?

2004-12-23 by Charles Manning

On Friday 24 December 2004 04:35, you wrote:
> I've recently been using the JTAG (along with IAR Software) to flash
> download code to my board for debugging. Everything works fine the
> first time I debug. However, if I made a code change and tried to
> flash & debug again I get data aborts. I usually have to do a hard
> Philips ISP erase before debugging again.
>
> Does the JTAG have any flash erasing capabilities?
>

You need to erase pretty much the same way as you do programming, by using 
the IAP commands. If this is not working with the IAR setup, contact them 
since they most likely wrote the code.

RE: [lpc2000] Erasing through JTAG?

2004-12-23 by Dan Beadle

I recently was working a similar problem with IAR JLink and Keil MPC2100
board.

 

I set IAR JLink clock parameter to 12 Mhz, debug Verify Flash ON.

 

Often, I got "Target Inconsistency" errors on download, yet if I dump the
data, it is correct.

 

 

I eventually figured out that the PLL was still running at program time,
making my clock 48Mhz.  

(My JTAG lets the CPU run for a while after reset.  The last target app runs
for a while - long enough to set the PLL back up.)

 

I set the IAR clock parameter to 48Mhz, and forced the JTAG speed to 1 MHz.
Now everything is great. 

 

Is it possible that you are not reseting the chip on programming?  

  _____  
Show quoted textHide quoted text
From: Leighton Rowe [mailto:leightonsrowe@...] 
Sent: Thursday, December 23, 2004 7:35 AM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] Erasing through JTAG?

 


I've recently been using the JTAG (along with IAR Software) to flash 
download code to my board for debugging. Everything works fine the 
first time I debug. However, if I made a code change and tried to 
flash & debug again I get data aborts. I usually have to do a hard 
Philips ISP erase before debugging again.

Does the JTAG have any flash erasing capabilities?








Yahoo! Groups Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129kao4sl/M=298184.5639630.6699735.3001176/D=gr
oups/S=1706554205:HM/EXP=1103908720/A=2495208/R=0/SIG=11egg01lg/*http:/www.n
etflix.com/Default?mqso=60188914> click here


 
<http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=
:HM/A=2495208/rand=151830087> 

 

  _____  

Yahoo! Groups Links

*	To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/
  
*	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!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



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

Re: [lpc2000] Erasing through JTAG?

2004-12-23 by Charles Manning

This would be a problem.

The fastest you can run the JTAG clock is one sixth the speed of the ARM core 
(this is part of the ARM Embedded ICE design).  If the PLL is not running 
then you can only run at 1/6th the speed of the crystal.
Show quoted textHide quoted text
On Friday 24 December 2004 07:22, Dan Beadle wrote:
> I recently was working a similar problem with IAR JLink and Keil MPC2100
> board.
>
>
>
> I set IAR JLink clock parameter to 12 Mhz, debug Verify Flash ON.
>
>
>
> Often, I got "Target Inconsistency" errors on download, yet if I dump the
> data, it is correct.
>
>
>
>
>
> I eventually figured out that the PLL was still running at program time,
> making my clock 48Mhz.
>
> (My JTAG lets the CPU run for a while after reset.  The last target app
> runs for a while - long enough to set the PLL back up.)
>
>
>
> I set the IAR clock parameter to 48Mhz, and forced the JTAG speed to 1 MHz.
> Now everything is great.
>
>
>
> Is it possible that you are not reseting the chip on programming?
>
>   _____
>
> From: Leighton Rowe [mailto:leightonsrowe@...]
> Sent: Thursday, December 23, 2004 7:35 AM
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] Erasing through JTAG?
>
>
>
>
> I've recently been using the JTAG (along with IAR Software) to flash
> download code to my board for debugging. Everything works fine the
> first time I debug. However, if I made a code change and tried to
> flash & debug again I get data aborts. I usually have to do a hard
> Philips ISP erase before debugging again.
>
> Does the JTAG have any flash erasing capabilities?
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
>
> ADVERTISEMENT
>
> <http://us.ard.yahoo.com/SIG=129kao4sl/M=298184.5639630.6699735.3001176/D=g
>r
> oups/S=1706554205:HM/EXP=1103908720/A=2495208/R=0/SIG=11egg01lg/*http:/www.
>n etflix.com/Default?mqso=60188914> click here
>
>
>
> <http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S
>=
>
> :HM/A=2495208/rand=151830087>
>
>   _____
>
> Yahoo! Groups Links
>
> *	To visit your group on the web, go to:
> http://groups.yahoo.com/group/lpc2000/
>
> *	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!
> <http://docs.yahoo.com/info/terms/>  Terms of Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>

Re: Erasing through JTAG?

2004-12-24 by itsjustimpossible

Hi
We had exactly the same problem using the J-Link.
What version of the philips bootloader is in the target device? 
Updating the bootloader in my development board to the latest 
provided by Philips made all the difference. Worked like a charm 
after that...

Without the update, programming would fail if the device already 
contained code that had enabled the PLL.

Hope this helps
Simon

--- In lpc2000@yahoogroups.com, "Dan Beadle" <dan.beadle@i...> wrote:
>  
> 
> I recently was working a similar problem with IAR JLink and Keil 
MPC2100
Show quoted textHide quoted text
> board.
> 
>  
> 
> I set IAR JLink clock parameter to 12 Mhz, debug Verify Flash ON.

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.