View previous topic :: View next topic |
Author |
Message |
scanan
Joined: 13 Aug 2004 Posts: 76 Location: Turkey
|
about CHECKSUM |
Posted: Fri Sep 12, 2025 9:20 am |
|
|
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
|
|
Posted: Fri Sep 12, 2025 11:30 am |
|
|
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
|
Re: about CHECKSUM |
Posted: Fri Sep 12, 2025 8:17 pm |
|
|
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!! |
|
 |
|