Regenerate libraries using command line
Note
These steps need to be done, when a user wants to build SDK libraries (or examples) using command line.
Note
Examples are also available as CCS IDE and non-CCS IDE (e.g IAR) projects and can be built from the respective IDEs. Tools mentioned in this section are not required when examples are built from an IDE.
Important
Libraries can only be built from command line. SDK packages the pre-built libraries. But it is recommended to regenerate those in the user environment.
Note
When make is mentioned below, use gmake instead in Windows, if
GNU Make from CCS is being used. See Install GNU Make
Note
In Windows, make sure to run below commands on a powershell command prompt. In Linux, use a bash command prompt. In MacOS, use a zsh command prompt.
Note
All file and folder paths specified are relative to root of the installed SDK folder
Setup SDK for command line build
See Setup SDK for command line build
Enable toolchains to include in build
Edit file {SDK PATH}/imports_am13e230x.mk and mark the variables named {CPU}_{TOOLCHAIN}_BUILD_ENABLE as
y based on your requirements. Keep toolchains not installed or not needed as n.
By default non-TI toolchains are kept as n since they typically need additional
installation and some license setup.
e.g for M33 CPU and IAR or GCC toolchain, do below
M33_IAR_ARM_BUILD_ENABLE?=y
M33_GCC_ARM_BUILD_ENABLE?=y
Note
If you don’t have TI toolchain installed, e.g CCS is not installed, make sure to keep TI toolchain variables as n
Build libraries only
Do below to build libraries. If libraries were previously built this does a incremental build
make all TI_SDK_CMAKE_BUILD_EXE_TARGETS=OFF
Clean all the build files
Do below
make clean