Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.6.pdf
Скачиваний:
43
Добавлен:
23.08.2013
Размер:
2.64 Mб
Скачать

Sample Applications

C.2 Building projects

A single CodeWarrior project file is supplied for each example application. These project files have an .mcp file extension. Project files can be used to build one or more targets.

All project files build a target supporting 16-bit Thumb code for a little-endian system, full debug and Ethernet connectivity. Some project files also provide a second target that uses PPP rather than the Ethernet drivers.

Note

Take care when selecting options in CodeWarrior, as any changes made are saved immediately to the project file. If the project file is closed and reopened, any changes made in the earlier invocation persist. For more information on using CodeWarrior, see the ADS CodeWarrior IDE Guide.

C.2.1 Project files

The project files must be opened with CodeWarrior. There are two ways to open the files:

Select the project file from Windows Explorer, assuming that the appropriate Open With link to CodeWarrior is made.

Run CodeWarrior, and select the Project File from the File Open menu option.

When the project is open, a project window is displayed. If there is more than one target, use the drop-down list to select the target required (PPP or Ethernet).

You can then build the executable image by selecting Make from the Project menu, or pressing Function Key F7.

C.2.2 Project folders

Working folders are used for each project. These are created for each CodeWarrior project when it is loaded in the folder containing the .mcp file. The folder has the same name as the project file, with _Data appended. Another sub-folder is also created for each target in the project. This holds the executable .axf and another folder that contains the object files for the target.

C.2.3 Cleaning up after a build

To clean up completely after a build, delete the folder called target_Data from the folder containing the project file.

ARM DUI 0144B

Copyright © 1998-2001 ARM Limited. All rights reserved.

C3