From 96d6da4e252b06dcfdc041e7df23e86161c33007 Mon Sep 17 00:00:00 2001 From: rihab kouki Date: Tue, 28 Jul 2020 11:24:49 +0100 Subject: Official ARM version: v5.6.0 --- docs/Core/html/using_pg.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'docs/Core/html/using_pg.html') diff --git a/docs/Core/html/using_pg.html b/docs/Core/html/using_pg.html index b82e1c9..69b9a73 100644 --- a/docs/Core/html/using_pg.html +++ b/docs/Core/html/using_pg.html @@ -32,7 +32,7 @@ Logo
CMSIS-Core (Cortex-M) -  Version 5.1.2 +  Version 5.3.0
CMSIS-Core support for Cortex-M processor-based devices
@@ -113,12 +113,12 @@ $(document).ready(function(){initNavTree('using_pg.html','');});

To use the CMSIS-Core (Cortex-M) the following files are added to the embedded application:

-
Note
The files Startup File startup_<device>.s and System Configuration Files system_<device>.c and system_<device>.h may require application specific adaptations and therefore should be copied into the application project folder prior configuration. The Device Header File <device.h> is included in all source files that need device access and can be stored on a central include folder that is generic for all projects.
-

The Startup File startup_<device>.s is executed after reset and calls SystemInit. After the system initialization control is transferred to the C/C++ run-time library which performs initialization and calls the main function in the user code. In addition the Startup File startup_<device>.s contains all exception and interrupt vectors and implements a default function for every interrupt. It may also contain stack and heap configurations for the user application.

+
Note
The files Startup File startup_<device>.c (or Startup File startup_<device>.s (deprecated)) and System Configuration Files system_<device>.c and system_<device>.h may require application specific adaptations and therefore should be copied into the application project folder prior configuration. The Device Header File <device.h> is included in all source files that need device access and can be stored on a central include folder that is generic for all projects.
+

The Startup File startup_<device>.c (or Startup File startup_<device>.s (deprecated)) is executed after reset and calls SystemInit. After the system initialization control is transferred to the C/C++ run-time library which performs initialization and calls the main function in the user code. In addition the Startup File startup_<device>.c (or Startup File startup_<device>.s (deprecated)) contains all exception and interrupt vectors and implements a default function for every interrupt. It may also contain stack and heap configurations for the user application.

The System Configuration Files system_<device>.c and system_<device>.h performs the setup for the processor clock. The variable SystemCoreClock indicates the CPU clock speed. System and Clock Configuration describes the minimum feature set. In addition the file may contain functions for the memory BUS setup and clock re-configuration.

The Device Header File <device.h> is the central include file that the application programmer is using in the C source code. It provides the following features:

    @@ -129,23 +129,24 @@ $(document).ready(function(){initNavTree('using_pg.html','');});
  • Systick Timer (SYSTICK) function to configure and start a periodic timer interrupt.
  • Debug Access are functions that allow printf-style I/O via the CoreSight Debug Unit and ITM communication.
+

CMSIS-Pack provides the #define CMSIS_header_file in RTE_Components.h which gives you access to this device.h file.

CMSIS_CORE_Files_user.png
CMSIS-Core (Cortex-M) User Files
-

The CMSIS-Core (Cortex-M) are device specific. In addition, the Startup File startup_<device>.s is also compiler vendor specific. The various compiler vendor tool chains may provide folders that contain the CMSIS files for each supported device.

-

For example, the following files are provided in MDK to support the STM32F10x Connectivity Line device variants:

+

The CMSIS-Core (Cortex-M) system files are device specific. In addition, the deprecated Startup File startup_<device>.s (deprecated) is also compiler vendor specific. The versions provided by CMSIS are only generic templates. The adopted versions for a concrete device are typically provided by the device vendor through the according device familiy pack (DFP).

+

For example, the following files are provided by the STM32F10x device family pack:

- + - + - + - +
File Description
".\ARM\Startup\ST\STM32F10x\startup_stm32f10x_cl.s" Startup File startup_<device>.s for the STM32F10x Connectivity Line device variants.
".\Device\Source\ARM\startup_stm32f10x_cl.s" Startup File startup_<device>.s (deprecated) for the STM32F10x Connectivity Line device variants.
".\ARM\Startup\ST\STM32F10x\system_stmf10x.c" System Configuration Files system_<device>.c and system_<device>.h for the STM32F10x device families.
".\Device\Source\system_stmf10x.c" System Configuration Files system_<device>.c and system_<device>.h for the STM32F10x device families.
".\ARM\INC\ST\STM32F10x\stm32f10x.h" Device Header File <device.h> for the STM32F10x device families.
".\Device\Include\stm32f10x.h" Device Header File <device.h> for the STM32F10x device families.
".\ARM\INC\ST\STM32F10x\system_stm32f10x.h" system_Device.h Template File for the STM32F10x device families.
".\Device\Include\system_stm32f10x.h" system_Device.h Template File for the STM32F10x device families.
Note
The silicon vendors create these device-specific CMSIS-Core (Cortex-M) files based on CMSIS-Core Device Templates provide by Arm.

Thereafter, the functions described under Reference can be used in the application.

@@ -160,7 +161,7 @@ CMSIS-Core (Cortex-M) User Files