CrossStudio's New Project Wizard simplifies the creation of projects for the ATMEL AT91SAM7 by creating a project with the appropriate project settings, memory map files and startup files. See Creating a New Project for more information on creating projects.

To create a new ATMEL AT91SAM7  project

CrossStudio for ARM supports the ATMEL AT91SAM7 running applications from both RAM and FLASH.

To build and debug an application running from RAM
To build and debug an application running from FLASH

The following sections describe the ATMEL AT91SAM7 support in more detail. See ARM Target Support for more information.

Memory Map Files

Default memory map files have been provided in the $(StudioDir)/targets/ATMEL_AT91SAM7 directory for each member of the AT91SAM7 family. These files are used to describe the memory layout of the target and is used for linking and debugging. The placement of program sections within the memory map for both RAM and FLASH configurations is described by the non-target-specific default memory maps $(StudioDir)/targets/flash_placement.xml and $(StudioDir)/targets/sram_placement.xml.

The Build | Target Processor project property specifies which of the AT91SAM7 family memory map files are used.

Target Startup Code

The default startup code is in $(StudioDir)/targets/ATMEL_AT91SAM7/AT91SAM7_Startup.s. It contains the exception vectors and the default exception handlers. The FLASH version of the code (specified by defining __FLASH_BUILD) is also responsible for configuring memory to match the above memory map and copying the exception vectors into RAM.

FLASH Loader

In order for the FLASH loader program to work reliably, it needs to know the target's oscillator frequency. The default oscillator frequency value is 50Mhz, for targets with a different oscillator frequency the value (in Hertz) should be specified in the Target | Loader Parameter project property.