Keil™, An ARM® Company

Technical Support

ULINK: DEBUG IN OFF-CHIP FLASH OF PHILIPS LPC22XX


Information in this article applies to:

  • Keil Development Suite for ARM V2.0 or higher
  • ULINK USB-JTAG Adapter
  • ULINK2 USB-JTAG Adapter

QUESTION

I have problems debugging an application that is stored in off-chip FLASH ROM. What must I do to debug my program?

ANSWER

The ULINK USB-JTAG Adapter uses the BOOT0 (P2.26) and BOOT1 (P2.27) pins to determine the startup configuration. When these pins are both set to 1, the µVision Debugger starts the program in the off-chip Flash ROM.

You may manually override the settings of the BOOTx pins using the following Debugger initialization file (*.INI file) that you must specify under Project — Options — Debug — ULINK ARM Debugger — Initialization File:

  _WDWORD(0xFFE00000, 0x20003CE3);   // BCFG0: Flash Bus Configuration (32-bit)
  _WDWORD(0xE002C014, 0x0E6001E4);   // PINSEL2: CS0, OE, WE, BLS0..3, D0..31, A2..23, JTAG

  _WDWORD(0xE01FC040, 0x00000003);   // MEMMAP: Memory Mapping
  LOAD AppFile INCREMENTAL
  g, main

Note that you must disable the Load application at Startup option in the dialog Project — Options — Debug — ULINK ARM Debugger.

MORE INFORMATION

  • Getting Started User's Guide, JTAG Debugging
  • Refer to Start Sequence in the ULINK® User's Guide.

SEE ALSO

Last Reviewed: Sunday, January 28, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure