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: #DEVICE ANSI and program memory variables
esko

Replies: 3
Views: 9417

PostForum: General CCS C Discussion   Posted: Tue Nov 29, 2016 5:34 pm   Subject: #DEVICE ANSI and program memory variables
Thanks for Your valuable time. It was well spent !

Added the 'I' to the pragma.

I am aware of the highest bit Smile

Actually I have been coding with C so long .... practically as long as there h ...
  Topic: Reading program memory using inline assembler
esko

Replies: 7
Views: 13587

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 11:04 pm   Subject: Reading program memory using inline assembler
If I press ALT-CTL-F4 I get a new terminal.... out of 7 predefined.

This is a real Old School developing environment - no GUI - just the terminal Smile

Sorry about that.

As I said - I have to do ...
  Topic: Reading program memory using inline assembler
esko

Replies: 7
Views: 13587

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 6:23 pm   Subject: Reading program memory using inline assembler
Actually ..... You are missing nothing Smile I quess I have to go back to elementary school and learn how to read Smile

There is one glitch though. This one returns a word (not a byte) and probably also ...
  Topic: Reading program memory using inline assembler
esko

Replies: 7
Views: 13587

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 6:00 pm   Subject: Reading program memory using inline assembler
Yes - it IS a VERY obvious question. And it does nothing to help me Smile

I have already tried out the ONLY fucntion I could find for this purpose:

_bif void goto_address(__ADDRESS__ address ...
  Topic: #DEVICE ANSI and program memory variables
esko

Replies: 3
Views: 9417

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 5:49 pm   Subject: #DEVICE ANSI and program memory variables
I had to go over to ANSI mode with my CCS (PCH) compiler. This was because the default compiler uses case insensitive approach on object names.

After enabling the ANSI compiler I noticed that the & ...
  Topic: Pushing the limits of my PCH compiler
esko

Replies: 4
Views: 10060

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 5:08 pm   Subject: Pushing the limits of my PCH compiler
AFter some investigation the easiest way to get around this is NOT using #include directives but the #import directives.

It appeared that using the include method makes all local symbols visible af ...
  Topic: Reading program memory using inline assembler
esko

Replies: 7
Views: 13587

PostForum: General CCS C Discussion   Posted: Sun Nov 27, 2016 5:00 pm   Subject: Reading program memory using inline assembler
The MCU is PIC18F25K22

I have some tables in my code and those tables are in program memory.
For example the default settings for the application and the LCD initialization instructions and GUI st ...
  Topic: Pointer to function in a structure
esko

Replies: 5
Views: 12733

PostForum: General CCS C Discussion   Posted: Tue Nov 22, 2016 7:16 am   Subject: Pointer to function in a structure
Did some investigation on this because that code has been working for more than 5 years in a real life production device ... both AVR and PIC devices.

So I changed the code as suggested:

(*c ...
  Topic: Pointer to function in a structure
esko

Replies: 5
Views: 12733

PostForum: General CCS C Discussion   Posted: Tue Nov 22, 2016 12:15 am   Subject: Pointer to function in a structure
I got a workaround for this which I assume is a compiler bug.

Code that does not compile:
// -----------------------------------------------------------------------
// StateRun.c
// ------------ ...
  Topic: Pointer to function in a structure
esko

Replies: 5
Views: 12733

PostForum: General CCS C Discussion   Posted: Mon Nov 21, 2016 11:35 pm   Subject: Pointer to function in a structure
I have a declaration like this:

// -----------------------------------------------------------------------
// Callback function pointer
// -------------------------------------------------------- ...
  Topic: Pushing the limits of my PCH compiler
esko

Replies: 4
Views: 10060

PostForum: General CCS C Discussion   Posted: Mon Nov 21, 2016 2:45 am   Subject: Pushing the limits of my PCH compiler
Well - I understand that this compiler is not a "conventional" preprocess->compile->link thing.

Actually it is not that hard to create a source file that includes everything needed. ...
  Topic: Pushing the limits of my PCH compiler
esko

Replies: 4
Views: 10060

PostForum: General CCS C Discussion   Posted: Sun Nov 20, 2016 10:27 pm   Subject: Pushing the limits of my PCH compiler
*** Error 44 "ADM_build.c" Line 129(222,228): Internal Error - Contact CCS Too many IDs
1 Errors, 0 Warnings.
Build Failed.

This is a rather large project with many small module ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group