• AVR Freaks

Hot!Target has invalid calibration data (0x00)

Page: 12 > Showing page 1 of 2
Author
Geoff
Starting Member
  • Total Posts : 50
  • Reward points : 0
  • Joined: 2011/05/07 19:05:12
  • Location: Melbourne Australia
  • Status: offline
2019/10/19 01:53:41 (permalink)
5 (1)

Target has invalid calibration data (0x00)

PIC10F202
Pickit 3
IPE v5.25
 
2019-10-19 19:43:51 +1100 - Programming...
Target has invalid calibration data (0x00).
Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x3b
configuration memory
program memory
Address: 0 Expected Value: 25 Received Value: 0
Failed to program device


SOT23 in a test socket. Only Pickit 3 connected apart from external power.
 
via Google it seems to have been a common problem some years ago but none of the suggestions seem to work.
 
Does anyone have any clues please?
 
 
#1

20 Replies Related Threads

    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3315
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/19 03:45:35 (permalink)
    -8 (10)
    Why even bother with a 10 Year old chip ?
     
    The common problem is a newb problem.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #2
    NorthGuy
    Super Member
    • Total Posts : 5754
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/19 05:56:17 (permalink)
    0
    Most likely you have a connection problem - some wires are connected incorrectly, bad contacts, external elements interfering, no power etc.
    #3
    Ian.M
    Super Member
    • Total Posts : 13267
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: online
    Re: Target has invalid calibration data (0x00) 2019/10/19 06:12:17 (permalink)
    +6 (8)
    @Gort: That's not constructive.  We don't know if the O.P. is locked into using the PIC10F202,  e.g. programming one from a hex file to repair existing hardware.
     
    @Geoff, 
    Baseline parts like the PIC10F202 don't have a device ID so the programmer doesn't fail out if there's a problem with target power or ICSP connections at the usual 'Check device ID' step with an ID that's all zero, which is the usual indication you have a target power or connection issue with all non-baseline FLASH PICs, because the pulldown on the PGD line in the programmer causes it to read '0' if the target is not responding.  Two locations of program memory, (the calibration data and address 0) have read back as zero, so its likely the target is not responding due to a power or connection issue.  
     
     
    To attempt to resolve this,, first check the IPE is configured to let the PICkit 3 power the target: https://microchipdeveloper.com/ipe:power-options  (see below for voltages - the PICkit 3 will have difficulty reaching 5V on Vdd if your USB Vbus is low, so it may help to try setting it to 4.7V, a little above the bottom of the permitted range for programming.)
     
    If that doesn't resolve it, with the programmer disconnected from the socket adapter, and no PIC in the socket, check continuity from the male ICSP header all the way through to the socket contacts and confirm that they go to the correct pins.  See PICkit 3 user guide and PIC10F202 Memory Programming Specification.   If you don't find anything obviously wrong, check voltages on Vdd and /MCLR (Vpp) with respect to Vss.  You'll probably need a scope, or a peak hold multimeter, as the voltages wont be on for long due to the failure.  
     
    You are looking for 5V on Vdd and 13V on /MCLR, both +/-0.5V.  Report any problems here.
     
    N.B. I am *NOT* Microchip staff, I'm just another user.
    post edited by Ian.M - 2019/10/19 06:22:14

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #4
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3315
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/19 06:36:20 (permalink)
    +1 (1)
    I was not aiming that comment at you but at the Google results.
     
    Some users never take time to read a post, always ready to downvote me.
    The only time I downvote is because of insults, opinions don't matter.
    post edited by Gort2015 - 2019/10/19 06:40:23

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #5
    Ian.M
    Super Member
    • Total Posts : 13267
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: online
    Re: Target has invalid calibration data (0x00) 2019/10/19 06:58:57 (permalink)
    +2 (2)
    The trouble with Google results is there are so many of them and most of very low quality.  Also, Google keep making it harder to refine your results - 'back in the day'  they honoured Boolean operators in searches, +search_term for 'Must include' and -search_term for 'Must exclude'.  Now they *barely* honour quoting for exact match :(.  
     
    If you feel inclined to tell a newbie to JFGI, at least provide some useful search terms . . .

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #6
    crosland
    Super Member
    • Total Posts : 1673
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Warks, UK
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/19 12:10:19 (permalink)
    +2 (2)
    Gort2015
    I was not aiming that comment at you but at the Google results.
     
    Some users never take time to read a post, always ready to downvote me.
    The only time I downvote is because of insults, opinions don't matter.



    So learn to include some context so people who do read a post know WTF you are referring to. Maybe then you will not get so many down votes.
    #7
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/20 00:12:02 (permalink)
    0
    @Ian.M
     
    Thanks for your informative reply. I need to order some more chips so will be a few days before I can check out your suggestions.
    I am locked into 10F202s as the design by others is quite old.
    #8
    ric
    Super Member
    • Total Posts : 24282
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Target has invalid calibration data (0x00) 2019/10/20 02:20:19 (permalink)
    +1 (1)
    geoffc
    I am locked into 10F202s as the design by others is quite old.

    Does that mean boards are already populated?
    There's newer chips pin compatible with the 10F202 which could solve a lot of your problems, and possibly be cheaper too.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/22 20:21:08 (permalink)
    0
    Hi Ric
     
    The boards are not populated as yet. How should I go about determining a more modern pin and voltage compatible PIC please?
    #10
    ric
    Super Member
    • Total Posts : 24282
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Target has invalid calibration data (0x00) 2019/10/22 21:18:38 (permalink)
    +4 (4)
    If you just go to the Microchip product page for the PIC10F202 at
    https://www.microchip.com/wwwproducts/en/PIC10F202
    it suggests that you use a PIC10F322 instead.
    https://www.microchip.com/wwwproducts/en/PIC10F322
     
    That device DOES contain a product ID, so the programmer can verify the connection.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #11
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/23 16:03:30 (permalink)
    0
    Thanks Ric - Wonderfull
    #12
    Ian.M
    Super Member
    • Total Posts : 13267
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: online
    Re: Target has invalid calibration data (0x00) 2019/10/24 00:37:03 (permalink)
    +1 (1)
    Caution: The PIC10F322 is pin compatible with the PIC10F202, but *NOT* binary code compatible.  Its not even fully sourcecode compatible (i.e. not 'click and build') - so expect to have to do some reworking of the sourcecode for a successful replacement.

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #13
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/28 01:58:25 (permalink)
    0
    Code is written. Awaiting some chips. Far more akin to later PICs without the limitations of the 202.
    #14
    Howard Long
    Super Member
    • Total Posts : 721
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/28 05:10:32 (permalink)
    0
    Is the OP's error not the old chestnut of the oscillator calibration value being overwritten in these older devices, typically by erasing the chip without re-writing the original calibration value?
     
    Either way, I agree, the 10F3xx are far better devices in every way, not least that the calibration value "feature" isn't a problem. 
    #15
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3315
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/28 07:12:44 (permalink)
    -5 (5)
    So learn to include some context so people who do read a post know WTF you are referring to. Maybe then you will not get so many down votes.
     
    Why do you feel that you need to talk down to me like you are superior in some strange way?
    Seems you do all the downvoting for some petty reason.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #16
    nigelwright7557
    Super Member
    • Total Posts : 308
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/28 09:29:09 (permalink)
    +1 (1)
    Gort2015
    Why even bother with a 10 Year old chip ?

    If its cheap and does the job then why not ?
    I still use PIC12F509 a lot in small projects.
     
    I had a few problems a while back with bad calibration data, device not id's properly etc etc.
    Turned out my 6 way lead from PICKIT3 to my PCB was becoming a bad connection.
    Bought a new one and been great ever since.
     
    #17
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/28 16:27:49 (permalink)
    +4 (4)
    As the OP concerned, I would like to thank the people who made constructive comments. I am not a newbie to PICs having used them for at least 15 years, however I had not come across that problem before. Gort2015 appears to want to show his superiority but was totally unconstructive. It is no wonder he gets down voted. Thanks again to the rest.
    #18
    Geoff
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2011/05/07 19:05:12
    • Location: Melbourne Australia
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/29 17:05:33 (permalink)
    0
    Thanks to all those who gave constructive advice. I am not a "newbie" PIC programmer as I have used them for 15 years or so. I had never come across the above situation. Gort2015 needs to have a good look at himself. It is no wonder he gets down voted.
    #19
    NorthGuy
    Super Member
    • Total Posts : 5754
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Target has invalid calibration data (0x00) 2019/10/29 21:28:26 (permalink)
    +1 (1)
    Howard Long
    Is the OP's error not the old chestnut of the oscillator calibration value being overwritten in these older devices, typically by erasing the chip without re-writing the original calibration value?



    If it was erased, the programmer would read 0xfff - all '1'. Since the OP gets zeroes, this means the ICSPDAT line is stuck low. Thus the problem is that the PIC doesn't respond (most likely because the connection is bad).
     
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5