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.

TMS320C6203B: Conditional section at cmd with precompilation

Part Number: TMS320C6203B

Tool/software:

Hi,

I know that the C6203B is a very old processor but I think this issue could be reproduced in newest versions. I do not want to focus it on the DSP version, so any approach will be apreciated.

Is Is there any way to make a conditional section inside the .CMD file of your main project based on a precompilation variable defined at your .pjt?

Something like this:

SECTIONS
{
    #ifdef LIBRARY_DEFINED
    .text_sdram_code:   
    {  
    	library.lib (.text)
    }	>	SDRAM_CODE
    #endif
}

["Compiler" Settings: "Debug"]
Options=-q -fg -fr".\Debug" -d"LIBRARY_DEFINED" -ml3

Regards