PDA

View Full Version : Compiling Errors for pic 18F6520



Hylan
- 20th July 2011, 14:18
I modified a working program and the mods were mostly adding a bunch more if/then hserout commands. But then when I compile I get the attached errors.
Mainly "Error[126] Argument out of range" and
"Warning[220] Address exceeds maximum range for this processor"

what do these mean, I haven't seen this before.

Thank you,
Hylan

Hylan
- 20th July 2011, 14:31
Update: I just deleted a chunk of the code (a bunch of the if/then's) and it compiled fine. So it looks like there is a max number???

mister_e
- 20th July 2011, 16:11
High likely you run out of codespace OR you're using some unavailable feature of this PIC in a ASM routine... hard to tell without the code.

Hylan
- 22nd July 2011, 01:50
So how big or how much can my 18F6520 hold and is there a way to tell in PBPro how big you file will be while you're writing the code? Or do you just compile and look at the hex file size?
Thank you,
Hylan

mackrackit
- 22nd July 2011, 02:22
There are several ways. One quick way if you if you are using MCS is to look at the bottom of the editor.