beautypg.com

Echelon Neuron User Manual

Page 98

background image

90

Neuron C Compiler Errors (NCC)

NCC#

Description

353

Variable being declared is too large for RAMNEAR. Use 'far'. [NCC#353]

The variable being declared is larger than 256 bytes in size. The total

available size of the RAMNEAR area in the Neuron is 256 bytes, thus this
variable declaration

must

be placed in RAMFAR. Use the far keyword in

the declaration ("near" is the default). See Chapter 8 of the

Neuron C

Programmer's Guide

for more information.

354

Variable being declared is too large for EENEAR. Use 'far'.

The variable being declared is larger than 255 bytes in size. The total

available size of the EENEAR area in the Neuron is 255 bytes, thus this

variable declaration

must

be placed in EEFAR. Use the far keyword in the

declaration ("near" is the default). See Chapter 8 of the Neuron

C

Programmer's Guide

for more information.

357

The 'uninit' storage class requires use of 'eeprom' or 'config' or ‘cp’ [NCC#357]

The uninit storage class is used to tell the compiler not to provide any

initial value for the data item being declared, thus the loader will not
overwrite that area of memory when reloading the program. This feature is

only available for data items using EEPROM or Flash memory (the uninit

storage class does not apply to RAM variables). The uninit feature requires
the declaration to use one of the storage classes eeprom, config, or

config_prop (abbreviated cp). See the

Neuron C Programmer’s Guide

for

more information.

358

The 'offchip' storage class requires use of 'far’ [NCC#358]

The Neuron Chip provides a “near” area of EEPROM memory and a "near"

area of RAM memory. Each of the “near” areas is located onchip, and

“near” is the default memory area used by a data declaration. When
writing a program for a Neuron 3150, which has external (off-chip)

memory, the offchip keyword can be used in the data declaration to force

the linker to place the data item in offchip memory. Since the data
declaration would default to the near area, which is located on-chip, the far

keyword must also be used in the data declaration. Add the far keyword to

the declaration.

See Chapter 8 of the

Neuron C Programmer’s Guide

for more information

on managing memory resources.

359

The keywords 'offchip' and 'onchip' are mutually exclusive [NCC#359]

As the message states, at most one of these storage classes may be used in
a data declaration.