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

Problem!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

Problem!
PostPosted: Tue Apr 17, 2007 8:43 am     Reply with quote

Hi!

I'm using CCS C compiler only for a short time. I got problem with compiling, i got error unknovn device type. But few days ago i compiled the same source code without any problems. I'm using PIC 16F767.

Can you help me? Sorry about my english, i'm not from UK or USA.

Thanks.
elphi



Joined: 17 Apr 2007
Posts: 20
Location: tijuana,bajacalifornia,mexico

View user's profile Send private message MSN Messenger

Re: Problem!
PostPosted: Tue Apr 17, 2007 9:24 am     Reply with quote

taubek wrote:
Hi!

I'm using CCS C compiler only for a short time. I got problem with compiling, i got error unknovn device type. But few days ago i compiled the same source code without any problems. I'm using PIC 16F767.

Can you help me? Sorry about my english, i'm not from UK or USA.

Thanks.


1. - Can you post the code?
2.- Witch version of CCS c are you using.
3.- Witch is your native language.(I'm not form uk or usa neither)
_________________
Every little thing gonna be alright
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

Re: Problem!
PostPosted: Tue Apr 17, 2007 12:23 pm     Reply with quote

elphi wrote:


1. - Can you post the code?
2.- Witch version of CCS c are you using.
3.- Witch is your native language.(I'm not form uk or usa neither)




#include <16F737.h>

#fuses INTRC,NOWDT,NOPROTECT,NOMCLR,NOPUT
#use delay(clock=4000000);

#define RA0 PIN_A0
#define RA1 PIN_A1
#define RA2 PIN_A2
#define RA3 PIN_A3

.....

the code is ok, i have to set some settings or something, i have programmed the same program on the same type of PIC a week ago.

I thing i should set something there where i can choose 12 bit Microchip, 14 bit Microchip and Microchip PIC18.

I tried version IDE 3.40 from year 2003 and the newest demo program from ccs web page.

My native language is Slovene.
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 12:38 pm     Reply with quote

I tried many options till now and i found out that i can compile PIC 16F877A without problems on Microchip 14bit options.

Code for that 16F877A chip start like that:

#include <16F877A.h>

#fuses HS, NOWDT,NOPROTECT, NOLVP
#use delay(clock=20000000)


#define ...
.....


code for PIC 16F767 or 12F765 still cannot be compiled but it works for 16F648A
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 1:09 pm     Reply with quote

Quote:
IDE 3.40

That's not the compiler version. You can find the compiler version
at the top of the .LST file for your project. The .LST file will be in
the project directory, after you have successfully compiled your
source files.

Look for 4-digit number, such as 2.734, or 3.191, or 3.249, etc.
That's the compiler version.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 3:17 pm     Reply with quote

Quote:
I tried many options till now and i found out that i can compile PIC 16F877A without problems on Microchip 14bit options.
Sounds like you are using the free compiler demo version which is limited to the Microchip 14 bit PIC16F877(A), PIC16C544 and 16 bit PIC18F458 target devices.
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 12:49 am     Reply with quote

ckielstra wrote:
Quote:
I tried many options till now and i found out that i can compile PIC 16F877A without problems on Microchip 14bit options.
Sounds like you are using the free compiler demo version which is limited to the Microchip 14 bit PIC16F877(A), PIC16C544 and 16 bit PIC18F458 target devices.


It works for PIC 16F648A too.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 2:17 am     Reply with quote

taubek wrote:
It works for PIC 16F648A too.
Than it most likely isn't a demo version of the compiler.
You didn't answer PCM's question about the compiler version, check his post here above for how to find the compiler version number.
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 5:57 am     Reply with quote

I think is 3.180
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 6:06 am     Reply with quote

can somebody tell me what means PCm, PCH and PCB? which should i use? I have licence files with this names. Is that a trouble?
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 6:26 am     Reply with quote

ammm, i think i found a problem. I copyed some device files into a map "devices" but when i try to start new project at PIC wizard there are those added devices not listed.

How to add those? I think that would be solution.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 6:54 am     Reply with quote

taubek wrote:
can somebody tell me what means PCm, PCH and PCB?
These are names for the different compilers:
PCB = PIC10 and PIC12 (12 bit)
PCM = PIC16 (14 bit)
PCH = PIC18 (16 bit)

Quote:
ammm, i think i found a problem. I copyed some device files into a map "devices" but when i try to start new project at PIC wizard there are those added devices not listed.

How to add those? I think that would be solution.
Hmmmm..... Did you tell us everything we should know? You told us you didn't change a thing when suddenly compiling for the PIC16F767 failed.

Now I get the feeling that you are trying to compile for a completely different processor you didn't mention before. Which processors can you compile for and which one does fail?
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 7:22 am     Reply with quote

ckielstra wrote:
taubek wrote:
can somebody tell me what means PCm, PCH and PCB?
These are names for the different compilers:
PCB = PIC10 and PIC12 (12 bit)
PCM = PIC16 (14 bit)
PCH = PIC18 (16 bit)

Quote:
ammm, i think i found a problem. I copyed some device files into a map "devices" but when i try to start new project at PIC wizard there are those added devices not listed.

How to add those? I think that would be solution.
Hmmmm..... Did you tell us everything we should know? You told us you didn't change a thing when suddenly compiling for the PIC16F767 failed.

Now I get the feeling that you are trying to compile for a completely different processor you didn't mention before. Which processors can you compile for and which one does fail?


I'm trying to compile for PIC 16F767 and that failed (Unknown file type).
I have that file in map devices but when i try to make new project i cannot select PIC 16F767 because it is not on the list and i dont know how to add it. I think that's a problem.
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Wed Apr 18, 2007 7:42 am     Reply with quote

And you have contacted CCS support directly, given them your customer number and asked for help with your errant compiler installation, right?

Or are you trying to use a "borrowed" copy of the compiler (a no-no).
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
taubek



Joined: 17 Apr 2007
Posts: 17

View user's profile Send private message

PostPosted: Wed Apr 18, 2007 11:27 am     Reply with quote

rwyoung wrote:
And you have contacted CCS support directly, given them your customer number and asked for help with your errant compiler installation, right?

Or are you trying to use a "borrowed" copy of the compiler (a no-no).


no i didnt ask there, i tought i can get some information here.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group