Author |
Message |
Topic: ccsload for linux fails on Ubuntu 20.04 LTS w/ICD-U80 |
equack
Replies: 2
Views: 7629
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2023 7:34 pm Subject: ccsload for linux fails on Ubuntu 20.04 LTS w/ICD-U80 |
Follow up: I get the same error message when I use an ICD-U64. |
Topic: ccsload for linux fails on Ubuntu 20.04 LTS w/ICD-U80 |
equack
Replies: 2
Views: 7629
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2023 7:29 pm Subject: ccsload for linux fails on Ubuntu 20.04 LTS w/ICD-U80 |
I have installed ccsload for linux according to the posted instructions.
I can see the programmer (ICD-U80) on ttyUSB0, but when I try to test it I get this:
equack@OSPREY-U:~$ ccsloader port=COM1 ... |
Topic: #include file for PIC18F27J53? |
equack
Replies: 1
Views: 3879
|
Forum: General CCS C Discussion Posted: Wed Oct 13, 2010 1:07 pm Subject: #include file for PIC18F27J53? |
Has anyone created an include file for the new PIC18F27J53? I have sample chips but CCS has not added support yet (as of version 4.112).
I tinkered with the CCS "device table editor". I c ... |
Topic: incorrectly constructed label |
equack
Replies: 6
Views: 9372
|
Forum: General CCS C Discussion Posted: Wed Oct 06, 2010 12:54 pm Subject: incorrectly constructed label |
Thank you PCM. This worked:
typedef void (*_fptr)(void);
const _fptr fptr[4] = {EndCMD,PrintCMD,InputCMD,NewCMD};
void ListFour(void)
{
i ... |
Topic: incorrectly constructed label |
equack
Replies: 6
Views: 9372
|
Forum: General CCS C Discussion Posted: Tue Oct 05, 2010 7:19 pm Subject: incorrectly constructed label |
OK, it turns out that your suggestion solves the performance problem by creating a jump table but it still wastes an awful lot of ROM because it creates a call stub for each case instead of having the ... |
Topic: incorrectly constructed label |
equack
Replies: 6
Views: 9372
|
Forum: General CCS C Discussion Posted: Mon Oct 04, 2010 11:22 am Subject: incorrectly constructed label |
No, I did not realize that. Too bad it's not documented but it's good news! I'll have to get rid of my default case.
Thank you for the tip. |
Topic: incorrectly constructed label |
equack
Replies: 6
Views: 9372
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 8:09 pm Subject: incorrectly constructed label |
I have also tried:
void CallMe(void)
{
#asm
fakelabel:
NOP
#endasm
// code goes here
}
void CallAddress(void)
{
#asm
CALL fakelabel
#endas ... |
Topic: incorrectly constructed label |
equack
Replies: 6
Views: 9372
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 8:01 pm Subject: incorrectly constructed label |
Is there any way to get the address of a function? label_address() and various #asm constructions all fail me with the error "incorrectly constructed label".
I am trying to create a vecto ... |
Topic: Writing equivalent of MPASM $+1 in inline assembly |
equack
Replies: 15
Views: 16731
|
Forum: General CCS C Discussion Posted: Mon Sep 27, 2010 7:28 pm Subject: Writing equivalent of MPASM $+1 in inline assembly |
WHAT? The compiler optimizes my inline assembly code by default?
That's terrible. Inline assembly is for getting the PIC to do _exactly_ what you want. <sigh> |
Topic: use special function registers by name? |
equack
Replies: 1
Views: 3290
|
Forum: General CCS C Discussion Posted: Thu Sep 09, 2010 1:40 pm Subject: use special function registers by name? |
OK, right now I have a series of these:
#ifdef PIC18F25K11
#byte TXREG=0xFAE
#byte RCREG=0xFAF
#else
#byte TXREG=0xFAD
#byte RCREG=0xFAE
#endif
I want do to something like this:
... |
Topic: automatic typecasting is broken |
equack
Replies: 2
Views: 3344
|
Forum: General CCS C Discussion Posted: Tue Sep 07, 2010 2:15 pm Subject: automatic typecasting is broken |
Automatic typecasting is broken in version 4.112 (PIC18)
The following code gives the wrong value:
long scandex;
int thiskey;
scandex=thiskey*3;
To get the correct result you must do ... |
Topic: 80 column video display on your HDTV (480i) |
equack
Replies: 0
Views: 28149
|
Forum: Code Library Posted: Sun Sep 05, 2010 4:53 pm Subject: 80 column video display on your HDTV (480i) |
You can get an 80x25 character video display out of a PIC18F26K20. All you need is a suitable crystal and two resistors.
Minimal hardware setup:
1. Run the PIC at 3.3 volts.
2. Use a 14.31818 mHz ... |
Topic: USB CDC Not working? |
equack
Replies: 5
Views: 5503
|
Forum: General CCS C Discussion Posted: Wed Sep 01, 2010 2:20 pm Subject: USB CDC Not working? |
Try adding setting the specific CPUDIV and PLL fuses that you need instead of relying on the compiler defaults which may have changed between versions.
Example: My code used to work like this:
... |
Topic: old code broken in new compiler version: PIC18F2550 CPUDIV1 |
equack
Replies: 2
Views: 4771
|
Forum: General CCS C Discussion Posted: Wed Sep 01, 2010 1:14 pm Subject: old code broken in new compiler version: PIC18F2550 CPUDIV1 |
Just a heads up:
I discovered the hard way that the old version of the compiler (4.095) defaulted to fuse "CPUDIV1".
The new version of the compiler (4.111) does not.
If you don ... |
Topic: symbol map menu item ghosted? |
equack
Replies: 6
Views: 5771
|
Forum: General CCS C Discussion Posted: Sun Aug 29, 2010 10:50 am Subject: symbol map menu item ghosted? |
In my IDE (version 4.111) the "View->Symbol Map" menu item used to work fine but now it is ghosted. I can still view the symbol map by manually loading the ".sym" file into the ... |
|