Re-Programming Problem


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Unhappy Alredy seen ... halas.

    Ahhh,

    18F1320 ...

    I had reprogramming problems with some of them ( still have one which definitly "locked" after ~ 20 reprogrammings ) Thread posted here.

    The second one took service back two Picstart plus revisions later...

    Batch is 05250SE ...

    Tried three programmers : Picstart+, ICD2 and a ( trustable ) "custom one" ... same behaviour.


    Microchip never answered anything about that ...

    Soooo, I'd encourage you to turn to another pin for pin compatible chip ( 16F88 i.e. ... )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    I don't think that's the issue. I did this test: Grabbed a brand new, never used 18F1320 and programmed and old program on it and it worked, programmed a different program and it worked, then programmed the program posted in my OP and now the chip cant be read by PicKit2. The program runs, but I cant change or erase it.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I was just reading a thread on another forum ...
    http://www.electro-tech-online.com/m...1320-dead.html

    They came to the conclusion that erasing it with a JDM type programmer seemed to work, when the PICkit2 wouldn't..
    <br>
    DT

  4. #4
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Nice work as usual Darrel. This is exactly the problem I am having. I did google it but I guess I wasnt using the right key words.

    So I guess the moral of the story is: 18F1320+TMR1(w/ext clock)+MCLRE_OFF = bad

    Too bad I dont have a JMD programmer. I guess i'll see if its worth building one just to revive these 3 PIC chips.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  5. #5
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I have found that a Microchip ICD2 can program any part - properly (and can debug too). Even though it costs more, the time saved in debugging a programmer problem is worth it. And it programs EVERY PIC.
    Charles Linquist

  6. #6
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    I borrowed a JMD programmer from a friend to try to erase these PICs but no luck. After doing the erase procedure and also trying programming a working program neither worked. If I apply power to the PICs after all of that I see that they still have the program on them that stuffed them up.

    Is it just me, or does it seem like bad design on behalf of microchip if disabling MCLR and setting Timer 1 to external clock will create a program that cannot be erased from the PIC?
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  7. #7
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    I finally solved it.

    I found this very useful snippet in the PICkit2's User's Guide:

    Use VPP First Program Entry - When checked, it allows the PICkit 2 to connect to and program devices with configurations and code that interferes with the ICSP signal pins, preventing PICkit 2 from detecting them.
    Once I set that, they erased like a dream. So three 18F1320's saved from the trash
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. Programming Problem PIC12F683
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd June 2009, 21:39
  2. 16F676 programming problem
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th May 2009, 17:39
  3. PIC18F4620 Programming problem
    By JavPar in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 6th December 2008, 04:21
  4. Programming Problem with PIC16F819
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th July 2007, 18:42
  5. Problem programming the PIC16F648A
    By Edgardo_2 in forum General
    Replies: 2
    Last Post: - 29th December 2006, 00:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts