Code programming error at 0000


Closed Thread
Results 1 to 40 of 42

Hybrid View

  1. #1
    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!

  2. #2
    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!

  3. #3
    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!

  4. #4
    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!

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    The splash screen is on all the download versions of MeLabs programmer software. It shouldn't affect operation.

    Can you program the device you're having problems with in the programmer zif socket?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  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 Bruce
    The splash screen is on all the download versions of MeLabs programmer software. It shouldn't affect operation.
    Good, one hting less to worry about. I'm so confused I can't even remember how I got rid of that last time I upgraded.


    Quote Originally Posted by Bruce
    Can you program the device you're having problems with in the programmer zif socket?
    I would have, but this is SOIC.


    Quote Originally Posted by MisterE
    how about if you disconnect what is on PGD, PGC,PGM pins then, use a 100-1K resistor to gnd on PGM?
    I will try straight to 0V, I think that is what I read last night in the Help, gotta check up on that.


    Quote Originally Posted by MisterE
    Try to place your Programmer far of your PIC
    I think you meant close, and I did, no difference.


    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
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    No i really meant far... not a mile away.. few inches 6-12 inches. i had some issue like that before on breadboard when a programmer was to close of the PIC... kind of interference or sort of...
    Steve

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

  8. #8
    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 : 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