CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

about CHECKSUM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
scanan



Joined: 13 Aug 2004
Posts: 76
Location: Turkey

View user's profile Send private message Visit poster's website

about CHECKSUM
PostPosted: Fri Sep 12, 2025 9:20 am     Reply with quote

Hi,
after compiling my code I get a warning like that
>>> Warning 204 "C:\TX\TX.c" Line 128(1,1): Condition always FALSE CHECKSUM

I am using #ID CHECKSUM

what's that mean
compiler version 5.115
pic used PIC18F65K40
cheers
_________________
Dr Suleyman CANAN
R&D Electronic Engineer
https://suleymancanan.wordpress.com

Do whatever you do with amateur spirit -
But always feel professional.
Ttelmah



Joined: 11 Mar 2010
Posts: 19944

View user's profile Send private message

PostPosted: Fri Sep 12, 2025 11:30 am     Reply with quote

You need to show us what you are doing.
It sounds as if you are misusing the #id statement. Possibly as if it is a
program statement, rather than a preprocessor command.
asmallri



Joined: 12 Aug 2004
Posts: 1658
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

Re: about CHECKSUM
PostPosted: Fri Sep 12, 2025 8:17 pm     Reply with quote

scanan wrote:
Hi,
after compiling my code I get a warning like that
>>> Warning 204 "C:\TX\TX.c" Line 128(1,1): Condition always FALSE CHECKSUM

I am using #ID CHECKSUM

what's that mean
compiler version 5.115
pic used PIC18F65K40
cheers


As Ttelmah said, you have not provided enough information to determine where the problem. Here is an example of the type of issue that could result in such a warrning:

Code:

bootlean mytest = FALSE;
// some other code here where mytest is assigned a value based on your program logic
..
..
// now an examle of an invalid test using = assignment operator instead of ==  test

if (mytest = FALSE){
// do something...
}


So what was supposed to happen was the variable mytest was being checked to see if it is equal to FALSE (zero) but what actually happened was mytest was assigned the static value of FALSE and as a result the if slatement is ALWAYS evaluated to FALSE

The compiler detects this abnormal test and hence produced the message you are seeing.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group