cannot write to PIC


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62

    Default cannot write to PIC

    Hello,
    I am using a PIC16F877A on a custom board. the issue i am having is that it seems that when i compile code and load it .. everything is fine and its all successful even the verify. but when i read the chip its empty. and blank check confirms that the device is empty. when i try to switch to a different pic it states target device does not match selected device. so it definitely sees my target device, so i do have communication, supposedly.

    any suggestions?
    Is there a config file i have to set?

    Thanks
    There are 10 kinds of people. Those that know binary and those that do not.

  2. #2
    Join Date
    Jul 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    could be many things...
    sometimes I have issue that my MPlab forgot that I want to use power from my ICD2 during programming.
    I have to go back in settings, power tab, and re-check the option.
    You may also watch the power status in that window.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    There are always configs.
    By default PBP uses the *.inc file in the PBP directory. But that probably is not the problem.

    You have not told us about your programmer.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RFEFX View Post
    Hello,
    I am using a PIC16F877A on a custom board. the issue i am having is that it seems that when i compile code and load it .. everything is fine and its all successful even the verify. but when i read the chip its empty. and blank check confirms that the device is empty. when i try to switch to a different pic it states target device does not match selected device. so it definitely sees my target device, so i do have communication, supposedly.

    any suggestions?
    Is there a config file i have to set?

    Thanks
    Maybe, or not. I have seen this using a JDM style programmer when the wrong COM port is selected, as for it definately seeing the target, maybe not, if it is compiled for 1 chip and a different one is selected, then maybe just the software is throwing the error.
    What programmer and or software are you using? ICSP ? Addendum: The JDM programmers have a jumper you MUST move to do the larger 16F series, as opposed to say a 16F648A.
    Last edited by Archangel; - 23rd September 2010 at 03:19.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Default

    Sorry for leaving out the specifics. i am using pic basic pro with the me labs U2 programmer via ICSP. i have tested the external 20Mhz clock is running.

    i am getting one error once in a while as follows:
    Configuration verify error at 0000
    2FCF should be 2F0E
    Continue Verifying?
    There are 10 kinds of people. Those that know binary and those that do not.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Did code protect get turned on maybe?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Talking > lol <

    Ok.... its been a while since ive used my programmer... and forgot that you actually have to load the .HEX file into the programmer... roflmao,

    sorry bout that.. false alarm. all is working !
    There are 10 kinds of people. Those that know binary and those that do not.

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