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

    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!

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

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

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

  5. #5
    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.

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


    Did you find this post helpful? Yes | No

    Default

    At first it was about 6-12 inches of combined cables and traces, now 4-6 inches, no difference.

    So I got another unit and soldered thru-hole components directly onto the legs and everything worked fine for several programming cycles. At least I know the programmer can indeed program a 16F628A SOIC in-circuit (not that it should make any difference from a PDIP unit).

    I will replace the oscillator and capacitors on the circuit. If that doesn't make a difference I will solder this 'working' unit onto the circuit.

    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

    By the time I removed the 'working' 16F628A from the temporary circuit I totally forgot about the plan to replace the oscillator first.

    I removed the unworking 16F628A from the circuit and put in the tested unit and everything fired up as expected. I was able to reprogram it several times too, so no idea what was the exact cause of the 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!

  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 : 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