Keil Logo

ULINK: FLASH DOWNLOAD OF NXP LPC17xx FAILS


Information in this knowledgebase article applies to:

  • ULINK2/ULINK-ME/ULINKpro USB-JTAG Adapter
  • MDK-ARM Version 4.54 and lower

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.

Last Reviewed: Monday, August 20, 2012


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.