Code programming error at 0000


Closed Thread
Results 1 to 40 of 42

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Re: Code programming error at 0000

    Hi miragabe,

    In most programmers the MCLR pin will go to about 13 volts only during programming (for just a few seconds after clicking the program button). Are you able to program any other PIC or is it just a particular PIC18F458 giving trouble?

  2. #2
    Join Date
    May 2012
    Location
    OKLAHOMA, USA
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Code programming error at 0000

    Hi Shahidali55,
    Thanks for your response. Been on this project now for quite some time, and needless to say it has been very frustrating. This is the first PIC I've been given to work with, to get a noritake VFD to come on. When I downloaded the EPIC WIN program and set the board and port voltages to 16V and 5V respectively, the programs uploaded, according to the run response; now it doesnt. The program bar tells me it erases and blank checks, but this error pops up on programming. Is there some kind of limit to the number of times the chip can be programmed? I would think not. I mean like I even rewired everything from scratch according to the program, powered up and still nada.
    What do you make of that?
    Dave.

  3. #3
    Join Date
    May 2012
    Location
    OKLAHOMA, USA
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Code programming error at 0000

    ...Another thing, I monitored the MCLR pin while the blankcheck was taking place during programming, and it never got up to the 13 V expected; it stayed at about 5V.

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


    Did you find this post helpful? Yes | No

    Default Re: Code programming error at 0000

    I doubt you have hit a limit count, never heard of one for 16F or 18F PICs. You can always check the datasheet for your particular model. If there is a limit, it will be mentionned.

    Totally wild guess, could this have anything to do with a write-protected chip? The first write went well and any further write is refused?

    Robert

  5. #5
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default Re: Code programming error at 0000

    Hi Dave,

    According to the datasheet, the number of erase/write cycles this chip can take is 100,000. So this cannot be as to why you are seeing the error.
    Can you check if the MCLR pin goes to about 13v on clicking the program button without the chip in the programmer ?

    There are three common reasons as to why you could get the error:
    1) Damaged serial cable
    2) Damaged PIC
    3) The PIC was programmed the first time selecting Internal Oscillator with MCLR pin function disable.

    The third one may be the one causing the trouble for you.

    Also, write protecting a chip will not prevent it from erasing and re-writing.
    Just to eliminate any programmer faults, you can try with a new (never programmed before) chip.
    If this works, then your programmer does not provide VPP before VDD during programming.

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, 22:09
  2. Error programming 10F222
    By JoelMurphy in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th July 2009, 15:23
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. "Program Memory Error" with MPLAB IDE (PBP)
    By aggie007 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th November 2007, 19:27
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17: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