CrossStudio's New Project Wizard simplifies the creation of projects for the Analog ADuC7020 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 Analog ADuC7020 project

- Select the File | New | New Project menu item.
- Select Analog ADuC7020 Projects from the Project Type list.
- Select the required project template type from the Templates list.
- Set the required project name and location directory.
- Click OK.

CrossStudio for ARM supports the Analog ADuC7020 running applications from both RAM and FLASH.

##### To build and debug an application

- Select the project to work on by using the Project | Set Active Project menu option.
- Select the configuration you require by using the Build | Set Active Build Configuration menu option.
- Build the project by using the Build | Build Project menu option.
- Connect to the appropriate target in the target window.
- Download and start debugging the current project by using Debug | Start Debugging.

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

### Memory Map Files

The default memory map file $(StudioDir)/targets/Analog_ADuC7020/Analog_ADuC7020_MemoryMap.xml has been provided. This file is 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 memory segment layout for both configurations is the same and is described in the following table:

Type | Description | Start Address | End Address
SRAM | Internal SRAM | 0x00010000 | 0x00011FFF
FLASH | Internal FLASH | 0x00080000 | 0x0008FFFF

The internal SRAM is also mapped to address 0x00000000 in both RAM and FLASH configurations in order to allow the exception vectors to be modified at runtime.

### Target Startup Code

The default startup code is in $(StudioDir)/targets/Analog_ADuC7020/Analog_ADuC7020_Startup.s. It contains the exception vectors, target specific startup code and the default exception handlers.