CMSIS-Build
Version 0.10.0 (beta)
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 as an asset of the respective CMSIS Release Version (starting with 5.7.0).
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. |
$CMSIS_BUILD_ROOT | Base directory of the CMSIS command line build tools. |
$MDK_ROOT | Base directory of the MDK installation (optional). |
cbuildgen uses toolchain specific .mak files that map the CMSIS project settings to the toolchain. For each supported toolchain a .mak files 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/ARMCC.6.13.1.mak
The toolchain for compilation is defined in project file *.cprj and used by cbuildgen. cbuildgen first searches for the toolchain specific .mak file in the project directory. If the toolchain specific .mak file is not present there, it uses the directory that is specified by the $CMSIS_BUILD_ROOT environment variable.
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: