| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Guest 
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| MPLAB/CCS |  
				|  Posted: Fri May 30, 2008 4:07 am |   |  
				| 
 |  
				| I am trying to run CCS version 4.071 from within MPLAB 8.00. 
 When I try to build I get an error saying CCS compiler not installed on this machine.
 
 CCS is installed and works fine.
 
 Any ideas?
 
 Best regards,
 |  | 
	
		|  | 
	
		| CCS 
 
 
 Joined: 31 Oct 2005
 Posts: 8
 
 
 
			      
 
 |  | 
	
		|  | 
	
		| Guest 
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| MPLAB/CCS |  
				|  Posted: Fri May 30, 2008 12:00 pm |   |  
				| 
 |  
				| Thanks for the reply, but I have done what you suggest. |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 |  | 
	
		|  | 
	
		| Guest 
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| MPLAB/CCS |  
				|  Posted: Fri May 30, 2008 1:30 pm |   |  
				| 
 |  
				| Looking in Help, About I have CCS PCWH version 4.071. 
 In 'project', 'select language toolsuit' I have  C:\Program Files\PICC\Pcw.exe.
 
 Regards
 |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 |  | 
	
		|  | 
	
		| Guest 
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| Error : " Unknown device type    -- Try PCH" |  
				|  Posted: Tue Sep 16, 2008 9:17 pm |   |  
				| 
 |  
				| I am trying to run CCS version 4.038 from within MPLAB 7.50 When I compile code for pic18F2450, appear error: "Unknown device type    -- Try PCH"
 
 Then I replace code for pic18f452,  appear error: "Unknown device type    -- Try PCH" too.
 
 Can you say to me about this problem!
 
  	  | Code: |  	  | #include <18F2450.h>
 #fuses HS,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
 #use delay(clock=20000000)
 //=================================
 void main()
 {
 set_tris_b(0);
 while(1)
 {
 output_low(PIN_B1);
 delay_ms(1000);
 output_high(PIN_B1);
 delay_ms(1000);
 }
 }
 
 | 
 |  | 
	
		|  | 
	
		| ckielstra 
 
 
 Joined: 18 Mar 2004
 Posts: 3680
 Location: The Netherlands
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Wed Sep 17, 2008 5:28 pm |   |  
				| 
 |  
				| From the error message it looks like you are using the wrong compiler version. 
 The CCS compiler comes in different flavours for the different PIC families:
 PCB for PIC12
 PCM for PIC16
 PCH for PIC18
 PCD for PIC24 and dsPic
 These are all command line tools. The Windows versions have similar names but with the character W added. For a complete overview see: http://www.ccsinfo.com/content.php?page=ideoverview
 
 If you do have the correct compiler version then your mistake was you forgot to tell MPLAB which processor you are using: in MPLAB select 'Configure / Select device ... '  and select here your processor type.
 |  | 
	
		|  | 
	
		| quocloc.pham 
 
 
 Joined: 16 Sep 2008
 Posts: 6
 Location: Vietnam
 
 
			      
 
 | 
			
				| Re: Error : " Unknown device type -- Try PCH" |  
				|  Posted: Wed Sep 17, 2008 7:53 pm |   |  
				| 
 |  
				|  	  | ckielstra wrote: |  	  | From the error message it looks like you are using the wrong compiler version. 
 The CCS compiler comes in different flavours for the different PIC families:
 PCB for PIC12
 PCM for PIC16
 PCH for PIC18
 PCD for PIC24 and dsPic
 These are all command line tools. The Windows versions have similar names but with the character W added. For a complete overview see: http://www.ccsinfo.com/content.php?page=ideoverview
 
 If you do have the correct compiler version then your mistake was you forgot to tell MPLAB which processor you are using: in MPLAB select 'Configure / Select device ... '  and select here your processor type.
 | 
 
 I don't think so that! because I use CCS PCH compiler (ccsc v4.038)
 and I don't forget tell MPLAB which processor I using.
 
  	  | Code: |  	  | #include <18F2450.h> | 
 |  | 
	
		|  | 
	
		| quocloc.pham 
 
 
 Joined: 16 Sep 2008
 Posts: 6
 Location: Vietnam
 
 
			      
 
 | 
			
				| No error " Unknown device type -- Try PCH" |  
				|  Posted: Wed Sep 17, 2008 9:42 pm |   |  
				| 
 |  
				|  	  | ckielstra wrote: |  	  | From the error message it looks like you are using the wrong compiler version. 
 The CCS compiler comes in different flavours for the different PIC families:
 PCB for PIC12
 PCM for PIC16
 PCH for PIC18
 PCD for PIC24 and dsPic
 These are all command line tools. The Windows versions have similar names but with the character W added. For a complete overview see: http://www.ccsinfo.com/content.php?page=ideoverview
 
 If you do have the correct compiler version then your mistake was you forgot to tell MPLAB which processor you are using: in MPLAB select 'Configure / Select device ... '  and select here your processor type.
 | 
 I was configure the same you said, the compiler had already done!
 
 Thanks a lot!!
 |  | 
	
		|  | 
	
		|  |