Creating projects. NXP CodeWarrior Development Studio
Reklaam
Reklaam
Chapter 2 Working with Projects
2.2 Creating projects
This section explains you how to use the CodeWarrior Bareboard Project Wizard to quickly create new projects with default settings (build and launch configurations).
This section explains:
•
Creating CodeWarrior Bareboard Project
2.2.1 Creating CodeWarrior Bareboard Project
You can create a CodeWarrior bareboard application project using the CodeWarrior
Bareboard Project Wizard.
To create a CodeWarrior bareboard application project, perform these steps:
NOTE
For details about the options in the CodeWarrior Bareboard
Project wizard pages, see the topic CodeWarrior Bareboard
1. Select Start > All Programs > Freescale CodeWarrior > CW for StarCore
3900FP vnumber > CodeWarrior IDE, where number is the version number of your product.
The Workspace Launcher dialog box appears, prompting you to select a workspace to use.
NOTE
Click Browse to change the default location for workspace folder. You can also select the Use this as the default and do not ask again checkbox to set default or selected path as the default location for storing all your projects.
2. Click OK.
The default workspace is accepted. The CodeWarrior IDE launches and the
Welcome page appears.
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
Freescale Semiconductor, Inc.
35
Creating projects
NOTE
The Welcome page appears only if the CodeWarrior IDE or the selected workspace is started for the first time.
Otherwise, the Workbench window appears.
3. Click Go to Workbench from the Welcome page.
The workbench window appears.
4. Select File > New > CodeWarrior Bareboard Project Wizard, from the
CodeWarrior IDE menu bar.
The CodeWarrior Bareboard Project Wizard launches and the Create a
CodeWarrior Bareboard Project page appears.
5. Specify a name for the new project in the Project name text box.
For example, enter the project name as
Hello_World
.
6. If you do not want to create your project in the default workspace: a. Clear the Use default location checkbox.
b. Click Browse and select the desired location from the Browse For Folder dialog box.
c. In the Location text box, append the location with the name of the directory in which you want to create your project. In the Location text box, append the location with the name of the directory in which you want to create your project.
NOTE
An existing directory cannot be specified for the project location. If created, the CodeWarrior will prompt an error message.
7. Click Next.
The Processor page appears.
8. Select the target processor for the new project, from the Processor list.
9. Select Application from the Project Output group, to create an application with
.elf extension, that includes information required to debug the project.
10. Click Next.
The Debug Target Settings page appears.
11. Select a supported connection type (hardware, simulator, or emulator), from the
Debugger Connection Types group. Your selection determines the launch configurations that you can include in your project.
12. Select the board you are targeting, from the Board drop-down list.
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
36 Freescale Semiconductor, Inc.
Chapter 2 Working with Projects
13. Select the launch configurations that you want to include in your project and the corresponding connection, from the Launch group.
NOTE
For more information on remote systems, see CodeWarrior
Development Studio Common Features Guide
.
14. Select the interface to communicate with the hardware, from the Connection Type drop-down list.
15. Enter the IP address of the TAP device in the TAP address text box. This option is available only if Ethernet TAP,CodeWarrior Ethernet TAP, or Gigabit TAP is selected as the connection type.
16. Click Next.
The Build Settings page appears.
17. Select the programming language, you want to use, from the Language group.
The language you select determines the libraries that are linked with your program and the contents of the main source file that the wizard generates.
NOTE
If you select C++, you can still add C source files to the project and vice versa.
18. Select a toolchain from the Toolchain group.
Selected toolchain sets up the default compiler, linker, and libraries used to build the new project. Each toolchain generates code targeted for a specific platform.
NOTE
If the toolchain you want to use is disabled, you have to install the corresponding Service Pack for adding the build tools support.
19. Select an option from the Floating Point drop-down list, to prompt the compiler to handle the floating-point operations by generating instructions for the selected floating-point unit.
20. Check the Fused multiple and accumulate checkbox to enable fused multiply and add generation.
NOTE
Fused multiply and add are generated only if hardware floating point support is enabled on the SC3900fp compiler.
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
Freescale Semiconductor, Inc.
37
Laadi alla
Reklaam