11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14<strong>ARM</strong> Target SupportWhen a target specific executable project is created using the Creating a project (page14), the following default files are added to the project:•Target_Startup.s - The Target startup code (page 154)code.•crt0.s - The <strong>CrossWorks</strong> standard Startup code (page 155) code.•Target_MemoryMap.xml - The Memory map files (page 157) file <strong>for</strong> the board.Note that <strong>for</strong> some target's a general linker placement file may not be suitable. Inthese cases there will be two memory map files, one <strong>for</strong> a Flash build and one <strong>for</strong>a RAM build.•flash_placement.xml - The linker placement file <strong>for</strong> a Flash build.•sram_placement.xml - The linker placement file <strong>for</strong> a RAM build.•Target_Target.js - The Target script file (page 159)Initially, shared versions of these files are added to the project, if you want to modifyany these files you should select the file in the project explorer and then click theImport option from the context menu. This will copy a writeable version of the fileinto your project directory and change the path in the project explorer to be that of thelocal file. You will then be able to make changes to the local file without effecting theshared copy of the file.The following list describes the typical flow of a C program created usingCrossStudio's project templates:•The processor starts executing at address 0x0000000 which is the reset exceptionvector. The exception vector table can be found in the Target startup code (page154) code, it is put into the program section .vectorswhich is positioned at address0x00000000 by the Memory map files (page 157) file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!