Ok, something doesn't make sense. I have an .inc file with my
variable definitions in it as follows
UDATA 0x000
VAR1 RES 1
VAR2 RES 1
VAR3 RES 1
..
..
..
VARn RES 1
I definitely have less than 0xFF (255) variables declared which means
it should fit all nice and snug in the first RAM bank of the
PIC18F2431 that I'm using. Yet when I go to compile/assemble/link it
I get:
MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - section '.udata' can not fit the absolute section. Section
'.udata' start=0x00000000, length=0x000000dc
Errors : 1
What gives? Why can't 0xdc bytes of data fit into 0xff worth of
memory? Did I declare something wrong? Short of using a whole hell
of a lot of EQU statements (shudder), is there another way to make the
linker put all of my variables in Bank 0?
-Will
variable definitions in it as follows
UDATA 0x000
VAR1 RES 1
VAR2 RES 1
VAR3 RES 1
..
..
..
VARn RES 1
I definitely have less than 0xFF (255) variables declared which means
it should fit all nice and snug in the first RAM bank of the
PIC18F2431 that I'm using. Yet when I go to compile/assemble/link it
I get:
MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - section '.udata' can not fit the absolute section. Section
'.udata' start=0x00000000, length=0x000000dc
Errors : 1
What gives? Why can't 0xdc bytes of data fit into 0xff worth of
memory? Did I declare something wrong? Short of using a whole hell
of a lot of EQU statements (shudder), is there another way to make the
linker put all of my variables in Bank 0?
-Will