SDK provides ability to define symbols as macros with the -D option. These
defined symbols will be added for the preprocessing tools after attaching SDK to the project.
- Contributed SDK: the defined symbols list is read-only. Select SDK from the list on the
SDK Management page, click Edit/Show info...
and open the Symbols tab.
- Custom SDK: you can define symbols while creating a new SDK. If you need to specify the
symbol type, edit the SDK descriptor. When you export an SDK, the
sources.xml file with the SDK descriptor is generated automatically
and included in the archive. Open this file, make changes and import the updated version.

There are four types of symbols:
- Common symbols. This type of symbols is declared for both the C/C++ Compiler and
Assembler tools. Common symbols can be defined in two ways:
- as comma-separated list in the symbols attribute of the
sdk
element
<sdk ... symbols="CPU_S32K144HFT0VLLT1, CPU_S32K144HFT0VLLT2"/>
- as comma-separated list in the value attribute of the
commonSymbols
element
<sdk ...>
<commonSymbols value="CPU_S32K144HFT0VLLT1, CPU_S32K144HFT0VLLT2"/>
...
</sdk>
You can choose the most convenient way or use both, because the resulting list of
the defined symbols will include all of them except duplicates.
- Symbols for the C Compiler tool. This type of symbols is declared only for the C
Compiler tool as comma-separated list in the value attribute of the
cCompilerSymbols
element
<sdk ...>
<cCompilerSymbols value="CPU_S32K144HFT0VLLT3, CPU_S32K144HFT0VLLT4"/>
...
</sdk>
- Symbols for the C++ Compiler tool. This type of symbols is declared only for the C++
Compiler tool as comma-separated list in the value attribute of the
cppCompilerSymbols
element
<sdk ...>
<cppCompilerSymbols value="CPU_S32K144HFT0VLLT5"/>
...
</sdk>
- Symbols for the Assembler tool. This type of symbols is declared only for the Assembler
tool as comma-separated list in the value attribute of the
assemblerSymbols
element
<sdk ...>
<assemblerSymbols value="CPU_S32K144HFT0VLLT6, CPU_S32K144HFT0VLLT7"/>
...
</sdk>