Configuration error


Closed Thread
Results 1 to 28 of 28

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russ Kincaid View Post
    OK, I tried a 3rd 12F675 and altho I made sure the configuration was xt_osc and not code protected, the program failed with configuration error and when I read the memory, it comes up lp osc and code protected. I don't know what to do except uninstall and re-install the program.
    What programmer are you using?

    The PICKit2 doesn't have an erase button
    Mine does
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Oct 2006
    Location
    Edmonton AB Canada
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Russ,

    Take it to the step where you actually program the chip, press "view" and open the "configuration" window, and post what the settings are, here, would you? I'm interested in what it's telling you.....
    By default, they should match -exactly- the listing in the 12f675.inc file in c:\pbp (or wherever it lives)
    If you've changed them in the config window and saved it, then the saved values will be the default.

    By way of example, you should have an option for setting the osc. The default may be XT, but you can change it to INTOSC and save the settings. Quite handy (I can see Dave cringing right now - sorry) handy if you never plan to use any other compiler...... not so handy if the code needs to be portable.

    I am having quite a time with some code that makes Thomas the Tank Engine look complex. Oddly enough it's a 12f675. AND, the routines are simple and have been used a few times, not precisely the same, but the methodology. Now it won't run. I loaded a working file into the same chip on the same development board and it won't run either. The working file was built last week, and the MeProg software upgraded shortly thereafter.

    Gary

  3. #3
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    Any time I try to program a 12F675, the default configuration is LP osc and code protected.


    If I change the configuration to EXTOSC and NOT PROTECTED and try to program, I get a configuration error.


    Now, when I read the part, the configuration changes to LP osc and code protected.

    I am using the Melabs programmer. I can make a jpg image of the configuration window but don't know how to post it.

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


    Did you find this post helpful? Yes | No

    Default

    Below the message box when you reply there is a "manage attachment" button.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sounds like a programming cable problem.

    If you have nothing connected to the programmer, and try to read back a 12F675, it'll show these configs.

    Code:
    Oscillator      LP
    Watchdog timer  Disabled
    Powerup timer   Enabled
    MCLR Pin        Input Pin
    Brown out       Disabled
    Code protect    Protected
    Data EEPROM     Protected
    And it'll show all 0000's in the code window.

    Check the connections again, especially at the 10-pin connector on the programmer.
    Make sure the connector is alligned correctly.
    <br>
    DT

  6. #6
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    Thanks, Darryl but the connector has not been messed with and it worked OK before. The read does read the hex file that was loaded.
    Attached Images Attached Images  

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    OK, if it reads the memory then it wasn't the cable.

    I am using melabs programmer version 4.01 ...
    You might try the latest version of meProg which is up to version 4.31 now.

    The beta can be downloaded here ...
    http://www.melabs.com/support/progsoft.htm

    hth,
    DT

Similar Threads

  1. Configuration bits and timing
    By Christos_K in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th November 2012, 08:53
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22

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