ULINK: FLASH DOWNLOAD OF NXP LPC17xx FAILS
Information in this knowledgebase article applies to:
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"
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.
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.
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.
Request the files attached to this knowledgebase article.
Last Reviewed: Monday, August 20, 2012
of your data.