CMSIS-Build
Tools, software frameworks, and work flows for productivity with CMSIS based projects
|
The command line build environment for projects that are based on the CMSIS-Pack standard requires:
With most Linux distributions these tools are already available. The installation for Windows is explained below.
Required for Windows: Bash
CMSIS-Build tools are available for download among Open-CMSIS-Pack devtools releases.
To install the command line build environment start from the Bash prompt:
This install script queries for:
The file ./cbuild/etc/setup configures the CMSIS command line build environment. It contains the following section that should reflect the actual installation.
File: ./cbuild/etc/setup
The file ./cbuild/etc/setup is used to setup environment variables in Bash using the source command:
Variable | Description |
---|---|
$CMSIS_PACK_ROOT | Directory that contains the software packs in CMSIS-Pack format. |
$CMSIS_COMPILER_ROOT | Directory that contains the Compiler Configuration. |
cbuildgen uses toolchain specific .cmake files that map the CMSIS project settings to the toolchain. For each supported toolchain a .cmake file is provided in the directory ./cbuild/etc and specifies the base directory of the toolchain installation(TOOLCHAIN_ROOT
). In addition other toolchain specific environment variables may be setup here (e.g. license file and product variant). The user is required to update the these settings after installation to reflect the actual installation.
Example file: ./cbuild/etc/AC6.6.16.0.cmake
The toolchain for compilation is defined in project file *.cprj and used by cbuildgen. cbuildgen first searches for the toolchain specific .cmake file in the project directory. If the toolchain specific .cmake file is not present there, it uses the directory where executables are placed.
For Windows the libxml provides an XML processor that provides the functionality of xmllint.
Download the following ZIP files:
Extract the /bin directory of each ZIP file to a directory, for example C:\xmllint and add this directory to the Windows PATH environment variable.
xmllint is also provided by the xsltproc package that can be installed via Chocolatey: