Searching \ for '% build problem with PIC16F877 - bank2%' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/memory.htm?key=bank
Search entire site for: 'build problem with PIC16F877 - bank2'.

_Sub string match.
PICList Thread
'[PICLIST] build problem with PIC16F877 - bank2'
2000\11\08@141850 by Sam Linder

flavicon
face
To all the smart PICers out there:

First let me apologize for the length of this query, but I felt that all of
the information was necessary.

I've got a strange build problem that doesn't make much sense to me and I'm
hoping someone out there can deciper the following data and explain what I'm
doing wrong (yes, I've read the Hi-Tech C Manual and read the Hi-Tech C Help
files). The following lines are lifted straight from the Error Section of
the Hi-Tech C Manual.

fixup overflow in expression *
The linker was asked to relocate (fixup) an item that would not fit back
into the space after relocation. For example this will occur if a byte size
object is initialized with an address that is bigger than 255. This error
occurred in a complex expression.

fixup overflow referencing *
The linker was asked to relocate (fixup) an item that would not fit back
into the space after relocation. For example this will occur if a byte size
object is initialized with an address that is bigger than 255.


In module COMOMAIN.C:
bank2 unsigned int  ui_flowsensor_threshold;

In module COMOSE~1.C:
extern bank2 unsigned int ui_flowsensor_threshold;

My PIC16F877 program is mostly written in C, with a bit of in-line assembly
tossed in as needed. As can be noted from the above lines, the variable
unsigned int  ui_flowsensor_threshold is defined as "living" in bank2 where
there appears to be plenty of room (see RAM Map at end of this email). Yet I
get the error messages seen below and my build fails. If I simply change the
variable to "live" in bank1, I get a successful compile. Que Pasa?


Building COMO.HEX...

Compiling COMOSE~1.C:
Command line: "C:\HT-PIC\BIN\PICC.EXE -q -Gcomo.dbg -D24 -E -ASMLIST -16F877
-C -N -fakelocal C:\HT-PIC\COMO\COMOSE~1.C"
Enter PICC -HELP for help

Compiling COMOMAIN.C:
Command line: "C:\HT-PIC\BIN\PICC.EXE -q -Gcomo.dbg -D24 -E -ASMLIST -16F877
-C -N -fakelocal C:\HT-PIC\COMO\COMOMAIN.C"
Enter PICC -HELP for help

Linking:
Command line: "C:\HT-PIC\BIN\PICC.EXE -q -Gcomo.dbg -INTEL -Ecomo.err
-Mcomo.map -PSECTMAP -16F877 -oCOMO.HEX -N -fakelocal -asmlist COMOSE~1.OBJ
COMOMAIN.OBJ COMO1W~1.OBJ COMODE~1.OBJ "
Error[000] comose~1.obj 134 : Fixup overflow referencing symbol
_ui_flowsensor_threshold (loc 0x19F6 (0x19B2+68), size 1, value 0x110)
Error[000] comose~1.rlf 2575 : Fixup overflow in expression (loc 0x78
(0x78+0), size 1, value 0x110)

MPLAB is unable to find output file "COMO.HEX".

Build failed.



UNUSED ADDRESS RANGES

BANK0            007F-007F
BANK1            00EC-00EF
BANK2            011F-016F
BANK3            0190-01EF
CODE             0800-0804
                 1000-1020
                 1800-1FFF
COMBANK          007F-007F
CONST            0800-0804
                 1000-1020
                 1800-1FFF

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads




More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...