PICKit2 - warning about configuration words


Results 1 to 27 of 27

Threaded View

  1. #11
    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 01:34. Reason: Clarification of original message

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, 09:54
  2. Warning: Some configuration words not in hex file
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 14th December 2009, 06:25
  3. 16F726 configuration
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 8th February 2009, 17:53
  4. running of page warning and error 16f877
    By earltyso in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th November 2007, 01:05
  5. 16F630 OSCCAL value warning - PICKit2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd September 2007, 19: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