1 # Introduction {#mainpage}
3 The **CMSIS** (Common Microcontroller Software Interface Standard) is a set of APIs, software components, tools, and workflows that help to simplify software re-use, reduce the learning curve for microcontroller developers, speed-up project build and debug, and thus reduce the time to market for new applications.
5 CMSIS started as a vendor-independent hardware abstraction layer Arm® Cortex®-M based processors and was later extended to support entry-level Arm Cortex-A based processors. To simplify access, CMSIS defines generic tool interfaces and enables consistent device support by providing simple software interfaces to the processor and the peripherals.
7 CMSIS has been created to help the industry in standardization. It enables consistent software layers and device support across a wide range of development tools and microcontrollers. CMSIS is not a huge software layer that introduces overhead and does not define standard peripherals. The silicon industry can therefore support the wide variations of Arm Cortex processor-based devices with this common standard.
9 ## CMSIS Components {#cmsis_components}
11 
13 <h2>CMSIS Base Software Components</h2>
14 - Provide software abstractions for basic level functionalities of a device.
15 - Maintained in the same GitHub repository and delivered as a bundle in \ref cmsis_pack.
18 <span class="tileh h2">CMSIS-Core</span><span class="tiletxt">Standardized access to Arm Cortex processor cores</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS_6/latest/Core/html/index.html">Guide</a> | <a href="https://github.com/ARM-software/CMSIS_6">GitHub</a></span>
21 <span class="tileh h2">CMSIS-Driver</span><span class="tiletxt">Generic peripheral driver interfaces for middleware</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS_6/latest/Driver/html/index.html">Guide</a> | <a href="https://github.com/ARM-software/CMSIS_6">GitHub</a></span>
24 <span class="tileh h2">CMSIS-RTOS2</span><span class="tiletxt">Common API for real-time operating systems</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS_6/latest/RTOS2/html/index.html">Guide</a> | <a href="https://github.com/ARM-software/CMSIS_6">GitHub</a></span>
28 <h2>CMSIS Extended Software Components</h2>
29 - Implement specific functionalities optimized for execution on Arm processors.
30 - Maintained in separate GitHub repositories and delivered in standalone CMSIS-Packs.
33 <span class="tileh h2">CMSIS-DSP</span><span class="tiletxt">Collection of optimized compute library for embedded systems</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-DSP/latest/">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-DSP">GitHub</a></span>
36 <span class="tileh h2">CMSIS-NN</span><span class="tiletxt">Collection of efficient and optimized neural network kernels</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-NN/latest/">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-NN">GitHub</a></span>
39 <span class="tileh h2">CMSIS-View</span><span class="tiletxt">Event Recorder and Component Viewer technology</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-View/latest/">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-View">GitHub</a></span>
42 <span class="tileh h2">CMSIS-Compiler</span><span class="tiletxt">Retarget I/O functions of the standard C run-time library</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-Compiler/latest/">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-Compiler">GitHub</a></span>
47 - Provide useful utilities for software development workflows with CMSIS-based components.
48 - Maintained in separate GitHub repositories.
51 <span class="tileh h2">CMSIS-Toolbox</span><span class="tiletxt">A set of command-line tools to work with software packs</span><span class="tilelinks"><a href="https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/README.md">Guide</a> | <a href="https://github.com/Open-CMSIS-Pack/cmsis-toolbox">GitHub</a></span>
54 <span class="tileh h2">CMSIS-Stream</span><span class="tiletxt">Peripheral description of a device for debug view</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-Stream/latest/">Guide</a> | <a href="https://github.com/ARM-software/cmsis-stream">GitHub</a></span>
57 <span class="tileh h2">CMSIS-DAP</span><span class="tiletxt">Firmware for debug units interfacing to CoreSight Debug Access Port</span><span class="tilelinks"><a href="https://arm-software.github.io/CMSIS-DAP/latest/">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-DAP">GitHub</a></span>
60 <span class="tileh h2">CMSIS-Zone</span><span class="tiletxt">Defines methods to describe system resources and to partition them</span><span class="tilelinks"><a href="">Guide</a> | <a href="https://github.com/ARM-software/CMSIS-Zone">GitHub</a></span>
65 <h2>CMSIS Specifications</h2>
66 - Define methodologies and workflows for embedded software development.
69 <span class="tileh h2">CMSIS-Pack</span><span class="tiletxt">Delivery mechanism for software components and device/board support</span><span class="tilelinks"><a href="https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/index.html">Guide</a> | <a href="https://github.com/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec">GitHub</a></span>
72 <span class="tileh h2">CMSIS-SVD</span><span class="tiletxt">Peripheral description of a device for debug view</span><span class="tilelinks"><a href="">Guide</a> | <a href="">GitHub</a></span>
76 ## Benefits {#benefits}
78 The benefits of the CMSIS are:
80 - CMSIS reduces the learning curve, development costs, and time-to-market. Developers can write software quicker through a
81 variety of easy-to-use, standardized software interfaces.
82 - Consistent software interfaces improve the software portability and re-usability. Generic software libraries and
83 interfaces provide consistent software framework.
84 - It provides interfaces for debug connectivity, debug peripheral views, software delivery, and device support to reduce
85 time-to-market for new microcontroller deployment.
86 - It allows to use the compiler of your choice, as it is compiler independent and thus supported by mainstream compilers.
87 - It enhances program debugging with peripheral information for debuggers and ITM channels for printf-style output.
88 - CMSIS is delivered in CMSIS-Pack format which enables fast software delivery, simplifies updates, and enables consistent
89 integration into development tools.
90 - CMSIS-Zone will simplify system resource and partitioning as it manages the configuration of multiple processors, memory
91 areas, and peripherals.
92 - Continuous integration is common practice for most software developers nowadays. CMSIS-Build supports these workflows
93 and makes continuous testing and validation easier.
95 ## Development {#development}
97 CMSIS is defined in close cooperation with various silicon and software vendors and provides a common approach to interface
98 to peripherals, real-time operating systems, and middleware components. It is intended to enable the combination of software
99 components from multiple vendors.
101 CMSIS is open-source and collaboratively developed. The repository for the base components is [github.com/Arm-software/CMSIS_6](https://github.com/ARM-software/CMSIS_6).
103 ## CodingRules {#coding_rules}
105 The CMSIS uses the following essential coding rules and conventions:
107 - Compliant with ANSI C (C99) and C++ (C++03).
108 - Uses ANSI C standard data types defined in \b <stdint.h>.
109 - Variables and parameters have a complete data type.
110 - Expressions for \c \#define constants are enclosed in parenthesis.
111 - Conforms to MISRA 2012 (but does not claim MISRA compliance). MISRA rule violations are documented.
113 In addition, the CMSIS recommends the following conventions for identifiers:
115 - **CAPITAL** names to identify Core Registers, Peripheral Registers, and CPU Instructions.
116 - **CamelCase** names to identify function names and interrupt functions.
117 - **Namespace_** prefixes avoid clashes with user identifiers and provide functional groups (i.e. for peripherals, RTOS, or DSP Library).
119 The CMSIS is documented within the source files with:
120 \li Comments that use the C or C++ style.
121 \li <a href="https://www.doxygen.nl/" target="_blank">Doxygen</a> compliant <b>function comments</b> that provide:
122 - brief function overview.
123 - detailed description of the function.
124 - detailed parameter explanation.
125 - detailed information about return values.
127 Doxygen comment example:
131 * @brief Enable Interrupt in NVIC Interrupt Controller
132 * @param IRQn interrupt number that specifies the interrupt
134 * Enable the specified interrupt in the NVIC Interrupt Controller.
135 * Other settings of the interrupt such as priority are not affected.
139 ## Validation {#validation}
141 The various components of CMSIS are validated using mainstream compilers. To get a diverse coverage,
142 Arm Compiler v6 (based on LLVM front-end) and GCC are used in the various tests. For each component, the
143 section **Validation** describes the scope of the various verification steps.
145 CMSIS components are compatible with a range of C and C++ language standards. The CMSIS components comply with the
146 [Application Binary Interface (ABI) for the Arm Architecture](https://github.com/ARM-software/abi-aa). This ensures
147 C API interfaces that support inter-operation between various toolchains.
149 As CMSIS defines API interfaces and functions that scale to a wide range of processors and devices, the scope of
150 the run-time test coverage is limited. However, several components are validated using dedicated test suites
151 (<a href="../../Driver/html/driverValidation.html">CMSIS-Driver</a>,
152 and <a href="../../RTOS2/html/rtosValidation.html">CMSIS-RTOS v2</a>).
154 The CMSIS source code is checked for MISRA C:2012 conformance. MISRA deviations are documented with
155 reasonable effort, however Arm does not claim MISRA compliance as there is today for example no guideline enforcement
156 plan. The CMSIS source code is not checked for MISRA C++:2008 conformance as there is a risk that it is incompatible
157 with C language standards, specifically warnings that may be generated by the various C compilers.
159 ## License {#License}
161 CMSIS is provided free of charge by Arm under the <a href="https://raw.githubusercontent.com/ARM-software/CMSIS_6/main/LICENSE">Apache 2.0 License</a>.