PSOC Creater 2.1 warning: Error processing element 'register'. error at line 262: invalid address

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

On module Counter_2_20 I get this warning:

   

" Error processing element 'register'. error at line 262: invalid address"

   

Should I be worried.

   

Thanks,

   

Phil

0 Likes
4 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Generally speaking its a good idea to track down all warnings and

   

get rid of them either by selected ignore settings or the actual issue.

   

 

   

An error is a bug in compiler or a real problem, generally the later. Either

   

way attention should be paid to it. If you post project forum can take a

   

look at it. Or post a subset of project that produces error if you are not com-

   

fortable posting whole project in a public setting.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

"register" is a reserved word in C. If you introduced that name with one of your components or with your code, best would be to rename it to "Register" (capital "R"). And obey the hints Dana gave you, no warnings!!!

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Think of a warning this way -

   

 

   

You are a reactor operator, a warning light comes on, flashing, low

   

water level in the core. Reactor (your program) is still running, but not

   

much longer, core metldown imminent. Chernobyl all over.

   

 

   

Food for thought.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 We have to clear all warning for our software release. If that is not possiible, we have to make notes for this exception for approval.

0 Likes