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

WARNING L5: CODE SPACE MEMORY OVERLAP

I have an asm file that generates a “WARNING L5: CODE SPACE MEMORY OVERLAP” message.

If I add the following line at the top of the code it compiles OK:

CSEG at 0x4000

But I want the linker to allocate the address so I tried the following:

CSEG

But the warning came back as the asm code is located at 0x0000.

The rest of my project is in “C”.

How do I get the linker to relocate my asm to an unused area of memory?

Terry

Parents
  • I have used CSEG before and sometimes I got odd warnings or errors from the Linker. I can't remember if I got the exact one you mention but my solution was:

    Add the option NOOL to Misc controls in the BL51 Misc Tab in Option for your project. This means No-Overlay, sometimes I think the Linker has trouble working out if one function is called by another and this stops it from trying. It used more memory but solved my problem.

    Hope it helps
    PhilipJ

Reply
  • I have used CSEG before and sometimes I got odd warnings or errors from the Linker. I can't remember if I got the exact one you mention but my solution was:

    Add the option NOOL to Misc controls in the BL51 Misc Tab in Option for your project. This means No-Overlay, sometimes I think the Linker has trouble working out if one function is called by another and this stops it from trying. It used more memory but solved my problem.

    Hope it helps
    PhilipJ

Children
No data