beautypg.com

Echelon Neuron User Manual

Page 75

background image

Neuron Tools Errors Guide

67

NCC#

Description

176

This event duplicates or overlaps a previous one [NCC#176]

In many cases, use of a when clause containing an event that is a duplicate

or an overlap of a previous event expression would prevent the associated
task from being executed, or may cause anomalous behavior, with one task

being executed sometimes, and the other being executed the rest of the

time.

(This latter behavior would occur as the result of round-robin execution by

the Neuron Chip firmware scheduler, if the scheduler_reset feature were
not used.)

177

Recommend use of ‘scheduler_reset’ feature [NCC#177]

The compiler makes this recommendation when there is a possibility of

anomalous execution of different tasks because the tasks' respective when

clauses are not mutually exclusive.

178

Cannot have any non-polled output network variables when more than 14

bindable message tags are defined [NCC#178]

A Neuron Chip has up to 15 address table entries. Each bindable message

tag consumes one address table entry, whether bound or not. Network

variables can share address table entries, but there must be at least one
available. This message indicates that there are no entries available for

network variables because message tags are consuming all of the address
table entries.

179

Incorrect use of ‘void’ in function prototype [NCC#179]

The void type has no size. It cannot be used as an argument of the sizeof

operator, nor can it be used to declare a variable. Its only legal uses are in

declaring function return types, declaring that a function has no
parameters, and in combination with * to define a type void * (a wildcard

pointer type).

180

Function parameter may not be ‘struct’ or ‘union’ type [NCC#180]

Neuron C does not support passing struct or union types by value as

function parameters. You may use a pointer to the structure or union as a
function parameter.

181

Function declarations must use prototypes [NCC#181]

Neuron C is more restrictive than ANSI C in this area. The Neuron Chip's

stack machine architecture does not permit calling undeclared functions
with unknown numbers of parameters.