Show suppressed warning on build when using MPLAB IDE
I am using PicBasic Pro 2.60C (just got it) with MPLAB IDE v8.63 because I only have the MicroChip PicStart programmer.
When I build my project the MPASM v5.39 window comes up and reports everything was successful however it reports 4 suppressed warnings.
How do I see what the warnings are??
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
Quote:
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.
Quote:
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.
Re: Show suppressed warning on build when using MPLAB IDE
Hi reppig,
If it is a line item error, open the MyProgram.asm file (MyProgram being your program's name) and scroll down to the line indicated to see what offends the assembler. The file will be in the same directory as your .pbp or .bas file.
edit OOPs . . . you did say mplab, not mcs . . . my bad.
Re: Show suppressed warning on build when using MPLAB IDE
[QUOTE=mister_e;102997]Is this a PIC18? if so it's probably just the __CONFIG deprecated messages.]
You were right. I just wanted to know what was happening - I don't like warnings. Thank you