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

Address space overflow ?

Dear All,
I have to append new feature to an existing project using msc121xwhen i tried to add a new char variable and compiled it shows...

Address space Overflow
space :xdata
segment:

Finally Target not created ...

How to solve this problem, Any settings has to changed ??

Thanks in Advance ..

Parents Reply Children
  • during compiling it shows...
    Data is 136.5
    xdata is 2029
    code 19579
    Target not created
    No way i can reduce the code..

    My settings are
    Memory model is large
    code rom size is large


    off chip code and off chip xdata is not selected ..What are the other settings required to Build the target ??

  • No way i can reduce the code..

    No direct need to, either. That overflow is on data, not code.

    off chip code and off chip xdata is not selected

    That's your problem, most probably. Without these settings, how is the linker supposed to know your system has more XDATA ram than the on-chip size?

  • No way i can reduce the code..

    If you change the memory model to small and manage the variable locations explicitly you can reduce the code size quite a lot.

    Nonetheless, if the error you get is as you specified:


    Address space Overflow
    space :xdata
    segment:


    The overflow is NOT in the code space but in the XDATA space.

    Jon