ARM Technical Support Knowledge Articles

ACCESSING THE FULL MEMORY SPACE

Applies to: C251 C Compiler

Answer


Information in this article applies to:


QUESTION

I want to use the Intel 80C251TB or the Atmel 80C251G2D in my new designs. The hardware provides 128KBytes RAM and 128KBytes Flash EPROM. What is the best way to configure the tools?

ANSWER

The uVision2 memory wizard makes the tool setup as easy as possible. You only need to specify the available memory of your target system under Project - Options for Target - Target. For example:

If you have RAM in the address range 00:0000-01:FFFF, under External Memory, enter...

If you have FLASH memory in the address range FE:0000-FE:FFFF, enter

Use the far memory type for variables located in RAM (readable/writable) memory. Use the far const memory type for variables located in ROM (readable-only). You may use these memory types in any memory model of the C251 compiler.

The XSMALL memory model seems to be the best choice for programs that handle many variables. If the code size of your application program is larger than 64KB, you should select Code ROM Size: Huge.

The recommended settings in the Options for Target - Target dialog for big 251 applications are:

MORE INFORMATION

Detailed information about the 251 Memory Models and Memory Types can be found in the C251 Compiler User's Guide, Chapter 3. Language Extensions.

SEE ALSO

Article last edited on: 2002-01-23 00:00:00

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