PICKit2 - warning about configuration words


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default

    OK - first things first.

    Are you compiling with MPASM or the PM assembler ? A look at the Compile and Program Options from the View menu in MCS.

    Here is an example of a config line from a project that uses MPASM:
    @ __CONFIG _CONFIG1H, _IESO_OFF_1H & _FCMEN_OFF_1H & _OSC_INTIO2_1H

    I have also founds that the PicKit2 will complain about this if you do not define every single CONFIG register. I normally define what I know I need to set and leave the rest. It burns and runs fine.

    there are a series of defaults in the .INC file in the PBP folder for each chip.

    For the 16F87 it looks like :
    <code>
    ;************************************************* ***************
    ;* 16F87.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2004 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 01/07/04 *
    ;* Version : 2.45 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F87.INC' ; PM header
    *** device pic16F87, hs_osc, wdt_on, lvp_off, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F87, r = dec, w = -302
    INCLUDE "P16F87.INC" ; MPASM Header
    *** __config _CONFIG1, _HS_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
    NOLIST
    endif
    LIST

    </code>

    It have put *** to hi light the default the compiler will insert. Using PM the program will use the ones you specify in your code rather than the ones in the INC file. Using MPASM you will get warning about over-writing the contents of the CONFIG bits.

    When I moved to MPASM I had to spent a bit of time working out what things were called as some of the names changed. Check out the MPASM INC files to workout what things are called.


    bill

    EDIT: Looking at you original post you are using PM. Just ignore the warnings - its just the PicKit2 being anal about making sure everything is defined.
    Last edited by bcd; - 20th July 2008 at 02:34. Reason: Clarification of original message

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default

    I use PM.

    Thanks for this clarification.

    PICkit2 is really great and I was just wondering about those warning I don't get with other PICs.
    Roger

  3. #3
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Problem with pickit2

    I too sometimes have a problem with pickit2 recognizing the 16f88. It will state that the device is unsupported. It always has a problem with the hex file not having a complete configuration. I gave up using the 16F88 with pickit2.

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


    Did you find this post helpful? Yes | No

    Default

    The missing CONFIG words are because the 16F88 has two CONFIG words.

    When using PM, DEVICE sets CONFIG1 and DEVICE2 sets CONFIG2.
    Code:
    @ DEVICE  HS_OSC, WDT_OFF, PWRT_ON ; etc
    @ DEVICE2 FCMEN_OFF, IESO_OFF
    Quote Originally Posted by botsmaker
    I too sometimes have a problem with pickit2 recognizing the 16f88. It will state that the device is unsupported.
    Hmmm, that's odd.
    No idea for that one.
    <br>
    DT

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    botsmaker, and others... Have any of you out there updated the OS for the pickit2? I havent had any problems with it programming 16F88 or any other pic's...

    Dave Purola,
    N8NTA

  6. #6
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default pickit2 warning

    Just updated application software to 2.61 and updated OS to 2.32. I get the same response. It will recon the device when I connect it, then when I load the hex file I get the warning. "Device Error-hex file not loaded", "Unsupported part". I'm using micro studio and PBP.

  7. #7
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Warning Message

    This is the warning message I get from pickit2

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Thumbs up That's it!

    Quote Originally Posted by Darrel Taylor View Post
    DEVICE sets CONFIG1 and DEVICE2 sets CONFIG2.
    Darrel,

    Where a hell did you find this information? Come on, tell us, you're working for the NSA or ex-KGB people, no?

    Anyway, thanks a lot!!!
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Where a hell did you find this information?
    It's explained in the PM assembler manual. PM.TXT.
    Regards,

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

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


    Did you find this post helpful? Yes | No

    Default

    Bruce knew where it was...

    Quote Originally Posted by flotulopex View Post
    Come on, tell us, you're working for the NSA or ex-KGB people, no?
    I'd tell you, but then I'd have to kill you.
    <br>
    DT

  11. #11
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default maybe he's in the same gang as you

    Brrrrr!!!

    Some freezing sweat drops fall along my back. Okay then, I better never ever ask this question again

    NB: just a shame this info was not in some help file (MCS or PBP); would have been easier to find for me.
    Roger

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 10:54
  2. Warning: Some configuration words not in hex file
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 14th December 2009, 07:25
  3. 16F726 configuration
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 8th February 2009, 18:53
  4. running of page warning and error 16f877
    By earltyso in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th November 2007, 02:05
  5. 16F630 OSCCAL value warning - PICKit2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd September 2007, 20:12

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