11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

There is a Heap Size linker project property, you can modify this property in order toalter the heap size. For compatibility with earlier versions of CrossStudio you can alsospecify the heap size using the heap section's Size property in the section placement ormemory map file.Should your application not require the heap functions, you can remove the heapsection from the memory map file or set the size to 0 and remove the heap initializationcode from the crt0.s file.Memory map filesCrossStudio's memory map files are XML files that are used <strong>for</strong> the followingpurposes:•Linking — Memory map files are used by the linker to describe how to lay out aprogram in memory.•Loading — Memory map files are used by the loader to check that a program beingdownloaded will actually fit into the target's memory.•Debugging — Memory map files are used by the debugger to describe the locationand types of memory a target has. This in<strong>for</strong>mation is used to decide how to debugthe program, <strong>for</strong> example whether to set hardware or software breakpoints onparticular memory location.There are two types of memory map files:•Board Memory Definition - This type of memory map file is used to describe atarget's memory segments. If no Linker Placement file is defined, a Board MemoryDefinition file can also describe how program sections should be laid out within thememory segments.•Linker Placement - This type of memory map file is used to describe how programsections should be laid out in the memory segments described by a Board MemoryDefinition file. As the Linker Placement file does not describe memory addresses,only the mapping between memory segments and program sections, it can be usedas a general means to describe the layout of a program not tied to a particulartarget. A Linker Placementfile does not need to be used if the Board MemoryDefinitionfile contains all the program section in<strong>for</strong>mation.Memory map files can be viewed and edited using CrossStudio's memory map editor,<strong>for</strong> more in<strong>for</strong>mation see Memory map editor (page 89).To use a memory map file, simply add the memory file to a project. You may haveconfiguration specific memory map files by excluding memory map files fromconfigurations as you would any other source file.Chapter 14Memory map files157

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

Saved successfully!

Ooh no, something went wrong!