Yahoo Groups archive

Lpc2000

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

Message

Re: IAR, JLINK and PLL problems

2004-09-05 by douglasbolton

--- In lpc2000@yahoogroups.com, "itsjustimpossible" <simonjh@b...> 
wrote:
> Hi
> We are using the IAR workbench and Jlink to develop code for the 
> LPC2129. I must use the PLL and debug from FLASH as my timing is 
> criticle but the use of the PLL is preventing the Jlink connecting. 
> The only way around this is to use the Philips Flash utility to 
> erase the device each time before I start the debugger.
> On the development board this is a pain, but I would prefer our 
> target board not to have a serial port if possible.
> 
> Firstly, has anyone managed to get around this problem? (The recent 
> Jlink DLL patch has not helped.)
> 
> Secondly, has anyone used an alternative debugger with IAR that 
does 
> not have this problem?
> 
> Any comments would be greatly appreciated.
> 
> best regards
> Simon


We had the same problem. Once you have programmed the flash with the 
pll enabled the processor is history as far as the debugger is 
concerned until you scrub the flash.

I found jlink will work ok with pll running if you set the following 
in the jlink menu of the debugger.

1. tick philips lpc download button

2. tick reset aserts hardware reset pin

3. although this is not the case set the cclk to whatever you are 
running the cpu clock

we have a 10mhz crystal pumped up to 60 mhz by the pll. In theory we 
should set the cclk setting to 10000 in the jlink menu. This doesn't 
work. If we set it to 60000 we have never had a problem!!!!

regards Doug

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.