Echelon Neuron C User Manual

Page 191

Advertising
background image

Neuron C Programmer’s Guide

179

• The ROM region has a system area and a user area (Neuron 3150 Chip

and FT 3150 Smart Transceiver only). The system area is 16 KB (or

larger) on a Neuron 3150 Chip or Series 5000 chip. The user area is also

named ROM. The Neuron C compiler and linker place executable code
and constant data in the user area, unless flash memory is used. When

flash memory is used for ROM, user code is placed in the EECODE area.

• The EEPROM region consists of the following three areas:

EECODE
EEFAR

EENEAR


If there is both on-chip and off-chip EEPROM, each region of EEPROM

has its own section of EECODE and EEFAR. There is only one section of

EENEAR, and it is always located on-chip. All of these are user areas.

EECODE contains executable code and constant data. The eeprom

keyword in Neuron C forces the compiler to place a specific object in this
area.


The EEFAR area contains variables declared with the far keyword

combined with either the config or eeprom keywords. This area also

contains configuration property network variables declared with the
config_prop (or cp) keyword and the modifiable configuration property file

for configuration properties declared with the cp_family keyword.


You can use the offchip and onchip keywords in Neuron C to force the

compiler and linker to place specific objects in the offchip and onchip

EEFAR areas.

The EENEAR area contains variables declared with either the config or

eeprom keywords. It is the default, but is limited to a total size of 255
bytes.

• The RAM region consists of three areas:

RAMCODE

RAMFAR
RAMNEAR

RAMCODE can only be located off-chip (Neuron 3150 Chip or 3150 Smart
Transceiver only). It contains executable code and constant data. By

using the ram keyword in a declaration, you can explicitly place
executable code and constant data in this area. This area can only be

implemented in a RAM that is based on a non-volatile memory

technology, such as battery-backed RAM.

RAMFAR may be located both on-chip and off-chip. There can be one or

two sections of RAMFAR in the on-chip RAM. If there is off-chip RAM, it
can contain only one RAMFAR area. The RAMFAR area contains

variables.


You can use the offchip and onchip keywords in Neuron C to force the

Advertising