Searching \ for '[PIC]: Message[302] from MPLAB.' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'Message[302] from MPLAB.'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Message[302] from MPLAB.'
2002\09\07@115832 by

flavicon
face
Hi.
I'm getting "Message[302]" messages from MPLAB when asambling
the following code. I'm not sure why I get this, I can't
find any error(s). Anyone seeing anything wrong ?
This is part of the startup of a larger program, and
there is no problem with the program, it runs as intended.
Using MPLAB 5.70.00.

Jan-Erik Söderholm.

--------------------- Code starts here --------------
       list p=16f84a
       #include <p16f84a.inc>
       __CONFIG        0x3FF3
       org     0x00            ;Reset Vector
       goto    START
       org     0x05            ;Start Program
START
       clrf    PORTB           ;Clear PortB (LED's off)
       bsf     STATUS, RP0     ;Select Bank 1
       clrf    trisb           ;Set PortB as output
       bsf     trisa, ra0
       bsf     trisa, ra1
       bcf     STATUS, RP0     ;Select Bank 0
       END
--------------------- Code ends here -----------------

------- Output in the error window in MPLAB ----------
Building BANKTEST.ASM...

Command line: "C:\PROGRAM\MPLAB\MPASMWIN.EXE /e+ /x- /c- /p16F84A   /q BANKTEST.ASM"
Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 11 : Register in operand not in bank 0.  Ensure that bank bits are correct.
Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 12 : Register in operand not in bank 0.  Ensure that bank bits are correct.
Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 13 : Register in operand not in bank 0.  Ensure that bank bits are correct.

Build completed successfully.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2002\09\07@123048 by Clayton Mellina

picon face
       You can ignore it. It is not an error. MPLAB just wants to make sure that
you have the bank select bits correct for accessing the intended register.
The code is fine.
Good Luck!

{Original Message removed}

2002\09\07@124028 by Rick C.

flavicon
face
Put this line near the top of your code:
<tab>errorlevel<tab>-302

Rick

Jan-erik Söderholm (QAC) wrote:

{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


2002\09\07@130529 by Rick C.

flavicon
face
A further discussion can be found in the Piclist Archive. To summarize, you can suppress any messages with the command I
posted.

According to the MPASM Users Guide, there are three returns when compiling your code. Messages, Warnings, and Errors.

A Message is just a note or comment and should be understood and noted.

A Warning is a slap on the wrist. You should understand what you did (wrong), and try to fix it. It may run within your
project.

An Error is just what it says. You must fix the error before proceeding. MPLAB will not continue or create a hex file.

I don't recommend suppressing any messages until your written code is almost complete. You may be blocking a legitimate
message that could come back to haunt you.

Once everything is working and you want to print a clean listing, suppress the messages, recompile and print.

Rick

"Rick C." wrote:

{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body


2002\09\07@144453 by

flavicon
face
Thanks !
Works as expected (of course)...

Jan-Erik.

-----Original Message-----
From: Rick C. [@spam@rixyKILLspamspamVVALLEY.COM]
Sent: den 7 september 2002 18:38
To: KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU
Subject: Re: [PIC]: Message[302] from MPLAB.


Put this line near the top of your code:
<tab>errorlevel<tab>-302

Rick

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2002\09\07@161210 by Olin Lathrop

face picon face
> Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 11 : Register in operand not in
bank 0.  Ensure that bank bits are correct.

This is a useless warning message.  It happens whenever you access a
register that MPASM knows is not in bank 0.  It thinks that since it's not
in bank 0 you might have forgotten to set the bank bits, and is warning you
so that you can check them.  Of course that warning applies equally most
references because the bank bits still need to be correct for a bank 0
register too.  The only time the bank bits don't matter is when accessing
one of the special registers that is mapped to all banks, like INTCON, or
when accessing the last 16 bytes in a bank that are mapped to common memory
on some PICs.

I have my preprocessor filter out this and other useless messages, but I
think there is a way to selectively disable messages directly in MPASM too.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamBeGonelistservspamBeGonespammitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...