onARM
Back to the download list

File: CMSIS 2.1 Patch5: Templates for GCC ARM Embedded (4.6)

ARM has released GCC ARM Embedded 4.6. This patch contains the generic startup and linker-script template files for this compiler:

  • startup_ARMCMx.S
  • gcc_arm.ld

There is a set of files per Cortex-M core. Extract the archive into the CMSIS root folder. The templates are copied into the Device\ARM\ARMCMx\Source\Templates\GCC_ARM\ subdirectory.

Migration of an existing example project file from Code Sourcery GCC to GCC ARM Embedded 4.6

  1. Copy gcc_arm.ld and startup_ARMCMx.S from the template folder into your project folder (e.g. ...\CMSIS\DSP-Lib\Examples\arm_class_marks_example\GCC).
  2. Open the project file in uVision (e.g. arm_cortexM3l_class_marks_example.uvproj).
  3. Open the Components, Environment and Books dialog - select Folders/Extensions tab and configure the GNU-Tool Folder to point to your GCC ARM Embedded tools installation root folder.
  4. Open the Target Options dialog - select the Linker tab - set the linker script to point to .\gcc_arm.ld
  5. Right click on the file: startup_ARMCMx.S in the project window and select the Options for File ... menu. Set the File Type to C Source file.
    Note: This setting ensures that the startup file gets passed on to the preprocessor instead of the assembler.
  6. Rebuild all target files.

Name CMSIS_2_10_Patch5.zip
Version v2.10 patch5 (22 December 2011)
Size 12 Kb