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 support@ccsinfo.com

compiling problem with pic18f45k20

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

compiling problem with pic18f45k20
PostPosted: Sun Aug 12, 2012 4:14 pm     Reply with quote

I try to compile a simple code with pic18f45k20 and i get the following error message :
Selected part does not have ICD debug capability


How to fix this error?
temtronic



Joined: 01 Jul 2010
Posts: 9164
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 12, 2012 4:58 pm     Reply with quote

According to Microchip's page 3 of the datasheet it does have ICD capablity, so perhaps you're not enabling it in your code ??

While I'm using the 18F46K22..similar part, I never use the ICD.

We'd need to see your code to understand why you can't access the ICD under MPLAb.

hth
jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 12, 2012 5:30 pm     Reply with quote

Quote:
I try to compile a simple code with pic18f45k20 and i get the following error message :
Selected part does not have ICD debug capability.

You're using an older version of the CCS compiler, and it gives that error.
Just upgrade your compiler. Or, don't attempt to use the ICD as a
debugger with that PIC. Just use the ICD as a programmer.
Delete this line and you won't get that error message:
Code:
#device ICD=TRUE
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

compiling problem with pic18f45k20
PostPosted: Mon Aug 13, 2012 7:27 am     Reply with quote

I used the following code:
Code:

#include<18F45k20.h>
#use delay(clock=64000000)   

void main(){

while(1)
{
output_high(PIN_D0);   
}
}
Ttelmah



Joined: 11 Mar 2010
Posts: 19347

View user's profile Send private message

PostPosted: Mon Aug 13, 2012 8:29 am     Reply with quote

Isn't this the old 'MPLAB compiling for debug by default, even if not asked to', combined with an old compiler that doesn't support this.

Right click on the mcp file, in the project window
Build options
CCS C compiler
Make sure the tick box 'Compile for use with ICD debugger', is turned off

Best Wishes
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

compiling problem with pic18f45k20
PostPosted: Mon Aug 13, 2012 1:10 pm     Reply with quote

I tried the steps that you told me but i can not find anything for ICD.
temtronic



Joined: 01 Jul 2010
Posts: 9164
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Aug 13, 2012 1:46 pm     Reply with quote

In MPLAB...

Under the 'Project' pull down window...look for

'Build Configuration'..

Set to 'Release' NOT 'Debug'.

If you have an older version of MPLAB you can 'preset' MPLAB to always have 'release' mode NOT debug. I had to do that for v8.63....since then I've upgraded to v8.86 and it 'carries forward' MY configuration fine.

hth
jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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