ARM Technical Support Knowledge Articles

DEBUG IN OFF-CHIP FLASH OF PHILIPS LPC22XX

Applies to: ULINK USB-JTAG Debugger

Answer


Information in this article applies to:


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

SEE ALSO

Article last edited on: 2007-01-28 19:15:58

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