I think the other guys hit the problem. Philips has bugs in the old 1.3 version boot loader. I will try updating the boot loaders tomorrow to 1.52. The info in the errata PDF is exactly what I am seeing, and it happens at higher clk rates which is exactly what I have. Actually quite a few bugs in these parts. I've run into other bugs last year that I now see documented in the PDF of Nov-2005.
Thanks, Chris.
----- Original Message -----
From: Danish Ali
To: lpc2000@yahoogroups.com
Sent: Thursday, February 23, 2006 12:58 AM
Subject: [lpc2000] Re: IAP throwing Undefined Instruction on some units
I think your crystal is faster than most of us use, so you might
be in uncharted territory.
Is it possible that you're giving the IAP call the wrong value for
the system clock frequency? The time of the flash write might be
process-dependent (and temperature and supply-voltage) so it
might vary from chip to chip. If the processor returns before
the flash is ready, who knows what instruction will be fetched.
Param3 should be 24000 or 48000 because it is in kHz.
Try boosting it by 20% to see if it is an extreme process corner.
(It is possible that such numbers are outside the range Philips
tested in their IAP delay routines. But the data sheet says
it should cope with up to 25000 kHz).
Another thing I would try is a longer delay between
"prepare for write" and "copy ram to flash".
ISP programming is likely to have a long delay between commands.
Hope this helps you get these chips working,
Danish
SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors
Pic microcontrollers
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "lpc2000" on the web.
b.. To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]Message
Re: [lpc2000] Re: IAP throwing Undefined Instruction on some units
2006-02-23 by sig5534@hotmail.com
Attachments
- No local attachments were found for this message.