Author |
Message |
Topic: #DEVICE ANSI and program memory variables |
esko
Replies: 3
Views: 9417
|
Forum: 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
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
|
Forum: 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
Sorry about that.
As I said - I have to do ... |
Topic: Reading program memory using inline assembler |
esko
Replies: 7
Views: 13587
|
Forum: General CCS C Discussion Posted: Sun Nov 27, 2016 6:23 pm Subject: Reading program memory using inline assembler |
Actually ..... You are missing nothing I quess I have to go back to elementary school and learn how to read
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
|
Forum: 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
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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|