ARM Cortex MX

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(Libraries)
(CMSIS OIL file configuration)
Line 98: Line 98:
   EE_OPT = "__USE_CMSIS_GPIO__";
   EE_OPT = "__USE_CMSIS_GPIO__";
   EE_OPT = "__USE_CMSIS_IOCON__";
   EE_OPT = "__USE_CMSIS_IOCON__";
-
  ...
 
-
 
 
   ...
   ...

Revision as of 12:57, 26 January 2012

Contents

ARM Cortex MX support

ERIKA Enterprise supports ARM Cortex MX microcontrollers. The support for RT-Druid is now available.

The Cortex M0 support includes:

  1. support for IAR and Keil ARM Compilers;
  2. support for single and multi stack configurations;
  3. ISR Type 1 and Type 2 supported;
  4. support for IAR J-Link and Keil ULINK2 Debuggers.

The Cortex M4 support includes:

  1. support for Texas Instruments TMS470 and Keil ARM Compilers;
  2. support for single and multi stack configurations;
  3. ISR Type 1 and Type 2 supported;
  4. support for Texas Instruments Stellaris ICDI and Keil ULINK2 Debuggers.
  • Supported IDEs:
    • IAR Embedded Workbench. (Cortex M0)
    • Texas Instruments Code Composer Studio. (Cortex M4)
    • Keil uVision. (Cortex M0 and Cortex M4)
  • Mode of operation:
    • Mono-stack: The Monostack configuration of the ERIKA Kernel models the fact that all tasks and ISRs in the system share the same stack.
    • Multi-stack HAL: Every task can have its private stack, or it can share it with other tasks.

MCUs

  • The MCUs currently supported are the following:
    • NXP LPC12xx. (Cortex M0)
    • Texas Instruments Stellaris LM4F232xxxx. (Cortex M4)

Boards

  • The boards currently supported are the following:
    • NXP LPCXpresso LPC1227 demo board. (Cortex M0)
    • Texas Instruments Stellaris LM4F232H5QD evaluation board. (Cortex M4)
  • List of functions:
    • Currently the NXP LPCXpresso demo board (Cortex M0) is supported through the CMSIS library.
    • Currently the Texas Instruments Stellaris LM4F232H5QD (Cortex M4) evaluation board is supported through AUTOSAR Drivers.

Choosing compiler

It is possible to choose the path of the compiler in three different ways:

  • environment var:
    • IAR compiler: the IAR_CCDIR variable is able to override the path compiler set in RT-Druid during the build progress.
    • Texas Instruments TMS40 compiler: CCS_INSTALL_ROOT variable is able to override the path compiler set in RT-Druid during the build progress.
    • Keil ARM compiler: ARM_ROOT variable is able to override the path compiler set in RT-Druid during the build progress.
  • configuration file:
    • command line versions of RT-Druid accept a configuration file, usually located at configuration/common_oil.pref.
      This file is in the java properties format (i.e. each line is composed by keyword=value).
      The keyword preference_cortex_m0__path_for_cc_compiler can be used to set the compiler path for Cortex MX.
  • gui:
    • inside eclipse preferences, it is possible to set the path of Cortex MX complier

Download and install

RT-Druid and Erika Enterprise RTOS (version 1.6.0), for Microsoft Windows, can be freely downloaded from the following web address:

Once downloaded, extract all the files contained in it and copy the folder named eclipse in your preferred directory on your PC (a recommended path is: C:\Evidence\). Now, launch the program by double-clicking on the executable eclipse.exeinside the C:\Evidence\eclipse folder and choose the path of your workspace. The workspace is the default working directory in which the projects will be created.


If you want to download only a selected revision of the kernel, open the Cygwin shell and get an anonymous SVN checkout typing this command:

 svn co svn://svn.tuxfamily.org/svnroot/erika/erikae/repos/ee/trunk/ee -r number_of_revision

Note: Cygwin can be downloaded from this web site: http://www.cygwin.com/ To use SVN, the Cygwin SVN package must to be installed using the Cygwin Setup utility.

The Cortex MX plug-in for Eclipse is part of the official distribution of RT-Druid.

Libraries

CMSIS OIL file configuration

To use CMSIS Library with NPX LPCXpresso LPC1227 demo board, the following code is needed in the OS object of the OIL file:

 EE_OPT = "__ADD_LIBS__";
 LIB = ENABLE {
   NAME = "CMSIS";
 };
 EE_OPT = "__USE_LPC12XX_CMSIS_V2__";

It's possible to include all library functions by the following EE_OPT attribute:

 EE_OPT = "__USE_CMSIS_ALL__";

Or include selected library modules functions by the followings EE_OPT attributes:

 EE_OPT = "__USE_CMSIS_SYSCTRL__";
 EE_OPT = "__USE_CMSIS_GPIO__";
 EE_OPT = "__USE_CMSIS_IOCON__";
 ...

AUTOSAR Drivers

To use AUTOSAR Drivers with Texas Instruments Stellaris LM4F232H5QD evaluation board, the following code is needed in the OS object of the OIL file:

 EE_OPT = "__AUTOSAR_R4_0__";

Note: Each driver must have to be enabled individually.

MCU Driver

To enable MCU Driver:

 EE_OPT = "__AS_MCU_DRIVER__";


Examples

See also

Personal tools