Code programming error at 0000


Closed Thread
Results 1 to 40 of 42

Hybrid View

  1. #1
    JDM160's Avatar
    JDM160 Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by JDM160
    I added the 1uF capacitor to the power pins (as per information on melabs.com) but it made no difference at all.
    Hmmm, I hate when I feel like I'm talking to myself. LOL.

    Anyway, glad it worked for you, it didn't work for me...

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    > Does anyone know of a good low-cost commercial programmer that can program all of the Pics?

    Unfortunately your use of the two words "low cost" excludes giving any sensible answers... all the programmers I can recommend omit that from their feature list.

    However, given the fact that you have some success with your PICs leads me to suspect that there is something 'marginal' in your setup. I don't know your programmer at all, but I would suggest in the first instance you put a scope on your PSU and ensure you have a constant and steady DC supply. Check the programming pin MCLR on the PIC... you should have some 13.5v on it (unless you're using Low Voltage Programming) - if this varies or drops it will cause the PIC not to program correctly. Plug-in a PIC, hit 'program' and make with the multimeter or scope...

  3. #3
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    JDM,

    Did you ever replace that cable? M to F 25-pin, straight thru (not null-modem cable).

    I would fix that FIRST. Even though the "hillbilly cable rig" works on some/most chips, the longer cable run might be a problem for others. Additional noise, voltage drop, etc.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I've just started getting this error too. I am using the MeLabs serial programmer on a 16F628A in circuit (which has a 0.1uF cap).

    Odd, I can program a 18F2550 on the same circuit over and over again without any problem.

    I have Erase Before Programming but I keep getting the same 0000 error. I must have tried at least 20 times just now.

    I'll try soldering PGC/PGD real close to the PIC and see if the length of the leads (along with trace length) is at fault.

    Robert
    :shrug:
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I've soldered PGC/PGD right at the 16F628A in-circuit with the same 0000 error.

    I'm also using an external power supply for the circuit, the same supply I used when this was on breadboard.

    I don't think this is a configuration problem either 'cause I made sure to breadboard this circuit beforehand. This was the 1st time I upgraded a 16F628 to a 16F628A and I wanted to be sure of the configuration settings.

    Frustrating, and I'm sure it's not hard to fix this either...

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie
    > ... Check the programming pin MCLR on the PIC... you should have some 13.5v on it (unless you're using Low Voltage Programming) - if this varies or drops it will cause the PIC not to program correctly. Plug-in a PIC, hit 'program' and make with the multimeter or scope...

    I couldn't check MCLR so I tricked the PIC. I did READ first then PROGRAM. I got the error again, but this time it programmed after I clicked YES. I didn't really care what it programmed, as long as it went through the routine. I had something like 12.35V on MCLR according to my multimeter.

    I've even tried to Erase manually first before Program, same error.

    I've always used my MeLabs serial programmer, bought it new and never had problems before. Is it possibly fading? I wouldn't mind upgrading to the USB version, but I don't want to spend the money yet if that's not the problem.

    I never a problem for many many PICS; 16F628, 16F877, 18F4550, 18F2550 and 16F628A, all in-circuit too. This is the 1st PIC to give me this error.

    I'm not using low voltage programming either.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    After reading the HELP from the programmer, I checked PGM and it does have 0V.

    I also checked the configuration and see nothing wrong:

    __config _BODEN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON & _WDT_OFF & _LVP_OFF & _MCLRE_ON & _HS_OSC

    This excerpt of the Help file is exactly what is happening to me:

    The device programmed once, but subsequent attempts return a Code Programming Error. - The configuration setting "Low-Voltage Programming" is Enabled. This leaves the device sensitive to a signal or high condition on the low-voltage programming pin (see the Microchip datasheet). To recover from this condition, you must tie the low-voltage programming pin to ground and reprogram the device. Or the device may need to be erased before reprogramming.

    Oh poop...

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I had been using a 9V wall adapter so I upped to 12V and 15V and still had the same error.

    They seemed to top at 12.9V on MCLR.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  9. #9
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I tried a 10K pull-up on MCLR as stated in the programmer Help file instead of a 4K7 as in the PBP manual, same error.

    I added 4K7 pull-up on PGD as described on p. 111 Figure 14-18 of the 16F628A datasheet, same error. I wasn't sure where the pull-up was supposed to go for PGC (what is 'normal connections'?) I tried a 4K7 pull-up on PGC with no difference anyways.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  10. #10
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I've recently downloaded the latest firmware for the MeLabs serial programmer. Now I always get a splash screen to see MeLabs.com for licensing, could this be related with my problem?

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    how about the PGM pin... should be loaded to GND. 1-10k resistor works. [b[]ok i saw you already done[/b]
    how about if you disconnect what is on PGD, PGC,PGM pins then, use a 100-1K resistor to gnd on PGM?

    Try to place your Programmer far of your PIC...
    Last edited by mister_e; - 8th August 2006 at 17:00.
    Steve

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

Similar Threads

  1. Code doesn't work on 16F648A
    By Mr_Joe in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st September 2018, 23:09
  2. Error programming 10F222
    By JoelMurphy in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th July 2009, 16:23
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. "Program Memory Error" with MPLAB IDE (PBP)
    By aggie007 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th November 2007, 20:27
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 18:23

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