PICKit2 - warning about configuration words


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938

    Default PICKit2 - warning about configuration words

    Hello,

    I'm using a 16F88 PIC and every time I program it with my PICKit2, I get this warning:
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2744&stc=1&d=121630516 0">
    The programming will succeed anyway.

    My prog starts like this:
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2746&stc=1&d=121630540 0">

    Something missing/wrong?
    Attached Images Attached Images   
    Roger

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Rtfds !!!

    Hi, Roger

    Generally, you don't care about some fuses cause general use of Pic do not involve their use.

    Each have a DEFAULT setting ( ON or OFF ... type of osc ....)

    Here Pickit just warns you, coz' you didn't care with some ... that's all.

    MPLAB show you the full window ... just look at those you didnt set or clear.

    OR Open the MPLAB 16F88.inc file ( Not the PbP one !!! ) ... you'll find everything there !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,
    Just off the top of my head, doesn't microchip software use MPASM assembler? If so then you need MPASM formatted config statement, or possibly I am all wet
    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.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi Roger,
    Just off the top of my head, doesn't microchip software use MPASM assembler? If so then you need MPASM formatted config statement, or possibly I am all wet
    Yes, but the output of that assembler (be it PM or MPASM) that the PICKIT2 cares about is the .HEX file, which, for all practical purposes, should be identical to each other.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Yes, but the output of that assembler (be it PM or MPASM) that the PICKIT2 cares about is the .HEX file, which, for all practical purposes, should be identical to each other.
    See, I don't have a PICKIT2, and what he posted wasn't hex, therefore my MISTAKE was logical. Sorry Roger. Here is the configs avail. for 16f88:
    Code:
    _CONFIG1                    EQU     H'2007'
    _CONFIG2                    EQU     H'2008'
    
    ;Configuration Byte 1 Options
    _CP_ALL                      EQU     H'1FFF'
    _CP_OFF	                     EQU     H'3FFF'
    _CCP1_RB0		    		 EQU     H'3FFF'
    _CCP1_RB3                    EQU     H'2FFF'
    _DEBUG_OFF                   EQU     H'3FFF'
    _DEBUG_ON                    EQU     H'37FF'
    _WRT_PROTECT_OFF             EQU     H'3FFF'	;No program memory write protection
    _WRT_PROTECT_256             EQU     H'3DFF'	;First 256 program memory protected
    _WRT_PROTECT_2048            EQU     H'3BFF'	;First 2048 program memory protected
    _WRT_PROTECT_ALL             EQU     H'39FF'	;All of program memory protected
    _CPD_ON                      EQU     H'3EFF'
    _CPD_OFF                     EQU     H'3FFF'
    _LVP_ON                      EQU     H'3FFF'
    _LVP_OFF                     EQU     H'3F7F'
    _BODEN_ON                    EQU     H'3FFF'
    _BODEN_OFF                   EQU     H'3FBF'
    _MCLR_ON		   		     EQU     H'3FFF'
    _MCLR_OFF                    EQU     H'3FDF'
    _PWRTE_OFF                   EQU     H'3FFF'
    _PWRTE_ON                    EQU     H'3FF7'
    _WDT_ON                      EQU     H'3FFF'
    _WDT_OFF                     EQU     H'3FFB'
    _EXTRC_CLKOUT		    	 EQU     H'3FFF'
    _EXTRC_IO		    		 EQU     H'3FFE'
    _INTRC_CLKOUT                EQU     H'3FFD'
    _INTRC_IO		    		 EQU     H'3FFC'
    _EXTCLK			    		 EQU     H'3FEF'
    _HS_OSC                      EQU     H'3FEE'
    _XT_OSC                      EQU     H'3FED'
    _LP_OSC                      EQU     H'3FEC'
    
    ;Configuration Byte 2 Options
    _IESO_ON                     EQU     H'3FFF'
    _IESO_OFF                    EQU     H'3FFD'
    _FCMEN_ON                    EQU     H'3FFF'
    _FCMEN_OFF                   EQU     H'3FFE'
    I think errors are lines 16,22,23
    Last edited by Archangel; - 18th July 2008 at 03:59.
    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.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    See, I don't have a PICKIT2, and what he posted wasn't hex, therefore my MISTAKE was logical. Sorry Roger. Here is the configs avail. for 16f88:
    No biggie... Most programmer software needs a HEX file to do the actual programming of the PIC itself. I really can't think of any other file type, other than a straight binary file, that a programmer would use.

    If you look in the P16F88.INC file in your MPASM directory, you'll find all of the various config options listed near the end of that file.
    OR...near the beginning of the M16F88.INC file in your PBP directory if your using the PM assembler rather than MPASM.
    Last edited by skimask; - 18th July 2008 at 04:10.

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    I tried to use the config settings as visible in post#5 (original MPASM .INC file). MCS will give me syntax errors when using some of those.

    I.e., instead of "CCP1_RB0", I will have to use "CCPMX_OFF" (see code post #1 for more).

    Then, I compared with the .DEV file found in MPASM too. Looks like this:
    Code:
    # <!-- XML:DCRs:Begin() -->
    cfgbits (key=CONFIG addr=0x2007 unused=0x0)
        field (key=OSC mask=0x13 desc="Oscillator")
            setting (req=0x13 value=0x13 desc="EXTRC-OSC2 as Clock Out" freqmin=32000 freqmax=4000000)
            setting (req=0x13 value=0x12 desc="EXTRC-OSC2 as RA6" freqmin=32000 freqmax=4000000)
            setting (req=0x13 value=0x11 desc="INTRC-OSC2 as Clock Out")
            setting (req=0x13 value=0x10 desc="INTRC-OSC2 as RA6")
            setting (req=0x13 value=0x3 desc="EXTCLK as Port IO" freqmin=32000 freqmax=40000000)
            setting (req=0x13 value=0x0 desc="LP" freqmin=32000 freqmax=200000)
            setting (req=0x13 value=0x1 desc="XT" freqmin=200000 freqmax=4000000)
            setting (req=0x13 value=0x2 desc="HS" freqmin=4000000 freqmax=25000000)
        field (key=WDT mask=0x4 desc="Watchdog Timer" min=1)
            setting (req=0x4 value=0x4 desc="On")
            setting (req=0x4 value=0x0 desc="Off")
        field (key=PUT mask=0x8 desc="Power Up Timer")
            setting (req=0x8 value=0x8 desc="Off")
            setting (req=0x8 value=0x0 desc="On")
        field (key=MCLRE mask=0x20 desc="RA5/MCLR Pin Function Select")
            setting (req=0x20 value=0x20 desc="MCLR")
            setting (req=0x20 value=0x0 desc="RA5")
        field (key=BODEN mask=0x40 desc="Brown Out Detect")
            setting (req=0x40 value=0x40 desc="On")
            setting (req=0x40 value=0x0 desc="Off")
        field (key=LVP mask=0x80 desc="Low Voltage Program")
            setting (req=0x80 value=0x80 desc="Enabled")
            setting (req=0x80 value=0x0 desc="Disabled")
        field (key=CPD mask=0x100 desc="Data EE Read Protect")
            setting (req=0x100 value=0x100 desc="Off")
            setting (req=0x100 value=0x0 desc="On")
        field (key=WRT_ENABLE mask=0x600 desc="Flash Program Write")
            setting (req=0x600 value=0x600 desc="Write Protect Off")
            setting (req=0x600 value=0x400 desc="0000 to 00FF write protected")
            setting (req=0x600 value=0x200 desc="0000 to 07FF write protected")
            setting (req=0x600 value=0x0 desc="0000 to 0FFF write protected")
        field (key=BACKBUG mask=0x800 desc="Background Debug" flags=h)
            setting (req=0x800 value=0x800 desc="Disabled")
            setting (req=0x800 value=0x0 desc="Enabled")
        field (key=CCP1MUX mask=0x1000 desc="CCP1 Mux")
            setting (req=0x1000 value=0x1000 desc="RB0")
            setting (req=0x1000 value=0x0 desc="RB3")
        field (key=CP mask=0x2000 desc="Code Protect")
            setting (req=0x2000 value=0x2000 desc="Off")
                checksum (type=0x0 protregion=0x0-0x0)
            setting (req=0x2000 value=0x0 desc="All")
                checksum (type=0x20 protregion=0x0-0xfff)
    cfgbits (key=CONFIG2 addr=0x2008 unused=0x3ffc)
        field (key=FCMEN mask=0x1 desc="Fail-Safe Clock Monitor Enable")
            setting (req=0x1 value=0x1 desc="Enabled")
            setting (req=0x1 value=0x0 desc="Disabled")
        field (key=IESO mask=0x2 desc="Internal External Switch Over Mode")
            setting (req=0x2 value=0x2 desc="Enabled")
            setting (req=0x2 value=0x0 desc="Disabled")
    # <!-- XML:DCRs:End() -->
    Where's the truth?

    I couldn't find any MCS file about those CONFIG settings syntax correspondances. Maybe the fish is here.
    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, 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