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 25 matches
CCS Forum Index
Author Message
  Topic: Doing int1 Comparisions
bilko

Replies: 8
Views: 8503

PostForum: General CCS C Discussion   Posted: Tue Nov 22, 2011 4:25 am   Subject: Doing int1 Comparisions
This is all getting a bit silly.

I am getting endless similar bugs with structures, unions etc.

I seem to spend more time checking the compiler output than writing code.

Time to give up and t ...
  Topic: #PIN_SELECT changed in V4.125
bilko

Replies: 9
Views: 10919

PostForum: General CCS C Discussion   Posted: Sat Oct 08, 2011 1:36 am   Subject: #PIN_SELECT changed in V4.125
I used to be able to use #defines in #PIN_SELECT:
ie:
#define P_ChargePWM PIN_G6
...
#PIN_SELECT OC1=P_ChargePWM


but now in V4.125 I have to say:
#PIN_SELECT OC1=PIN_G6


This is PCD, I ...
  Topic: union struct problem
bilko

Replies: 6
Views: 6992

PostForum: General CCS C Discussion   Posted: Tue Aug 30, 2011 8:44 am   Subject: union struct problem
Wilco, thank you.
  Topic: union struct problem
bilko

Replies: 6
Views: 6992

PostForum: General CCS C Discussion   Posted: Tue Aug 30, 2011 5:12 am   Subject: union struct problem
usbBDT[0] is at address 0x2000
(see the #LOCATE in the code)
  Topic: union struct problem
bilko

Replies: 6
Views: 6992

PostForum: General CCS C Discussion   Posted: Mon Aug 29, 2011 9:04 am   Subject: union struct problem
FWIW it's a PIC24FJ256GB110
  Topic: union struct problem
bilko

Replies: 6
Views: 6992

PostForum: General CCS C Discussion   Posted: Mon Aug 29, 2011 2:56 am   Subject: union struct problem
I maybe being stupid but ..... the following code seems to compile to nonsense
Using PCD


typedef union {
struct {
//As written by software
uint16 Addr;
unsigned byteCount ...
  Topic: Compiler hangs
bilko

Replies: 0
Views: 3044

PostForum: General CCS C Discussion   Posted: Mon Aug 01, 2011 12:01 pm   Subject: Compiler hangs
I am using the COMMAND LINE PCD compiler V4.124 for a PIC24FJ256B108.

Currently my code generates 14500 lines in the list file and uses 12% of the ROM.

I now find that if I make my program a lit ...
  Topic: #ORG AUTO=0
bilko

Replies: 6
Views: 7239

PostForum: General CCS C Discussion   Posted: Wed Jan 27, 2010 7:41 am   Subject: #ORG AUTO=0
Further to this.

If I tell the bootloader to use more ram it still does NOT re-use low ram if I say AUTO=0
  Topic: #ORG AUTO=0
bilko

Replies: 6
Views: 7239

PostForum: General CCS C Discussion   Posted: Fri Jan 22, 2010 7:40 am   Subject: #ORG AUTO=0
AUTO=0 in a #ORG statement does not seem to reset RAM usage to low memory in my application.

At the moment I have RAM enough so I don't mind -- is the compiler clever enough to realise I have enoug ...
  Topic: asm syntax for int16 variables
bilko

Replies: 10
Views: 8325

PostForum: General CCS C Discussion   Posted: Mon Mar 05, 2007 10:34 am   Subject: asm syntax for int16 variables
It does work without the #define ... its just easier to use with
  Topic: asm syntax for int16 variables
bilko

Replies: 10
Views: 8325

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2007 10:58 am   Subject: asm syntax for int16 variables
.... and this also works

#define ByteOf(addr,n) (&((int8)addr)+n)
......
movwf ByteOf(acount,2) //w -> acount+2
  Topic: asm syntax for int16 variables
bilko

Replies: 10
Views: 8325

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2007 9:14 am   Subject: asm syntax for int16 variables
This works ... but it's annoying havong to change all my code .... and for all i know it will break with the next compiler version.

I have not found a way of dealing with int32


typedef union & ...
  Topic: Constant array problem
bilko

Replies: 15
Views: 21290

PostForum: General CCS C Discussion   Posted: Wed Mar 22, 2006 1:19 pm   Subject: Constant array problem
Thank you
  Topic: Constant array problem
bilko

Replies: 15
Views: 21290

PostForum: General CCS C Discussion   Posted: Wed Mar 22, 2006 11:17 am   Subject: Constant array problem
If anyone is still interested I have found the solution.

My code works fine if I set all the EBTRx fuses to NOT protected.

Obvious (sort of) when one RTFM, trouble is the FM is very long!

Thi ...
  Topic: Constant array problem
bilko

Replies: 15
Views: 21290

PostForum: General CCS C Discussion   Posted: Thu Mar 09, 2006 4:12 am   Subject: Constant array problem
Compiler version is PCH 3.245

Sorry if you feel I've moved the goalposts. I did not know where they were when I started this thread!

Bill
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group