18F4620 refuses to be re-programmed


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Nov 2005
    Location
    Zamora, Spain
    Posts
    11

    Unhappy 18F4620 refuses to be re-programmed

    hi,
    I can only program one time (from empty) any 18F4620 part. Next times it gives lots of fails in verification (the piece remains with the first code programmed unchanged). My warp13 can program with no problem 18F2620. Is there any undocumented knowing or trick for programming the 18F4620?

    Thanks.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MaxG
    hi,
    I can only program one time (from empty) any 18F4620 part. Next times it gives lots of fails in verification (the piece remains with the first code programmed unchanged). My warp13 can program with no problem 18F2620. Is there any undocumented knowing or trick for programming the 18F4620?

    Thanks.

    Try putting a pulldown on RB5/PGM. It sounds like your trying to use LVP and therefore need the pulldown. Check your LVP bit in the Warp13 software. Failing that, it sounds like you have a hardware problem like your MCLR* line isn't getting to the PIC correctly. I've been using the Warp13 on the '4620 for a couple of years now and haven't had a problem yet.

    JDG

  3. #3
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default Look at this thread for ideas

    Hi Max,

    A while back several of us were having problems programming PICs with PicStartPlus and it turns out there are known issues with some devices.

    Check out this thread for possible ideas including the tip from Microchip to erase the device first and then reprogram.

    http://www.picbasic.co.uk/forum/showthread.php?t=4710

    HTH
    Keith

    www.diyha.co.uk
    www.kat5.tv

  4. #4
    Join Date
    Nov 2005
    Location
    Zamora, Spain
    Posts
    11


    Did you find this post helpful? Yes | No

    Unhappy Suggestions tested. Problem still on.

    Thanks Skimask,
    I have re-checked the setup of LVP both in the software line #pragma config ... and in the config bit table of the WARP13a application window for it to be unchecked/not selected. I have also tested the Vpp while programming and is 12.75 volts, clear and stable. The line RB5 is floating, must I pull it down even if I do not use LVP?
    Any idea about why the pic let me to program one time and no more?

    I read that some other pics showed this problem with MPLAB compatible programmers, but I have tried all the receipes (1-10K loading MCLR to GND, C 0.1µF from Vdd to Vss, ALL Vdd pins joined, ... ) and nothing seems to cure the problem.

    It can not also be programmed neither the config bits nor the ID word of the PIC. Curiously, the first time (right after solder the part to the board) the programming was perfect.

    Maxi.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Are all Vdd joined and all Vss joined as well?

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    TOO bad... it's a Melabs PICBasic forum, not C

    and...
    I read that some other pics showed this problem with MPLAB compatible programmers, but I have tried all the receipes (1-10K loading MCLR to GND, C 0.1µF from Vdd to Vss, ALL Vdd pins joined, ... ) and nothing seems to cure the problem.
    MCLR to Vdd. PGM loaded to gnd via resistor.

    something like


    on Melabs website : http://melabs.com/support/icsp.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Nov 2005
    Location
    Zamora, Spain
    Posts
    11


    Did you find this post helpful? Yes | No

    Wink Work done!

    Thank you all people. I still do not know which of the solutions has fixed the fault (I suspect that adding the resistor from PGM to ground was the cure) but... by now I am programming my 18F4620 time after time.
    Mister-e: I have never found so smart and plenty of resources guy in any part of the world. Congratulations. Please be patient with people that has an I.C. lower than 150 or 180. In anyway, I thank you all again.
    Note: be carefull adding any kind of high frecuency EMI suppresor in series with the supply of the PIC (to avoid the interference generated by the PIC going out to the circuit). At 20Mhz the supply current might be several miliamps. Should the internal resistance of the suppression device is several ohms it makes the 5volts supply to go down while you are programming the part and... you enter in the forum lost like a grape floating in the Atlantic. As I am supplying 5 volts to the PIC from its own board (not from the ICSP interface), the supply was not very clean (I do not know how many miliamps do the pic uses in programming). Do this sound very stupid or can be part of cause in the programming fault?

    Maxi.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmm, could be but if the PGM pin is not loaded, on many device (16Fs too), it doesn't work. The PGD,PGC,MCLR wires between your board and your programmer should be short. Here, under 6-8 inches, do the trick. I use a flat cable and i have a GND between all signals.

    Make sure the LVP mode is disabled, make sure your supply line is clean, make sure you place few 0.1uF capacitor here and there and better are your chance it works. Usually i place 0.1+10uF tantalum close to the PIC on the Vdd line(s).

    In theory, when you program the PIC.. the PIC itself don't need much current, but the hardware attach to could. Without the schematic it's a bit hard to guess. Bear in mind that when you program the PIC, all I/Os should become Hi-z... in this case it could do some strange behaviour.. or not.

    Did you place the Diode on MCLR pin too?

    Please be patient with people that has an I.C. lower than 150 or 180.
    Sorry, i don't know what's happen to me these days.. kind of PMS... sort of
    Last edited by mister_e; - 3rd December 2006 at 19:47.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    Sorry, i don't know what's happen to me these days.. kind of PMS... sort of

    It's not your fault, it's the people that want everything and they want it right now and they don't want to do any of the work involved with getting whatever it is yesterday and not tomorrow (like those idiots that paid $1000+ for the Playstation 3 on eBay, if they wait for a month or so, they would've gotten it for retail price). Ya gotta love those 'I've got X, can somebody give me Y?'....
    JDG

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Could be, but not in this specific thread

    BTW, we're here to help and learn.. so why not doing it smooth?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  11. #11
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Pms

    Quote Originally Posted by mister_e

    Sorry, i don't know what's happen to me these days.. kind of PMS... sort of
    Hi mister_e,
    I had that when my daughter was a teenager, it stands for PAPA MUST SUFFER !
    JS

Similar Threads

  1. Migration 18F452 --> 18F4620
    By NavMicroSystems in forum General
    Replies: 14
    Last Post: - 27th January 2010, 11:58
  2. 16f877 to 18f4620 need help
    By vicce67 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th January 2010, 08:20
  3. 18F4620 and SHT11 problems
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th June 2009, 10:26
  4. 18F4620 Fuses configuration
    By Pimentel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th October 2008, 13:23
  5. 16F877a to 18f4620 compatible?
    By modifyit in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th February 2006, 00:24

Members who have read this thread : 1

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