This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28379D: Memory Overlap Does Not Cause Linker Error

Part Number: TMS320F28379D

Tool/software: TI C/C++ Compiler

Greetings,

I have a linker command file with an error in it where two areas ended up overlapped in memory. But this situation did not produce a linker error. The relevant part of the MEMORY piece of the cmd file looks like this:

 

MEMORY

{

   PAGE 0 :

      EXE_RAM : origin = 0x008800, length = 0x001000

 

  PAGE 1 :

      BUFFER  : origin = 0x008800, length = 0x001800

}

As the name implies, EXE_RAM holds code which is executed from RAM. BUFFER is used for buffers, and the code which uses it overwrites the executable code which is placed in EXE_RAM when the system powers up. Obviously, this is an error which I will be fixing. But I would have expected the linker to give me an error.

What do I need to do to have the linker generates an error in this circumstance?

Thank you,

Ed