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 2333 matches
CCS Forum Index
Author Message
  Topic: ANSI C Compliance Bug in Static&Global Var Initializatio
FvM

Replies: 7
Views: 13477

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2015 3:24 am   Subject: ANSI C Compliance Bug in Static&Global Var Initializatio
I do NOT trust so called 'standards'

If you can't rely on a C compiler's basic compliance with the C standard, you are lost. CCS C does generally comply with the ANSI C standard, but there are a fe ...
  Topic: 24F16KA102 and RTCC - used DS3231 instead.
FvM

Replies: 8
Views: 11502

PostForum: General CCS C Discussion   Posted: Sat May 17, 2014 3:19 pm   Subject: 24F16KA102 and RTCC - used DS3231 instead.
Of course there can be other than software related problems. But not reading back the written RTC values refers to software issue.

As a workaround for the said built-in function bug, you can set RT ...
  Topic: 24F16KA102 and RTCC - used DS3231 instead.
FvM

Replies: 8
Views: 11502

PostForum: General CCS C Discussion   Posted: Sat May 17, 2014 12:21 pm   Subject: 24F16KA102 and RTCC - used DS3231 instead.
The generated code of V4.135 is
.................... setup_rtc(RTC_ENABLE | RTC_OUTPUT_SECONDS, 0x00);
044A: MOV #0,W1
044C: MOV #55,W2
044E: MOV W2,[W1 ...
  Topic: 24F16KA102 and RTCC - used DS3231 instead.
FvM

Replies: 8
Views: 11502

PostForum: General CCS C Discussion   Posted: Fri May 16, 2014 1:32 am   Subject: 24F16KA102 and RTCC - used DS3231 instead.
Built-in rtcc functions of V4.135 are apparently faulty. At least the unlock function in setup_rtc() and rtc_write() uses a wrong NVMKEY address.

Manual unlock before calling the functions might w ...
  Topic: sizeof() returning strange result
FvM

Replies: 9
Views: 12671

PostForum: General CCS C Discussion   Posted: Sat Apr 19, 2014 5:11 am   Subject: sizeof() returning strange result
It's all about understanding C language and how a C compiler works.

Due to fact that the size of the referenced memory can't be derived from a pointer, you have string functions
with an addition ...
  Topic: Modbus RTU mode on faster PICs
FvM

Replies: 2
Views: 6035

PostForum: General CCS C Discussion   Posted: Sat Feb 01, 2014 3:28 am   Subject: Modbus RTU mode on faster PICs
And, for the record, supporting different baud rates on the same modbus is a crazy thing to do.
And surely beyond the scope of the specification.

Regarding the problem in the original post, I unde ...
  Topic: Help with MODBUS and 485
FvM

Replies: 7
Views: 8693

PostForum: General CCS C Discussion   Posted: Tue Jan 07, 2014 10:02 am   Subject: Help with MODBUS and 485
Missing pull-up/-down resistors on RS485?
  Topic: Problem between function pointers and [alleged] recursion.
FvM

Replies: 4
Views: 11520

PostForum: General CCS C Discussion   Posted: Thu Dec 26, 2013 9:59 am   Subject: Problem between function pointers and [alleged] recursion.
The problem behind "recursion not allowed" is that CCS C allocates storage for local variables and function
arguments globally, analyzing the call tree to avoid memory conflicts.

Functi ...
  Topic: TBE2 interrupt (UART2) causing address error exception
FvM

Replies: 12
Views: 14434

PostForum: General CCS C Discussion   Posted: Fri Nov 15, 2013 3:00 pm   Subject: TBE2 interrupt (UART2) causing address error exception
1. I'm convinced that address errors can be traced down to the primary cause, at least if they occur repeatedly.

As Ttelmah mentioned, it might be a silicon bug.

2. I think, the guesses about a ...
  Topic: A strange problem with a float
FvM

Replies: 11
Views: 13919

PostForum: General CCS C Discussion   Posted: Fri Nov 15, 2013 2:54 pm   Subject: A strange problem with a float
Often decimal fixed point numbers with one or two fractional digits are a solution, particularly if they fit a 16 bit variable.

Otherwise rounding and respective format control with float numbers.
  Topic: memcpy want to copy some value
FvM

Replies: 5
Views: 7826

PostForum: General CCS C Discussion   Posted: Tue Nov 05, 2013 5:57 am   Subject: memcpy want to copy some value
total confusion!

- fgetc() result is char not pointer type
- Receivednot printing new[10] or new[0]

Suggestion: Learn quite a bit about C data types, characters, strings, pointers and string fu ...
  Topic: PIC24F, Interrupts on RB4 and RB5
FvM

Replies: 3
Views: 6505

PostForum: General CCS C Discussion   Posted: Sun Oct 27, 2013 9:17 am   Subject: PIC24F, Interrupts on RB4 and RB5
There's a better way by progamming two input capture modules to use the respective pins, provided
you have it still available in your application.
  Topic: PIC24F USB Host
FvM

Replies: 9
Views: 21149

PostForum: General CCS C Discussion   Posted: Sat Oct 26, 2013 2:45 am   Subject: PIC24F USB Host
Firstly I feel tempted to remember that according to previous forum posts, CCS promised to customers
three years ago, that a PIC24 OTG stack would be soon available.

Secondly, if you are working ...
  Topic: Accessing only 1 byte of a SRF
FvM

Replies: 5
Views: 8035

PostForum: General CCS C Discussion   Posted: Fri Oct 11, 2013 6:18 am   Subject: Accessing only 1 byte of a SRF
To avoid any overhead, define #BYTE registers

#byte __P1DTCON1L = getenv("SFR:P1DTCON1")
#byte __P1DTCON1H = getenv("SFR:P1DTCON1")+1
  Topic: [Solved] Since when does "sprintf" disable interru
FvM

Replies: 12
Views: 17263

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2013 2:33 am   Subject: [Solved] Since when does "sprintf" disable interru
Specifying #device ccs4 does not change the behaviour.
 
Page 1 of 156 Goto page 1, 2, 3 ... 154, 155, 156  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group