PDA

View Full Version : "Bad bank number"?



circuitpro
- 22nd February 2012, 00:42
Hello,
Just starting a program after quite awhile, and am encountering "Error Line 103: Bad bank number"

Line 103 is just a variable declaration...
X VAR BYTE

The PIC is a PIC18F4685. I'm using PBP 2.60L (PBPL).

I'm sure I must be doing something dumb. I'm just starting and a little rusty.

Thanks!

Art
- 22nd February 2012, 01:02
Sounds like an internal error since PBP is supposed to take care of bank switching.
I wonder if you have exceeded the number of variables available to you.

circuitpro
- 22nd February 2012, 01:08
Hi Art

Wish we could delete dumb posts. Was a typo. Bad character slipped in there way to the right of the screen.
Sorry.

Art
- 22nd February 2012, 14:39
Put a comment character one tab space after every line (whether you actually comment the line or not)
and it can never happen ;)