ARM: DEBUG PROGRAMS IN ON-CHIP RAM OF PHILIPS LPC2000
Information in this article applies to:
I want to setup a project for debugging in on-chip RAM (starting at address 0x40000000) on the Philips LPC2000 devices. Is this possible? What are the required steps?
Yes. It is possible to locate programs into on-chip RAM. You can then debug without the breakpoint limitations that are implied by the ARM Embedded ICE hardware for programs stored in Flash.
For the Keil MCB2100 board, you will find a sample project in the Keil\ARM\Boards\Keil MCB2100\Blinky folder. This project has three targets. The MCB2100 RAM target is configured for RAM Debugging.
When configuring your project, you must ensure that the complete program code resides in on-chip RAM. Use the following steps to configure the Keil CARM Compiler in this way:
You may verify the location of your program in the linker map file. The memory classes should appear as follows:
ACTIVE MEMORY CLASSES OF MODULE: .\RAM\Blinky (STARTUP) BASE START END USED MEMORY CLASS ======================================================== 00000000H 40003000H 40003FFFH 00000490H DATA 00000000H 40000000H 40002FFFH 0000030CH CODE 00000000H 40000000H 40002FFFH 00000022H CONST
Under MEMORY MAP OF MODULE no segments should be located outside the on-chip RAM space.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, April 6, 2005
of your data.