Hot!PIC12F629 programming problems

Author
schap1
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2018/06/20 11:24:14
  • Location: 0
  • Status: offline
2018/06/25 12:36:05 (permalink)
0

PIC12F629 programming problems

I am having a problem programming a PIC12F629 chip for a second time.
 
Setup: MPLAB X version 4.15 with  an MPLAB ICD3 module.
 
I compile my code and was able to program the chip the first time. I made some changes to the source code, recompiled and tried to program the chip a second time and it fails. I have tried a few different chips with the same results. I am using most of the default settings on the ICD3 for programming. The only thing I changed was to switch between powering the chip with the ICD3 and having external power while programming with no difference.
 
Any suggestions on what could be the problem or where to look?
 
Thank you.
 
Michael Schappert 
#1

9 Replies Related Threads

    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 05:35:59 (permalink)
    0
    In some cases, in some PICs, you could face a similar problem if MCLR pin is disabled and Internal Oscillator is selected: is this your case?
     

    GENOVA :D :D ! GODO
    #2
    qɥb
    Monolothic Member
    • Total Posts : 3329
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 05:54:56 (permalink)
    +1 (1)
    If that's the case, you will have to go back to powering the PIC from the ICD3, and find the option to select "VPP before VDD" mode.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #3
    schap1
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2018/06/20 11:24:14
    • Location: 0
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 07:31:29 (permalink)
    +1 (1)
    DarioG:
    Yes, I do have the MCLR pin disabled and have selected the Internal Oscillator.
     
    qyb:
    I have a simple test jig with just the PIC and your solution works there. In the real circuit board configuration MLAB comes back with the following error message:
                              Unable to connect to the target device.
                              Failed to get Device ID
     
    I think the ICD3 can not supply enough power to the PCB.
     
    Thank you both for your answers and suggestions. I will try a few things to see if I can get the PIC to program.
    #4
    JorgeF
    Super Member
    • Total Posts : 3287
    • Reward points : 0
    • Joined: 2011/07/09 11:56:58
    • Location: PT/EU @ Third rock from the Sun
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 08:03:14 (permalink)
    +1 (1)
    Hi
     
    In the past the same thing happened to me a few times.
    But that was with ancient PIC families. It didn't happen to be for the last 10 years.
    It was usually sorted out by erasing the chip (bulk erase) and checking for it to be blank before trying to program it.
    Worst case I can remember I had to do the erase 3 times before recovering it.
    Never got to understand what exactly happened to those chips, but tehy been used several times after without any issues.
     
    I allways use HV programming and, due to a number of issues a few years ago, I never use the ICD3 to power the target. When using a PK3, sometimes I do power the target but no more than a couple of switchs and LEDs.
     
    Since I got my hands on a couple of these
     https://www.elecfreaks.com/estore/black-wings-3-3v-5v-power-breadboard-adapter-bdp.html
    powering from the programmer/debugger as become a quite rare ocurrence. ;)
     
     

    Best regards
    Jorge
     
    I'm here http://picforum.ric323.com too!
    And it works better....
    #5
    schap1
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2018/06/20 11:24:14
    • Location: 0
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 09:45:04 (permalink)
    0
    JorgeF,
    Thank you for the suggestion. I am currently erasing the chip via the programming option on the ICD3 but I will try erasing the chip as a separate step before I try programming it.
     
    When you reference a PK3, do you mean the PicKit3 unit?
     
    Mike
    #6
    JorgeF
    Super Member
    • Total Posts : 3287
    • Reward points : 0
    • Joined: 2011/07/09 11:56:58
    • Location: PT/EU @ Third rock from the Sun
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 11:48:20 (permalink)
    0
    Hi
    schap1
    When you reference a PK3, do you mean the PicKit3 unit?

    Yes, its short for Pickit 3.

    Best regards
    Jorge
     
    I'm here http://picforum.ric323.com too!
    And it works better....
    #7
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/10 15:18:29 (permalink)
    0
    perfekt!

    GENOVA :D :D ! GODO
    #8
    JorgeF
    Super Member
    • Total Posts : 3287
    • Reward points : 0
    • Joined: 2011/07/09 11:56:58
    • Location: PT/EU @ Third rock from the Sun
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/11 15:54:59 (permalink)
    +1 (1)
    Hi
    DarioG
    perfekt!

    LOL...
     
    I guess I started using the PK for Pickit after Microchip coined the PKOB acronym for their on-board programmers/debuggers.  LoL: LoL

    Best regards
    Jorge
     
    I'm here http://picforum.ric323.com too!
    And it works better....
    #9
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: PIC12F629 programming problems 2018/07/12 01:24:45 (permalink)
    0
    yep, actually my comment was related to the overall resolution of the issue but...
     
    fits to "PK" thing too grin
     
    PaperiniK...

    GENOVA :D :D ! GODO
    #10
    Jump to:
    © 2018 APG vNext Commercial Version 4.5