Searching \ for '[PIC]: HT-PICC error message:-(' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'HT-PICC error message:-('.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: HT-PICC error message:-('
2002\08\26@222951 by Salah

flavicon
face
Hello List!
   I am using PICC compiler to write some programms for PICs ...this time
the program is getting large and sometimes I got this Error message :

{

Error[000] file fdtx.obj 204 : Fixup overflow in expression (loc 0x6C4
(0x6AA+26), size 2, value 0xFE6)

}

"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
occured in complex expression."
This is all that was written in the PICC manual about this error .... dose
anyone know how to correct it please....

Best Regards,

Salah.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\08\26@230928 by myke predko

flavicon
face
Hi Salah,

Do you know what statement was causing this problem?

What the error message seems to be saying is that when it was putting the
application hex code together, it was given the task of trying to store a
value that was larger than its destination.  This is where the Byte value
greater than 255 example came from.

Do you have any constant expressions like:

 ByteVariable = 200 + 100;

In this case, the result, 300 will be loaded into "ByteVariable", but it can
only store 255 or less.

myke
{Original Message removed}

2002\08\27@121106 by Dan Henry

picon face
FAQ #34 at http://www.htsoft.com/support/faq.html describes how to deal
with "Fixup errors".

At 12:00 AM 8/27/02 -0400, you wrote:
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\08\27@181456 by Michael Rigby-Jones

flavicon
face
{Quote hidden}

This would have given an "arithmetic overflow in constant expression"
warning, not an error.

Fixup overflow errors usualy occur when you are using pointers, and try to
access a variable in the wrong bank for the specified pointer e.g.:

bank1 char b1var;
bank2 char b2var;

bank1 char *b1pntr;


b1pntr = &b1var;                // ok

b1pntr = &b2var;                // fixup overflow.


Regards

Mike

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\08\27@195521 by Olin Lathrop

face picon face
> Fixup overflow errors usualy occur when you are using pointers, and try to
> access a variable in the wrong bank for the specified pointer e.g.:

A "fixup" error is usually something generated by a linker.  With most
linkers at least, a fixup record is something written to the relocatable
binary that needs work (or fixing) at link time.  All absolute address
references fall in this catagory, for example, because the absolute address
isn't known at assembly time.  Most linkers are smart enough to allow some
limited math to be described in the fixup record, like REMOTEVAR + 3.
MPLINK is definitely on the dumb side, and doesn't support much more than a
simple addition if I remember right.  So, given this context, I would assume
a fixup overflow error means that the resulting expression generated a value
greater than what the field could hold.  I've never run accross such an
error myself.  Usually the assembler weeds out the ones where too much math
is specified.  You get an "expression too complex" message.  Your error must
therefore be something the linker could do except for the value of the
result.  Perhaps something like GOTO REMOTESUB+h'1FFF' could cause such an
error.  Just guessing.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


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