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 12 matches
CCS Forum Index
Author Message
  Topic: CCS support for PKoB4?
ncdoody

Replies: 3
Views: 6509

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2023 12:26 pm   Subject: CCS support for PKoB4?
Still trying to use the PKoB4.
Regarding the LVP, do you mean I need to just set the LVP fuse in the code where I set other fuses?
Had also seen something about using #device icd=true
Do I need t ...
  Topic: CCS support for PKoB4?
ncdoody

Replies: 3
Views: 6509

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2023 11:50 am   Subject: CCS support for PKoB4?
I've been using a Curiosity High Pin Count dev. board (PKoB4) with MPLAB X, but wondered if anyone is successful using it with CCS C IDE? Pointers on getting started?
Thanks.
  Topic: #reserve warning/error difference between compiler versions
ncdoody

Replies: 5
Views: 8118

PostForum: General CCS C Discussion   Posted: Fri Oct 06, 2023 2:31 pm   Subject: #reserve warning/error difference between compiler versions
So, it seems to me that 0x080h to 0x0FF is in the GPR range of Bank 0 whereas 0xF80 to 0xFFF are in bank 15, i.e. the SFR. From the data sheet "The Access Bank is comprised of the upper 128 byte ...
  Topic: #reserve warning/error difference between compiler versions
ncdoody

Replies: 5
Views: 8118

PostForum: General CCS C Discussion   Posted: Fri Oct 06, 2023 9:35 am   Subject: #reserve warning/error difference between compiler versions
Apologies, it's legacy code that I'm still trying to understand myself. It's running on a 18C252.

From what I understand so far, they were reserving a ram location for rx/tx buffers. They were us ...
  Topic: #reserve warning/error difference between compiler versions
ncdoody

Replies: 5
Views: 8118

PostForum: General CCS C Discussion   Posted: Thu Oct 05, 2023 5:14 pm   Subject: #reserve warning/error difference between compiler versions
Updated from 5.075 to 5.115 and what used to be a warning is now an error, i.e. on the line

#RESERVE 0x0C0, 0x0C1, ...

I get:
>>> Warning 228 "C:\Users\...\def_file.h" Line 1 ...
  Topic: pointers to constants in function parameters
ncdoody

Replies: 6
Views: 8802

PostForum: General CCS C Discussion   Posted: Mon Sep 25, 2023 12:39 pm   Subject: pointers to constants in function parameters
How do rom pointers relate to the passing of string literals, constants, and PASS_STRINGS?

i.e. something like...
void some_function(rom char* string) {}
and the call...
some_function( (rom ch ...
  Topic: pointers to constants in function parameters
ncdoody

Replies: 6
Views: 8802

PostForum: General CCS C Discussion   Posted: Mon Sep 25, 2023 5:18 am   Subject: pointers to constants in function parameters
So, would I use PASS_STRINGS as a global setting, e.g. at the beginning of main, or should it be used in a more narrow scope?
  Topic: pointers to constants in function parameters
ncdoody

Replies: 6
Views: 8802

PostForum: General CCS C Discussion   Posted: Sun Sep 24, 2023 6:27 pm   Subject: pointers to constants in function parameters
Have seen some of the old posts regarding:
#device ANSI
#device PASS_STRINGS=IN_RAM
but not sure if that is the solution.
  Topic: pointers to constants in function parameters
ncdoody

Replies: 6
Views: 8802

PostForum: General CCS C Discussion   Posted: Sun Sep 24, 2023 3:33 pm   Subject: pointers to constants in function parameters
Compiler version 5.115, PIC18F46K22
Having the hardest time understanding how to pass string literal constants to functions in CCS C compiler.
Originally had a function like this:
FUNCT(const ch ...
  Topic: Using CCS in MPLAB
ncdoody

Replies: 8
Views: 16731

PostForum: General CCS C Discussion   Posted: Wed May 31, 2023 10:16 am   Subject: Using CCS in MPLAB
Hmm, idk.

I get the same compile error no matter whether a second c file is in projectName\Source Files or projectName\Header Files
  Topic: Using CCS in MPLAB
ncdoody

Replies: 8
Views: 16731

PostForum: General CCS C Discussion   Posted: Wed May 31, 2023 8:53 am   Subject: Using CCS in MPLAB
Apologies, I'm trying to use MPLAB X. v6.05

@Ttelmah I think I follow what you're saying up until...
"Instead drag them into the Header Files tab. This then tells MPLAB, not to try to directl ...
  Topic: Using CCS in MPLAB
ncdoody

Replies: 8
Views: 16731

PostForum: General CCS C Discussion   Posted: Tue May 30, 2023 2:49 pm   Subject: Using CCS in MPLAB
Looking into the possibility of using CCS within MPLAB. I understand CCS compiler users typically just #include extra C files as is the case with the legacy code that I'm using. In trying this code ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group