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

Search found 6 matches
CCS Forum Index
Author Message
  Topic: Issues with structures on 24F and v4.118
GregReadUK

Replies: 5
Views: 7262

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 11:04 am   Subject: Issues with structures on 24F and v4.118
Thanks for the tips, *= 16 and #case.
Variable name co-incidence was a happy accident I hadn't even noticed.
  Topic: Issues with structures on 24F and v4.118
GregReadUK

Replies: 5
Views: 7262

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 8:33 am   Subject: Issues with structures on 24F and v4.118
Many thanks for the detailed clarification. I can work around it for now by not using -=.

I agree that once test cases are known, automated test tools definitely help to ensure higher quality con ...
  Topic: Issues with structures on 24F and v4.118
GregReadUK

Replies: 5
Views: 7262

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 6:35 am   Subject: Issues with structures on 24F and v4.118
This issue may be related to the -= operation on the structure member.
Changing to the code below makes it work as expected.

void a(MYSTRUCT *pStruct)
{
pStruct->a32var = 123;
pStruc ...
  Topic: Issues with structures on 24F and v4.118
GregReadUK

Replies: 5
Views: 7262

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 6:31 am   Subject: Issues with structures on 24F and v4.118
Hi Folks,

I am encountering an issue with structures on a PIC24F and v4.118 of compiler (Pretty sure I saw this with a few earlier compiler versions too).

Simple code is below, I initialise st ...
  Topic: Error/Bug in == and != operators in 4.117 compiler on 24F?
GregReadUK

Replies: 2
Views: 4490

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 4:58 am   Subject: Fixed in 4.118
Just tried 4.118 and it is fixed. thanks.

Results are now..

What are the != and == operators doing?
DEVICE:PIC24FJ64GA004
COMPILER VERSION:4.118
ui1(0) == ui2(0)
ui1(0) == ui2(0)
si1(0) = ...
  Topic: Error/Bug in == and != operators in 4.117 compiler on 24F?
GregReadUK

Replies: 2
Views: 4490

PostForum: General CCS C Discussion   Posted: Mon Jan 24, 2011 4:43 am   Subject: Error/Bug in == and != operators in 4.117 compiler on 24F?
Hi Folks.

I am encountering a major problem in the latest compiler version 4.117. The != and == operators don't work as expected, e.g. 0 != 0.

Only tested on DEVICE:PIC24FJ64GA004
COMPILER VER ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group