PDA

View Full Version : PBP - 18F2220 Warning



DenFrod
- 7th February 2007, 22:27
I just upgrated to MicroCode Studio PLus(V2.3.0.0) and PBP 2.47. Now when I complie for my PIC18F2220 I get a warning--
"Warning [221] c:/pbp/18f2220.inc 18:Invalid message number(23)"

Any ideas?

skimask
- 7th February 2007, 22:30
I just upgrated to MicroCode Studio PLus(V2.3.0.0) and PBP 2.47. Now when I complie for my PIC18F2220 I get a warning--
"Warning [221] c:/pbp/18f2220.inc 18:Invalid message number(23)"

Any ideas?

So show us the line that's generating the error...

DenFrod
- 8th February 2007, 13:46
I can't as I don not know. The program 'END' is line 121 and there are no other errors. Thanks

skimask
- 8th February 2007, 19:03
I can't as I don not know. The program 'END' is line 121 and there are no other errors. Thanks

Well then start commenting out lines until the error goes away...
Or do something crazy like look in the datasheets for the assembler (whether it's PM or MPASM) and figure out what Warning 221 means...

BigWumpus
- 8th February 2007, 20:04
Inside the file 18F2220.INC you can find line 18:

LIST p = 18F2220, r = dec, w = -311, w = -230, f = inhx32

(look at the warning message!)

Maybe you are using an old version of the MPASM ? Maybe this old version of MPASM doesn't know message 311 or 230 ?

Bruce
- 8th February 2007, 21:33
MPASM warning #221 = Invalid message number.

The message number specified for displaying or hiding is not a valid
message number.

You either have w = -23 in your header file, or as BigWumpus already
mentioned, you have an old version of MPASM that doesn't recognize
the warning message this entry (w = -230) is trying to disable.

It should look like this;

LIST p = 18F2220, r = dec, w = -311, w = -230, f = inhx32

If that causes an error, then you should update to a newer version of
the MPASM assembler.