Show suppressed warning on build when using MPLAB IDE


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Show suppressed warning on build when using MPLAB IDE

    Is this a PIC18? if so it's probably just the __CONFIG deprecated messages.

    To see supressed warning just open the PIC .INC file in PBP folder. bellow, a snip of PIC18F2550
    Code:
        ifdef PM_USED
            LIST
            "Error: PM does not support this device.  Use MPASM."
            NOLIST
        else
            LIST
            LIST p = 18F2550, r = dec, w = -311, w = -230, f = inhx32
            INCLUDE "P18F2550.INC"    ; MPASM  Header
            __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
            __CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
            __CONFIG    _CONFIG2L, _PWRT_OFF_2L & _BOR_ON_2L & _BORV_3_2L & _VREGEN_ON_2L
            __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
            __CONFIG    _CONFIG3H, _CCP2MX_ON_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
            NOLIST
        endif
    this one report 6 suppressed warnings... and have 6 __CONFIG lines. Let's confirm what happen in here and let's remove the -w switchs

    Code:
         LIST p = 18F2550, r = dec, f = inhx32
    MPASM output
    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p18F2550 "Test2550.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p18F2550 "Test2550.bas"
    PICBASIC PRO(TM) Compiler 2.60B, (c) 1998, 2011 microEngineering Labs, Inc.
    All Rights Reserved.
    Warning[230] C:\PBP\18F2550.INC 21 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F2550.INC 22 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F2550.INC 23 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F2550.INC 24 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F2550.INC 25 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F2550.INC 26 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Loaded C:\PBP_Prog\Test2550.COF.
    BUILD SUCCEEDED: Thu May 19 12:42:07 2011
    assumption confirmed.

    230 __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

    Although you may still use the __config directive for PIC18 MCU devices, it is strongly recommended that you use the config directive (no leading underscores) instead. For PIC18FXXJ MCUs, you must user the config directive.



    311 Operand of HIGH operator was larger than H'FFFF'.

    High byte of address returned by high directive was greater than 0xFFFF.
    Last edited by mister_e; - 19th May 2011 at 17:48.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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