• AVR Freaks

Hot!Programming 10F322 using ICD3

Author
lpfepicu
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2010/06/15 00:58:14
  • Location: Namibia
  • Status: offline
2019/08/09 06:38:30 (permalink)
0

Programming 10F322 using ICD3

I have tried now for several days to program the PIC 10F322 using and ICD3 as well as an MPLAB REAL ICE. Both gave me the same error message;
 
Connecting to MPLAB ICD 3...

Currently loaded firmware on ICD 3
Firmware Suite Version.....01.56.00
Firmware type..............Midrange

Target voltage detected
Target device PIC10F322 found.
Device Revision ID = 4

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x1ff
program memory
Address: 0 Expected Value: 280a Received Value: 0
configuration memory
User Id Memory
Failed to program device
 
I checked both the ICSPCLK and ICSPDAT as well as MCLR with and oscilloscope. They look correct to me. They are wired straight to the ICD with having both a 470k resistor to Vss, while I have a 10k resistor on MCLR to Vdd
what could be wrong?
 
 

MPLAB X IDE v5.20
PIC10F322
Windows 10 Pro
#1

8 Replies Related Threads

    skruegel1
    Starting Member
    • Total Posts : 78
    • Reward points : 0
    • Joined: 2017/02/04 03:32:13
    • Location: 0
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/09 07:39:29 (permalink)
    0
    Figure 22-3 of the datasheet shows isolation of the programming circuit from the normal connections.  Could that be part of the problem?
    #2
    lpfepicu
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2010/06/15 00:58:14
    • Location: Namibia
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/09 08:00:45 (permalink)
    0
    I don't think so. I have only the resistors connected like on the picture attached. I have also tried to remove all of them, same result
     
     
    post edited by lpfepicu - 2019/08/09 08:02:19

    Attached Image(s)


    MPLAB X IDE v5.20
    PIC10F322
    Windows 10 Pro
    #3
    skruegel1
    Starting Member
    • Total Posts : 78
    • Reward points : 0
    • Joined: 2017/02/04 03:32:13
    • Location: 0
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/09 10:28:54 (permalink)
    0
    Try programming only something other than the program memory, for example the UserID.  Need to localize the problem.
    #4
    NorthGuy
    Super Member
    • Total Posts : 5590
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/09 12:34:49 (permalink)
    0
    If it can get the device id, the connection is correct. If it then cannot program and always reads 0 (as opposed to various errors at different runs), the problem is definitely related to programming process - such as the chip is protected and it cannot remove protection, or it cannot do bulk erase. This may happen when the VDD voltage is not high enough. This PIC requires 2.7V for bulk erase. What is your voltage?
     
    You don't need any resistors for programming.
    #5
    lpfepicu
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2010/06/15 00:58:14
    • Location: Namibia
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/09 23:55:53 (permalink)
    0
    How do I see if it is protected? (it is brand new) and how can one remove the protection? The chip is powered by 5V, tried both options, from the LCD as well as external power. It looks to me that it also cannot bulk erase;

    *****************************************************
    Connecting to MPLAB ICD 3...

    Currently loaded firmware on ICD 3
    Firmware Suite Version.....01.56.00
    Firmware type..............Midrange
    Programmer to target power is enabled - VDD = 5.000000 volts.
    Target device PIC10F322 found.
    Device Revision ID = 4

    Erasing...
    Erase successful

    Blank Checking...
    program memory
    Address: 0 Expected Value: 3fff Received Value: 0
    Blank check complete, device is not blank.

    MPLAB X IDE v5.20
    PIC10F322
    Windows 10 Pro
    #6
    lpfepicu
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2010/06/15 00:58:14
    • Location: Namibia
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/11 22:56:42 (permalink)
    +1 (1)
    I found the solution. The device was broken. After I replaced it again, I could program normally. Strange that they go so quickely? Or the orginal one was faulty from the begining, since I never could get it to work. Maybe some static?

    MPLAB X IDE v5.20
    PIC10F322
    Windows 10 Pro
    #7
    ric
    Super Member
    • Total Posts : 23598
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/11 23:02:27 (permalink)
    0
    lpfepicu
    Maybe some static?

    Maybe.
    They are pretty hard to kill, but not impossible.

    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!
    #8
    NorthGuy
    Super Member
    • Total Posts : 5590
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Programming 10F322 using ICD3 2019/08/12 05:16:40 (permalink)
    0
    ric
    They are pretty hard to kill, but not impossible.



    Absolutely. I don't thing I ever killed one of these newer PIC16. They're much more robust than the old ones.
    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5