18F2431 won't program or erase.


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi Keith,
    I haven't checked the power but since the 4550's program OK I'd dare to say it's probably fine. If you get a chance to test your 2431's I'd appreciate it!

    Thanks!
    /Henrik Olsson.

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default you aint gonna like this :(

    Hi Henrik

    Bad news Im afraid. I updated this machine to MPLab 7.30 and my programmer says PICSTART Plus Firmware Version 4.40.1.

    Tried the 18F2431 and 18F4431 and failed with all three chips of each type.

    I couldnt find the 4550s after putting them somewhere safe when I tidied up the other day but did find something else that I had lost ^H^H^H^H put away safely

    Successfully programmed 3 18F4520s with no hesitation.

    Now the bad bit. A Googling session gave me the following information....

    from http://forum.microchip.com/tm.aspx?m=189398

    I have also had trouble programming the 18F2431 on Tech-Tools programmers. They (Tech Tools) have confirmed the problem, but have no solution. They are removing this part from the list of compatible parts from their list. They say that the Microchip programming equipment does not program this part.


    from http://forum.microchip.com/tm.aspx?m=107927

    The 18Fxx31 and several other devices in this family require the use of a capicitor between Vdd and Vss to slow down the rise time. Some will not Erase, thus will not program if not blank. PM 3 is also subject to this problem.

    This workaround can be found in the Readme for PicStart Plus but has been further updated to include other devices that were found to have this problem:

    Some devices require that a 0.1uF bypass capacitor be placed
    from the VDD pin to the VSS pin of the device to successfully
    program the device. If programming failures still arise,
    try increasing this value incrementally to a maximum of 10uF.
    The parts affected are:

    PIC16F737 PIC16F747 PIC16F767 PIC16F777
    PIC18F1220 PIC18F1320 PIC18F2220 PIC18F2320
    PIC18F2331 PIC18F2431 PIC18F2410 PIC18F2420
    PIC18F2455 PIC18F2480 PIC18F2510 PIC18F2515
    PIC18F2520 PIC18F2525 PIC18F2550 PIC18F2580
    PIC18F2585 PIC18F2610 PIC18F2620 PIC18F2680

    For devices such as the 18Fxx31 which have power supply (Vdd and AVdd)
    and ground (Vss and AVss), all pins must be used in order for these
    devices to program.

    Now the REALLY BAD NEWS.....

    tried all that and it still didnt work. I started off with a 100nF cap on each set of supply pins and that didnt work so went the whole hog and stuck 4.7uF on each set of pins. At that point I got the following error message when I tried to program.

    Program Memory or EEPROM Data is protected. Reprogram
    the entire part. If "Auto select memory areas and range"
    on the Memory Ranges tab of the programmer settings
    is enabled, it must be disabeled before proceeding..


    Removing the caps took me back to the original "going through the motions" before failing verification. Decided to go a bit more gently with the caps and used a 1.0uF. Still failed. Added a 100nF as well... still failed.

    Decided to go for a 2.2uF and got the "protected" message again.

    Reverted to the smaller caps and checked the voltages while programming. 4.97v on one set of pins, 5.01 on the other set. Wasnt sure if this was because only one set were powered and the lower voltage was fed through the PIC so I removed it and attempted to check the voltages.

    Without a PIC you instantly get the "protected" message again but I did see a breif change on the multimeter on both sets of pins.

    Dont know what to do now
    Keith

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

  3. #3
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by keithdoxey
    For devices such as the 18Fxx31 which have power supply (Vdd and AVdd) and ground (Vss and AVss), all pins must be used in order for these devices to program.

    Reverted to the smaller caps and checked the voltages while programming. 4.97v on one set of pins, 5.01 on the other set. Wasnt sure if this was because only one set were powered and the lower voltage was fed through the PIC so I removed it and attempted to check the voltages.
    Had another thought after posting that. Maybe the different voltages on the two sets of pins could have been causing a problem so I connected them together and stuck 1.0uF on there as well. Still didnt work
    Keith

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

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


    Did you find this post helpful? Yes | No

    Default

    Did you also tried ICSP too?

    I have the same problem with PICSTART on this device here too. But not on another programmer.

    I'll send a mail NOW to their tech-support to know if there's a known working solution.
    Steve

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

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Wow, thanks for the effort Keith!
    Too bad it didn't work, I was hoping I was doing something wrong at my end. I'm a bit suprised that Microchips own programer have problems flashing the device. I'll try the cap aproach here as well to see if I can get it to work, not that I think it will but....

    Mister_e,
    I did not try ICSP, never used it actually. Please let us know what you find out from the tech support. I may end up contacting them as well If I continue to have problems.

    I'd really like to get this chip going....

    Thanks again, both of you!
    /Henrik Olsson.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Success - I think....

    Hi again guys,
    The help file for the PicStartPlus said to put a 1k resistor between pin 7 (AVdd) and pin 11 (RC0) on the 2431 when programing. I did that and now the device erases and blank checks OK. RTFM, RTFM, RTFM..... ;-)

    I don't have the bootloader hex file with me at the moment but trying to program a blank file works now! No more errors on config fuses and such. I will try flashing it with the bootloader file when I get home tonight, I'll let you know how it works out.

    Thanks again!
    /Henrik Olsson.

  7. #7
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HenrikOlsson
    The help file for the PicStartPlus said to put a 1k resistor between pin 7 (AVdd) and pin 11 (RC0) on the 2431 when programing.
    Where did you find that and in which help file ?

    I just checked the release notes for 7.40 and 7.42 and the only reference to a resistor is

    Programming PIC16F818/819 Devices
    When programming a PIC16F818 or PIC16F819, you must add a 1kohm resistor between MCLR and GND. This can be placed in the socket with the device.

    However in the 7.42 release notes I noticed the following...

    Firmware version 4.50.01 will be available in the near future.

    ... hopefully that will fix some of these problems.

    I did that and now the device erases and blank checks OK. RTFM, RTFM, RTFM..... ;-)
    Yabba Dabba Doo

    Will try it on mine later. Did you just need the resistor or did you need capacitors as well.

    There I discovered that I had to order the PUM-unit from Microchip to retrofit my 1996 model PicStartPlus
    I wonder if this specific problem is related to early programmers. Mine isnt quite that old but I did once replace the PIC and then later fitted the PUM unit. Not entirely sure when I got mine but the label on the bottom says

    10-00157-R9
    JIT980123357

    So having seen lots of serial number labels over the years I am going to hazard a guess at "Jan 1998" or "1998 Week 01"
    Keith

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

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  3. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

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