• AVR Freaks

Helpful ReplyTroubleshooting MPLAB ICD 2 Problems

Page: 123 > Showing page 1 of 3
Author
DevMod
Super Member
  • Total Posts : 327
  • Reward points : 0
  • Status: offline
2007/12/05 15:09:11 (permalink)
0

Troubleshooting MPLAB ICD 2 Problems

We have put up a web page to help people analyze problems with MPLAB ICD 2.  If you have additional information on a problem that you've solved, please add to this thread, and we'll add that info to the web page if it can be of help to others.
 
www.microchip.com/icd2help

Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
Please notify the moderators of problems/spam/trolls.
#1
phil7890
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2007/07/19 20:10:22
  • Location: California
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2007/12/05 16:47:31 (permalink)
0
 
Subject:  ICD2 and Clearing Various Protection Bits.
http://forum.microchip.com/tm.aspx?m=278003&mpage=1&key=&#278075

Problem/description in posts #1 & 3.
Proposed solution in post #4.
Confirmation in post #5.
Thanks.

return 0;
#2
DevMod
Super Member
  • Total Posts : 327
  • Reward points : 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2007/12/05 19:14:04 (permalink)
0
Thanks.  We'll add to the document.

Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
Please notify the moderators of problems/spam/trolls.
#3
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2007/12/05 20:49:24 (permalink)
0
How about this? MPLAB ICD2 doesn't have the hardware capability of controlling the Vdd/Vpp timing since it was was created before any of these internal RC/internal osc PICs were developed. 
http://forum.microchip.com/tm.aspx?m=277310

ICDWarn0033: MPLAB ICD2 does not support programming this device if both the internal oscillator and internal MCLR are selected.  You may continue programming, but you are encouraged to cancel, reconfigure your device, and try again.

My suggestion is to use PICkit 2 instead for this kind of PICs.
#4
rdoerr
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2007/01/21 13:40:02
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/01/12 18:36:21 (permalink)
0
I was having problems running ICD2 in debugging mode with my PIC18F4680 board. If I switched from debugging to programming mode, it would work fine, but in debugging mode it would complain that it couldn't enter debugging mode. After reading everything listed on this thread and trying the suggestions, nothing would work. I finally started trying debug mode after commenting out different config option. I found the one config option that was causing my setup to not enter Debug Mode was the CONFIG PWRT=ON option. It works great with this commented out and fails if I add it back in. ll these test were done using 8.0 IDE. Has this been identified as a bug in the IDE?

Thanks

Ray Doerr
#5
PhilV
Super Member
  • Total Posts : 548
  • Reward points : 0
  • Joined: 2004/03/22 07:27:28
  • Location: Bedfordshire, England UK
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/01/28 10:19:30 (permalink)
0
I believe this is a common problem Ray.
I too have found that a lot of devices will not enter debug with the power-on timer enabled. As a matter of course now I have one config file for debug, and one for release, (although with 8.01 IDE I am now moving to a single config file and checking for __DEBUG).
 
Phil

Using:

ICD2
MPLAB 8.01
C18 3.06
#6
blar
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2008/03/26 23:15:27
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/03/26 23:20:09 (permalink)
0
i have a problem with MPLAB ICD2, when connected to dsPIC this message appear "ICDWarn0020: Invalid target device id (expected=0x400, read=0x0)" but the device is working properly cos the day before it was working. Any idea what's the problem?
#7
donmorr
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2008/03/28 08:20:31
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/03/31 01:43:24 (permalink)
0
Hi Blar,
I had the exact same problem last week. Had been using the ICD 2 with my Explorer 16 board and all was working fine until I started getting the 'Invalid Target ID' warning.

