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
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).
Open the project file in uVision (e.g. arm_cortexM3l_class_marks_example.uvproj).
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.
Open the Target Options dialog - select the
Linker tab - set the linker script to point to .\gcc_arm.ld
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.