This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pointer cannot cross 64k boundary

I have a big problem with the compiler. It cannot point to the correct location. When I declared a pointer to a structure in EEPROM and try to access a member within it, the member pointed to is incorrect. Seems that it cannot add the offset address to the base address of the structure correctly especially when we are at the boundary of a sector/segment.

Has anyone encountered this? Any quick fix?

Eg,

struct A
{ char x; int y;
}

A EEPROM* Var;

Var->y

Parents
  • "Doesn't folding specifically mean something that reaches a limit, and then reverses direction?"

    No, I don't think there is any such specific definition!

    I took Erik's "fold" to mean "wrap" - I'm sure he'll clarify...

    "An example is a digital filter..."

    Maybe "folding" does have a specific meaning in the specific context of digital filters...

Reply
  • "Doesn't folding specifically mean something that reaches a limit, and then reverses direction?"

    No, I don't think there is any such specific definition!

    I took Erik's "fold" to mean "wrap" - I'm sure he'll clarify...

    "An example is a digital filter..."

    Maybe "folding" does have a specific meaning in the specific context of digital filters...

Children