To solve the problem I had to
1. disconnect the ICD2
2. run the uninstall driver tool
(located here: C:\Program Files\Microchip\MPLAB IDE\Utilities\MPUsbClean but follow the instructions here: http://www.interrupt.co.kr/data/mchp/Uninstalling_USB_Drivers_51417c.pdf),
3. restart the computer
4. reinstall MPLAB
5. restart the computer
6. connect the ICD2 and let it automatically install the drivers


Hope this helps!
Don.


#8
amob
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2008/04/12 07:25:17
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/04/12 08:08:09 (permalink)
0
I have the same problem. Using ICD2 with dsPIC30F2012 all working fine. 3 days ago impossible to start ("Invalid Target ID .. ")
I réinstall driver tool and MPLAB 8.02, with your method (on WINDOWS 98) the problem persist.
I try to install on an other PC ( Windows XP), I have the same problem.
If I use a 18Fxx it's OK
 
On MPLAB ICD2 Setting I have :
Target Vdd 0 V
Target Vpp 12.62 V
ICD2 Vpp  12.78 V
 
Target is correctly powerd (5V)
If I set "reset", I MCLR=1.56V with R-pull up 10k and 3.68V with R pull-up 1K
 
If I start with 18Fxx, set the reset I obtain 5V on MCLR. If I change the target for dsPIC30F2012 (or dsPIF30F3013) without stop, MCLR remain at 5V
HELP ME please !
 
Excuse my bad english !
 
#9
donmorr
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2008/03/28 08:20:31
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/04/14 03:53:42 (permalink)
0
Again I had the same problem. I think I caused it last week by plugging out the ICD2 while MPLAB was running. I've spent 3.5 hrs this morning trying to fix it! I tried re-installing the drivers and MPLAB 8.2 but it didn't fix it.
So I unstalled all versions of MPLAB that were installed on my computer. Uninstalled the drivers and re-installed MPLAB version 8.0, opened MPLAB 8.0 and allowed it to download the Operating System firmware to the ICD. This seemed to have fixed the problem.

Maybe its the process of changing the operating system on the ICD that fixes the issue??? I'm not 100% sure but it seems to have worked for me this time :-)

Don
#10
amob
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2008/04/12 07:25:17
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/04/14 06:36:52 (permalink)
0
I have find !

It's a bug in MPLAB with dsPIC30Fxx.

To repair :
Chose your device (dsPIC30Fxx) in MPLAB.
Close MPLAB.
open file  ICD2.ini    ( C:\program files\Microchip\MPLAB IDE Common\ICD2\ICD2.ini )
replace "USEICDPOWER=0" by "USEICDPOWER=1".
save.
Open MPLB and it's OK.

Remark : if you change device you must do again.
             ICD2 must have an exnernal power.

I hope Microchip will correct this bug !
post edited by amob - 2008/04/14 06:48:40
#11
okhan
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2008/10/01 14:14:21
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/10/01 14:25:27 (permalink)
0
Hi I have a problem using ICD2 with MPLAB 8.14 and the Explorer 16 board. I have a PIM for the PIC24 and one for the PIC32. Say I run a project for the PIC32, the correct Firmware is downloaded to the ICD2 and everything works fine. Now say I want to run another project using the PIC32 again. This thime the ICD2 will not download the firmware as it already has the correct one installed. But it fails to communicate. At this point to get it to work, I have to unplug the PIC32 PIM and plug in the PIC24 PIM and run a PIC24 related project with the ICD2 so that it will replace the firmare and initiate contact. Then, I have to disconnect everything again, replace the PIC32 PIM and re run the PIC32 project that I wanted to run so the it will re download the firmware. This is the only way I have got it to work again. Is there any work around this so that I dont have to do all this hussling around? Thanks!
#12
rmoline
Super Member
  • Total Posts : 357
  • Reward points : 0
  • Joined: 2004/12/18 05:18:28
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/10/20 20:37:03 (permalink)
0
ICDWarn0020: Invalid target device id (expected=0x105, read=0x0)

Using 18FXXKXX parts Vpp must be higher than the value in the datasheet and programming spec, Vdd + 1.5 V.
Found from experience 6.3 V was too low, PIC would not enter programming mode.
8.2 V recommended by Microchip was high enough, PIC was programmable.

http://forum.microchip.com/tm.aspx?m=376025
#13
raidfibre
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2008/01/10 17:09:53
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/11/18 13:01:17 (permalink)
0
If you find out (okhan) let me know. I submitted a bug report, you should do the same. It doesn't work correctly.
#14
SHN
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2008/12/21 10:59:09
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2008/12/21 11:10:29 (permalink)
0
I have a general question for anybody. I am using the PICDEM +2 demo bd for some code prototyping.
I am using a PIC16F887 chip. The simple program I am running works in both debug and no-debug modes, no problem.
In the MPLAB ICD 2 User guide it states that the "Watch Window" will show register values getting updated while running. I only observe the updating occurring when the program is halted either from a breakpoint or by hitting the halt button. Is the guide wrong?
Thanks for any response.
SHN
#15
jeffrey
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2008/12/28 07:36:19
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2009/01/09 06:25:27 (permalink)
0
i am using the dsPICDEM 1.1 Plus development board with ICD2 and a dspic30f6014A chip.
i have a question to ask you, if the board is loaded a program before i used it, should i have to clear the program before i start use it? Can i just loading my program? my program will overwrite it right? If it is necessary to clear it, how to clear?

Thank you.Hope can hear your news soon.
#16
DevMod
Super Member
  • Total Posts : 327
  • Reward points : 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2009/01/09 08:01:34 (permalink)
0
This is not a good thread to ask general questions like this, but the answer is you do not have to clear out an old program before downloading a new one. 

Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
Please notify the moderators of problems/spam/trolls.
#17
jeffrey
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2008/12/28 07:36:19
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2009/01/09 09:31:26 (permalink)
0
i will ask this question because my LCD don't know display the require the word after i run the "demo application" (DS70140A chapter 6) release by microchip. i have try many times, but it come with the same result. So, i am trying to find out the solution to solve it.

I can success to run the tutorial and display the relevant word, but for the "demo application" i cannot get it. My purpose is just want to find the solution from others, nothing else.

If you have any solution, please kindly to reply me, thank you.
#18
soul
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2009/01/11 02:05:28
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2009/01/11 02:15:14 (permalink)
0
hi, i am facing the same problem like jeffrey, my LCD cannot display the "demo application" that release by microchip.
But, i can success to run and display the word on the LCD for the tutorial. What's wrong?
Anyone can help me?( i power on the board by 9V, 0.5A, but the required is 9V,0.7A, i have try to use 1A, result is the same, no display on LCD.)
#19
dougy83
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2008/06/06 02:06:39
  • Location: 0
  • Status: offline
RE: Troubleshooting MPLAB ICD 2 Problems 2009/03/03 18:12:16 (permalink)
0
ICD2 does not always work when connected to COMx port.
 

I aquired an ICD2 2 days ago and connected PL2303 USB-serial adapter on COM7.I tried using the MPLAB ICD2 setup wizard, selected com7, 19200bps, clicked next, next, and then on the final (summary) page of the wizard it said COM3, 19200bps, etc. So MPLAB selected com3 even though i told it com7.
 
For version 8.00 of MPLAB the configuration file ICD2.ini can be manually changed to the correct port.
For version 8.20 I couldn't find where the configuration was stored, so had to install 4 virtual serial ports, and select the 7th com port in the listbox. i.e. My MPLAB ICD2 setup com port listbox has the following entries
USB (index 0)
COM1 (index 1)
COM3 (index 2)
COM7 (index 3)
COM120 (index 4)
COM121 (index 5)
COM122 (index 6)
COM123 (index 7)  <-- have to select this port to get my ICD2 to work on COM7
#20
Page: 123 > Showing page 1 of 3
Jump to:
© 2019 APG vNext Commercial Version 4.5