Keil Logo

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
 
  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.