• AVR Freaks

Hot!Pickit 3 program problem.

Author
bpescarolli
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2019/02/22 05:26:59
  • Location: 0
  • Status: offline
2019/02/22 08:39:09 (permalink)
0

Pickit 3 program problem.

Hello all :D
I am beginner with PIC microcontrollers
 
I have, PIC18f4550 and i trying program this chip using the PICKit3 programmer(genuine).
 
But a cant make that, because said "Target Device ID (0xffe0) does not match expected Device ID (0x1200)."
 
What can be this problem? I already pull up in between VDD and VPP using 10kohm resistor and i already check if have 5 Volts in the chip (I configured before start program on MPLAB IDE v3.00).
#1

19 Replies Related Threads

    KTrenholm
    Super Member
    • Total Posts : 710
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 08:58:20 (permalink)
    0
    That error usually means the chip you have selected to program does not match the chip you are trying to connect to.  Either that or a communication problem usually to do with the programming circuit design.
     
    Can you post a schematic of your programming circuit?
    post edited by KTrenholm - 2019/02/22 09:09:31
    #2
    gkigen
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2019/02/22 06:26:16
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 09:04:43 (permalink)
    0
    Are you using a pic programming seat? .if yes. check the positioning instructions for that pin out
    #3
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 09:17:17 (permalink)
    0
    gkigen
    Are you using a pic programming seat? .if yes. check the positioning instructions for that pin out


    Yes i checked! the pins positions out ...
    #4
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 09:25:34 (permalink)
    0
    KTrenholm
    That error usually means the chip you have selected to program does not match the chip you are trying to connect to.  Either that or a communication problem usually to do with the programming circuit design.
     
    Can you post a schematic of your programming circuit?


    Yes i have the schematic ...
     

    #5
    KTrenholm
    Super Member
    • Total Posts : 710
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 10:34:43 (permalink)
    0
    I can't see the image, appears to be a broken link.  Can anyone confirm it isn't just me?
     
    You should be able to upload the image directly to the forum and attach it rather than linking through a 3rd party host.
     
    #6
    Jim Nickerson
    User 452
    • Total Posts : 6186
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Pickit 3 program problem. 2019/02/22 10:46:47 (permalink)
    0
    Looks like a broken link to me

                    Yes i have the schematic ...img src="https://www.photobox.co.uk/0x3c0718f302dd658e447da64c662d0b4d/album/temporary"
                   
                   

    #7
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 11:18:29 (permalink)
    0
    KTrenholm
    I can't see the image, appears to be a broken link.  Can anyone confirm it isn't just me?
     
    You should be able to upload the image directly to the forum and attach it rather than linking through a 3rd party host.
     



    JANickerson
    Looks like a broken link to me

                    Yes i have the schematic ...img src="https://www.photobox.co.uk/0x3c0718f302dd658e447da64c662d0b4d/album/temporary"
                  
                  






    Sorry ... now the new link with that image of schecmatic.
     

    #8
    Jim Nickerson
    User 452
    • Total Posts : 6186
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Pickit 3 program problem. 2019/02/22 11:31:21 (permalink)
    0
    still broken
    mg src="https://cdn1.imggmi.com/uploads/2019/2/22/b98b0b05983bbc05d9c04a0f71f53cf5-full.png"

    #9
    Jim Nickerson
    User 452
    • Total Posts : 6186
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Pickit 3 program problem. 2019/02/22 11:32:14 (permalink)
    0
    bad link

    Attached Image(s)

    #10
    KTrenholm
    Super Member
    • Total Posts : 710
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 11:37:07 (permalink)
    +2 (2)
    I was able to right click>view image to get it to load.  The domain it's on doesn't like external linking.

    It also looks like it was clipped right from:
    http://www.learningaboute...IC-microcontroller.php
     
    Show us what you actually laid out, not what you think you laid out.
    post edited by KTrenholm - 2019/02/22 11:38:36

    Attached Image(s)

    #11
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 11:39:56 (permalink)
    0
    KTrenholm
    I was able to right click>view image to get it to load.  The domain it's on doesn't like external linking.

    It also looks like it was clipped right from:
    http://www.learningaboute...IC-microcontroller.php
     
    Show us what you actually laid out, not what you think you laid out.


    exactly what I did
    #12
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 13:22:04 (permalink)
    0
    I can read and verify the chip, but e i cant program this chip ... the schematic is a very simple possible ... with 10k resistor between VPP and VDD ....
    #13
    KTrenholm
    Super Member
    • Total Posts : 710
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 13:40:36 (permalink)
    0
    You're using the IDE right?  Have you tried programming with the IPE?  Connect to the PIC and see if it reads the device ID off properly.  What's your setup look like?  Breadboarded?  How are you powering your PIC during programming?  Externally or from the PicKit3?
     
    You may need to look at the PGD/PGC/MCLR signals on an oscilloscope to see if there is something electrically funny with the programming signals.  They should look something like you see on this page:
    http://microchipdeveloper../dtda:invalid-device-id
     
    From there it can maybe be deduced what the root of the problem is.
    post edited by KTrenholm - 2019/02/22 13:42:03
    #14
    KibetEnock
    New Member
    • Total Posts : 6
    • Reward points : 0
    • Joined: 2019/02/22 01:29:30
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 13:41:24 (permalink)
    0
    I recently had the same problem too. Please make sure you have done the following:
    • Place the ic appropriately(look under the seat for proper placing of the IC depending on number of pins )
    • Make sure pin one(arrow) goes to the MCLR pin of the seat
    • Now go to your program folder,select properties,PICKIT3 under categories then on the drop down select power to a different range other than 5V, say 3.5V and make sure you've applied.

     

    Attached Image(s)

    #15
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 13:56:12 (permalink)
    0
    I powering from the PicKit3.
    #16
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/22 13:58:58 (permalink)
    0
    i using MPLAB IDE v3.00 the IPE is v3.00
    #17
    NorthGuy
    Super Member
    • Total Posts : 5578
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: online
    Re: Pickit 3 program problem. 2019/02/22 14:32:00 (permalink)
    +1 (1)
    bpescarolli
    But a cant make that, because said "Target Device ID (0xffe0) does not match expected Device ID (0x1200)."



    The ID is clocked from the PGD line. Looking at they Id you're getting, PICkit3 is pulling all '1' from the PGD line. PICkit3 has a pull-down on it. If nonetheless it gets all '1', something in your circuit pulls it up. So, what is connected to your PGD line? What voltage do you measure on PGD? If you have a scope, would you look at PGD during programming and post the result?
     
    I wouldn't rule out a defective PICkit3. Can you program other chips with it?
     
    bpescarolli
    I can read and verify the chip, but e i cant program this chip ...



    If you're reading all 0xffff from the chip (same as if you would read from a blank chip), you most likely don't read this from the chip, but simply get all the '1' from the pulled-up PGD line.
    #18
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/23 17:41:20 (permalink)
    0
    NorthGuy
    bpescarolli
    But a cant make that, because said "Target Device ID (0xffe0) does not match expected Device ID (0x1200)."



    The ID is clocked from the PGD line. Looking at they Id you're getting, PICkit3 is pulling all '1' from the PGD line. PICkit3 has a pull-down on it. If nonetheless it gets all '1', something in your circuit pulls it up. So, what is connected to your PGD line? What voltage do you measure on PGD? If you have a scope, would you look at PGD during programming and post the result?
     
    I wouldn't rule out a defective PICkit3. Can you program other chips with it?
     
    bpescarolli
    I can read and verify the chip, but e i cant program this chip ...



    If you're reading all 0xffff from the chip (same as if you would read from a blank chip), you most likely don't read this from the chip, but simply get all the '1' from the pulled-up PGD line.





    on Monday I will check, I am not with pickit3 with me it belonged to the company where I work ... and i post the result here :D 
    #19
    bpescarolli
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/02/22 05:26:59
    • Location: 0
    • Status: offline
    Re: Pickit 3 program problem. 2019/02/25 05:24:33 (permalink)
    0
    Hello all, i measured the PGD pin before start program and after try program and have 0 volts from VSS-PGD , i checked too continuity all pins of pic (if the sequence is correct) and is OK.
     
    I measured other pins and other have 4.8 volts (with VDD target set in 5 volts)
     
    As for the PGD pin connection, there is nothing connected to it other than the wire that connected the microcontroller to the pickit3.
     
    I test other 18f4550 chip and have a same problem ...
     
    Is possible the pickit3 defective?
    post edited by bpescarolli - 2019/02/25 11:01:50
    #20
    Jump to:
    © 2019 APG vNext Commercial Version 4.5