|ARM Technical Support Knowledge Articles|
Applies to: ARM Development Tools
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 KeilARMBoardsKeil MCB2100Blinky 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:
DATA (0x40003000-0x40003FFF), CODE (0x40000000-0x40002FFF), CONST (0x40000000-0x40002FFF)
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: .RAMBlinky (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.
Article last edited on: 2005-04-06 11:41:40
Did you find this article helpful? Yes No
How can we improve this article?