ARM Technical Support Knowledge Articles

FLASH DOWNLOAD OF NXP LPC17xx FAILS

Applies to: ULINK USB-JTAG Debugger

Answer


Information in this knowledgebase article applies to:


SYMPTOM

When I try to download my application into the flash of a new LPC17xx device via ULINK2/ULINK-ME/ULINKpro USB-JTAG Adapter, programming works very slow and then I receive the message:

"Flash Timeout. Reset the Target and try again"
and then
"Flash Download failed".

This only happens when I program a LPC17xx device that is new or was completely erased before. When an application was previously loaded, everything works as expected.

CAUSE

NXP LPC17xx devices have an on-chip bootloader that initializes the PLL0 and the CPU clock divider (CCLKCFG) after a reset when there is no application loaded into the flash or when pin INT0 is pulled low. Our flash algorithm disabled the PLL0 but did not initialize the CCLKCFG register.

RESOLUTION

This issue is solved with the attached Flash algorithms. Please download the attached ZIP file and extract it to your C:\Keil\ARM\Flash folder. If you did not install the MDK to C:\Keil, please adapt the path accordingly.

This patch is already included in MDK releases later than version 4.54.

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2012-08-20 07:59:36

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential