Part Number: TMS320F28035
Tool/software: Code Composer Studio
Customer is asking how to use conditional compilation in the code with assemble language, like #if, #endif, #ifdef. Could you pleas help it? Thank you.
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.
Part Number: TMS320F28035
Tool/software: Code Composer Studio
Customer is asking how to use conditional compilation in the code with assemble language, like #if, #endif, #ifdef. Could you pleas help it? Thank you.
Aki,
The corresponding assembly directives are .if and .endif. You can find information on these in chapter 5 of the Assembly Language Tools user's guide:
http://www.ti.com/lit/ug/spru513t/spru513t.pdf
Regards,
Richard
You cannot have .if .else or .endif starting on the first character of a line. You need at least one white-space character before the dot. Put a space or a tab before each one and it should be fine. i.e.
Change:
.if(1)
to:
.if(1)
Regards,
Richard