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

Data Too Large

Can some one tell me how to solve the following problem:
When try to compile my code I receive the message: DATA Segment Too Large.
I dont know if its a porblem of the SE - uVision2 or of I making any mistake.
Thanks
Amilcar

Parents
  • Hi, This is you are utilized more than teh available memory.
    In 8051 only 128Byte is direct addressible,
    Some MCU have 256Byte RAm , So you must use
    Byte idata variable to shift this data into idata location , some may have more tahn 256Byte the you use xdata to shift the loaction .

    If you writing a program in C then no problem but if you write in assembly tehn you have to take special care to move your varibel.

Reply
  • Hi, This is you are utilized more than teh available memory.
    In 8051 only 128Byte is direct addressible,
    Some MCU have 256Byte RAm , So you must use
    Byte idata variable to shift this data into idata location , some may have more tahn 256Byte the you use xdata to shift the loaction .

    If you writing a program in C then no problem but if you write in assembly tehn you have to take special care to move your varibel.

Children
No data