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

memory problem

I am facing a problem of memory mapping .I have assigned the xdata start in the startup.a51 file at 0c000H with length 1000h bytes .I have also tried configuring the linker with xdata allocation .Do i need to give the command line syntax everytime for linking my program ,or can i configure it using uv2 editor and how .After successful compilation my linker gives me warnings of xdata memory space overlap at 0x0000 to 0x0013 and 0x6000 to 0x6000.Owing which i am not getting the results .


  • That can result if you have located some fix objects (not relocatable) at the same position.

    If you have a chip like a UART in that location, that chip can have registers with different functions depeding on if you read or write the address.
    So if 0x0000 is your transmit register when you write and your receive register when you read, the overlap doesn't matter.

    That were I usually get that memory overlap, when I assign variables to a fix place to modify registers of a chip.

    Take care.
    Sven