SK40C Target Device Not Detected

Programmer, In-Circuit Debugger, PIC Start-Up Kit, Memory Interface...

SK40C Target Device Not Detected

Postby honglong » Mon Aug 22, 2011 9:47 am

Hi, currently i am using ICD3 connect with SK40C, but facing problem "the target device not detected" in MPLAB IDE when i want to load program into PIC16. I made the converter from RJ-11 to 10 way header pin myself. The reference signal is almost same with UIC00A/B ICSP programmer right?
Refer to UIC-A manual page 2 and 3, from the schematic of ICD3 and SK40C,i made the below signal equality:-
SK40C ICD3
Pin 3(MCLR) --> Pin 1(MCLR/Vpp)
Pin 4(GND) --> Pin 3(GND)
Pin 5(PGC) --> Pin 5(PGC)
Pin 7(PGD) --> Pin 4(PGD)
Pin 8(VDD) --> Pin 2(VDD)
Pin 9(AUX) --> Pin 6(AUX)
After connect all the wire,the MPLAB software said that "Target Devide is not found/detected". is there any posibilities that SK40C failure?
and by the way when i refer to the SK40C user manual, the 8th pin and 9th pin from 10 way header does not poses any connection, so i need to connect the VDD from board to Pin 8 myself? Upon connected, the problem still exist. Pin 9 i understand is the LVP signal which not very important in this case.
i am confusing that VDD signal need to connect from SK40C to ICD3?
honglong
Newbie
 
Posts: 10
Joined: Fri Aug 19, 2011 6:53 pm

Re: SK40C Target Device Not Detected

Postby yonghui » Mon Aug 22, 2011 10:03 am

hi,
u can refer to user manual of this

http://www.cytron.com.my/viewProduct.ph ... l%20Socket


regards,
yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: SK40C Target Device Not Detected

Postby hyng » Mon Aug 22, 2011 10:07 am

First of all, did you power up SK40C? SK40C need to be powered up from the adapter during programming. That's because Pin 8 on SK40C programming socket is not connected to VDD of SK40C. Therefore, you no need to connect VDD of ICD3 to SK40C.
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: SK40C Target Device Not Detected

Postby honglong » Mon Aug 22, 2011 10:16 am

yes of course i powering up the SK40C using adapter with 9VDC. So i wonder if powering up the SK40C with adapter, the VDD from ICD3 is neglected? the main point is VDD from ICD3 is powering up the target device or it needed from target devide to powering up itself?
honglong
Newbie
 
Posts: 10
Joined: Fri Aug 19, 2011 6:53 pm

Re: SK40C Target Device Not Detected

Postby hyng » Mon Aug 22, 2011 10:36 am

You no need to connect VDD of ICD3 to SK40C. VDD from ICD3 is to power up the SK40C.
To make things clear, i hope you can post your actual hardware photo for the converter
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: SK40C Target Device Not Detected

Postby honglong » Mon Aug 22, 2011 12:07 pm

Hi, this would be the photo of simple converter:
IMG_6311edit.JPG

IMG_6318edit.JPG

I tested the connection of converter cable when i plug into the SK40C and ICD3. The main 4 pin connection as MCLR, GND, PGC and PGD are connected to each other as well. Power up the SK40C and ICD3, then the MPLAB said "Err0045: You must connect the a target device to use ICD3." This means that my PIC is not detected. However when i measure the voltage across PIC16F877a on SK40C , VDD to reference of GND, it shows 4.8V. I wonder why still MPLAB cannot detect the target device.
honglong
Newbie
 
Posts: 10
Joined: Fri Aug 19, 2011 6:53 pm

Re: SK40C Target Device Not Detected

Postby waiweng83 » Mon Aug 22, 2011 2:17 pm

Hi honglong,

The ICD3 detects whether the PIC is being connected or not by checking the voltage on the VDD pin. But as what hyng mentioned in the previous post, the VDD from the SK40C is not connected to the ICSP programming socket. This prevents the ICD3 from detecting the presence of the PIC automatically.

However, there is a workaround solution for this. You just need to configure the ICD3 to power the target circuit. To do this, in MPLab IDE, click on "Programmer -> Settings", then switch to the "Power" Tab, and select "Power target circuit from MPLAB ICD 3" as shown below:

ICD3.jpg


Click "Ok" to save the setting after that.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 208
Joined: Wed Apr 15, 2009 2:17 pm

Re: SK40C Target Device Not Detected

Postby honglong » Mon Aug 22, 2011 6:20 pm

hi waiweng,
i have follow your step in the setting but MPLAB shows another error:
"ICD3Err0086: Target Device ID (00000000) does not match
expected Device ID (00000e20). If you experience persistent
problems communicating, the ICD 3 test interface can be
used to help diagnose the problem."
Please advice how to solve. thanks
By the way, by doing the setting above, the power adapter need not connect to SK40C already right?
honglong
Newbie
 
Posts: 10
Joined: Fri Aug 19, 2011 6:53 pm

Re: SK40C Target Device Not Detected

Postby waiweng83 » Tue Aug 23, 2011 9:50 am

Nope, you still need to use the power adapter to power up the SK40C.
As mentioned earlier, the vdd from the ICD3 is not connected to the VDD of the SK40C, thus the SK40C needs to have its own power supply and cant be powered from the ICD3.

The setting I showed before this is actually to "fool" the ICD3 that the target has been connected.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 208
Joined: Wed Apr 15, 2009 2:17 pm

Re: SK40C Target Device Not Detected

Postby honglong » Tue Aug 23, 2011 10:51 am

hi, I get what you mean now.
but after i plug in the power adapter, the error still comes out:-
"ICD3Err0086: Target Device ID (00000000) does not match
expected Device ID (00000e20). If you experience persistent
problems communicating, the ICD 3 test interface can be
used to help diagnose the problem."
if there any setting in MPLAB i missed?
i notice that there is a ID Memory in the Configure Tab...i need to do some setting on it?
Thanks lot.
honglong
Newbie
 
Posts: 10
Joined: Fri Aug 19, 2011 6:53 pm

Next

Return to PIC Development Tool

Who is online

Users browsing this forum: No registered users and 24 guests