1 Attachment(s)
Compiling Errors for pic 18F6520
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
Re: Compiling Errors for pic 18F6520
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???
Re: Compiling Errors for pic 18F6520
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.
Re: Compiling Errors for pic 18F6520
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
Re: Compiling Errors for pic 18F6520
There are several ways. One quick way if you if you are using MCS is to look at the bottom of the editor.