[218] Address Limit of 7FFh Exceeded
I get this error when compiling, I have just crossed over the 2k barrier.
I have a 16F648A which has 4k of program memory and I'm using PicBasic Pro Compiler 2.46.
Can anyone tell me why I'm getting this error?
Printable View
[218] Address Limit of 7FFh Exceeded
I get this error when compiling, I have just crossed over the 2k barrier.
I have a 16F648A which has 4k of program memory and I'm using PicBasic Pro Compiler 2.46.
Can anyone tell me why I'm getting this error?
Have you told the compiler the correct PIC you're using? 7FFh is 2k, so it looks like it thinks that's the limit.
This is the batch file i use to run PBP.
Is there any reason why -p16F648A wouldn't work?
Code:@echo off
REM - File dir
cd C:\Documents and Settings\Daniel\My Documents\Work\PIC\PicBasic Pro\projects\heat_main\
REM - PIC - Programme name
pbp -p16F648A main
pause
I found the problem.
I had copied
@ DEVICE pic16F648A, INTRC_OSC_NOCLKOUT
@ DEVICE pic16F648A, WDT_ON
etc.
from a pic16F628A example and had forgot to change the pic to a 16F648A.