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

MPLAB 6.30 - ICD2 - CCS 1.667

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Aryldo G Russo Jr
Guest







MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 10, 2003 9:33 am     Reply with quote

Hi all,

I'm getting the following error:

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC18F248 found, revision = 0x4
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Resetting Target
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0x3DBF)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming RSBUG
...Programming Configuration Bits
Verifying...
...Program Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
...Programming Configuration Bits
.. Config Memory
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready

I can not put my processor in debug mode (I'm using a PIC18F248).

I have checked the power supply, and the other things in help file but it's still not working.

I tried a dumb ASM program, and worked OK. does anyone know anything about it?

Thanks

Aryldo
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515847
john cutler



Joined: 06 Sep 2003
Posts: 82
Location: Hot Tub, California

View user's profile Send private message

Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 10, 2003 10:38 am     Reply with quote

<font face="Courier New" size=-1>Look in MPLAB under "build options" in the Program menu, and you'll go to project. There under the compiler options" there's a checkbox for "compile for use with ICD" check it! and recompile.

You can also add DEBUG to your list in the #fuses statement in your C code</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515851
Aryldo G Russo Jr
Guest







Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 10, 2003 11:15 am     Reply with quote

Hi,

I have already done it but still didn't work. I tried to create a dumb program in C, like

#include <18F248.h>

main()
{

}

and didn't work as well

thanks
Aryldo
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515852
sar



Joined: 08 Sep 2003
Posts: 36

View user's profile Send private message

Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 10, 2003 11:58 am     Reply with quote

Check in Pcw IDE under Options > file formats > Debug file and make sure you check the appropriate option. In Mplab same thing make sure in; Projects > Build options > Project > Ccs C Compiler > debug you have the correct option checked.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515854
John Yaron
Guest







Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 10, 2003 10:57 pm     Reply with quote

:=Hi all,
:=
:=I'm getting the following error:
:=
:=Connecting to MPLAB ICD 2
:=...Connected
:=Setting Vdd source to MPLAB ICD 2
:=Target Device PIC18F248 found, revision = 0x4
:=...Reading ICD Product ID
:=Running ICD Self Test
:=...Passed
:=MPLAB ICD 2 Ready
:=Resetting Target
:=MPLAB ICD 2 Ready
:=Programming Target...
:=...Erasing Part
:=...Programming Program Memory (0x0 - 0x3DBF)
:=...Loading DebugExecutive
:=...Programming DebugExecutive
:=...Programming Debug Vector
:=...Programming RSBUG
:=...Programming Configuration Bits
:=Verifying...
:=...Program Memory
:=...Debug Executive
:=...Debug Vector
:=...Verify Succeeded
:=...Programming Configuration Bits
:=.. Config Memory
:=ICD0083: Target not in debug mode, unable to perform operation
:=MPLAB ICD 2 Ready
:=
:=I can not put my processor in debug mode (I'm using a PIC18F248).
:=
:=I have checked the power supply, and the other things in help file but it's still not working.
:=
:=I tried a dumb ASM program, and worked OK. does anyone know anything about it?
:=
:=Thanks
:=
:=Aryldo

I've got an ICD2 sitting on my lab bench that
won't reset to address 0. You shouldn't throw
out the possibility of having a bad unit.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515860
Peter Laing
Guest







Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 17, 2003 5:48 pm     Reply with quote

:=Hi all,
:=
:=I'm getting the following error:
:=
:=Connecting to MPLAB ICD 2
:=...Connected
:=Setting Vdd source to MPLAB ICD 2
:=Target Device PIC18F248 found, revision = 0x4
:=...Reading ICD Product ID
:=Running ICD Self Test
:=...Passed
:=MPLAB ICD 2 Ready
:=Resetting Target
:=MPLAB ICD 2 Ready
:=Programming Target...
:=...Erasing Part
:=...Programming Program Memory (0x0 - 0x3DBF)
:=...Loading DebugExecutive
:=...Programming DebugExecutive
:=...Programming Debug Vector
:=...Programming RSBUG
:=...Programming Configuration Bits
:=Verifying...
:=...Program Memory
:=...Debug Executive
:=...Debug Vector
:=...Verify Succeeded
:=...Programming Configuration Bits
:=.. Config Memory
:=ICD0083: Target not in debug mode, unable to perform operation
:=MPLAB ICD 2 Ready
:=
:=I can not put my processor in debug mode (I'm using a PIC18F248).
:=
:=I have checked the power supply, and the other things in help file but it's still not working.
:=
:=I tried a dumb ASM program, and worked OK. does anyone know anything about it?
:=
:=Thanks
:=
:=Aryldo

You are not alone...
I have been experiencing the same problem with MPLAB 6.30-ICD2-CCS PCM 3.169, 20Mhz 16F877.
ICD2 will program OK. Debugging is the problem.
I suspect it to be hardware related.
-On a 4Mhz RC osc ICD demo board it works, debugging either both a simple C and Assembler programs.
-On my target 20mhz board, debugging would not work at all, kept getting the message ICD0083: Target not in debug mode, unable to perform operation.
-Changed the 20mhz xtal to 4mhz. It looks like it's going to work... no error mnessages... but debug still not right. Will run to a breakpoint, but with no breakpoint a steady "Run" just hangs.
Could this be an issue relating to the start up time of the xtal being too long for ICD2's liking??
With my original ICD and MPLAB 5.7 debugging works fine.

Peter
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516115
Peter Laing
Guest







Re: MPLAB 6.30 - ICD2 - CCS 1.667
PostPosted: Thu Jul 17, 2003 5:49 pm     Reply with quote

:=Hi all,
:=
:=I'm getting the following error:
:=
:=Connecting to MPLAB ICD 2
:=...Connected
:=Setting Vdd source to MPLAB ICD 2
:=Target Device PIC18F248 found, revision = 0x4
:=...Reading ICD Product ID
:=Running ICD Self Test
:=...Passed
:=MPLAB ICD 2 Ready
:=Resetting Target
:=MPLAB ICD 2 Ready
:=Programming Target...
:=...Erasing Part
:=...Programming Program Memory (0x0 - 0x3DBF)
:=...Loading DebugExecutive
:=...Programming DebugExecutive
:=...Programming Debug Vector
:=...Programming RSBUG
:=...Programming Configuration Bits
:=Verifying...
:=...Program Memory
:=...Debug Executive
:=...Debug Vector
:=...Verify Succeeded
:=...Programming Configuration Bits
:=.. Config Memory
:=ICD0083: Target not in debug mode, unable to perform operation
:=MPLAB ICD 2 Ready
:=
:=I can not put my processor in debug mode (I'm using a PIC18F248).
:=
:=I have checked the power supply, and the other things in help file but it's still not working.
:=
:=I tried a dumb ASM program, and worked OK. does anyone know anything about it?
:=
:=Thanks
:=
:=Aryldo

You are not alone...
I have been experiencing the same problem with MPLAB 6.30-ICD2-CCS PCM 3.169, 20Mhz 16F877.
ICD2 will program OK. Debugging is the problem.
I suspect it to be hardware related.
-On a 4Mhz RC osc ICD demo board it works, debugging either both a simple C and Assembler programs.
-On my target 20mhz board, debugging would not work at all, kept getting the message ICD0083: Target not in debug mode, unable to perform operation.
-Changed the 20mhz xtal to 4mhz. It looks like it's going to work... no error mnessages... but debug still not right. Will run to a breakpoint, but with no breakpoint a steady "Run" just hangs.
Could this be an issue relating to the start up time of the xtal being too long for ICD2's liking??
With my original ICD and MPLAB 5.7 debugging works fine.

Peter
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516118
s_g_robertson
Guest







PostPosted: Mon Feb 16, 2004 4:29 am     Reply with quote

I had what seemed to be a similar problem. To solve it I changed the ICD into programmer mode erased the device then started again with the debugger.
Guest








PostPosted: Tue Feb 17, 2004 5:40 pm     Reply with quote

I can finally get the icd2 to work properly.



if it will program the device,
check if the crystal is running.
check vdd vss on the chip itself. there may be a bad connection.
is the powersupply dropping out.

if all tests ok the problem may be too much capacitance on your board, like a proto board will cause this. it is really fussy about this. i now modified my icds -20 with a socket for the crystal to change it slow it down and then it works. CCS and Microchip are trying to get maximum performance out of there debuggers, that they should have the option to slow it down, when in envoroments when warrant this. it would make solve the icd not in debug mode a lot less frequent.
Guest








shorter cable
PostPosted: Thu Mar 18, 2004 8:12 pm     Reply with quote

I battled with this problem all day, until I finally decided to shorten the phone cable from the ICD2 hockey puck to the board. It was originally 7 feet long, now it is 6 inches. This seems to have solved the problem, although I still can't figure out why the XTAL bits keep switching to RC from HS.
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