New C/C++ Project

In this tutorial, you will use the wizard to create a WiSE Studio project. This section describes the process of creating a new C project for your device and the project stucture.

New Executable Project

To create a new project, Go to File > New > Project... > C/C++ > C Project to open the new project wizard.

Enter a new project name (such as myproject) and select the project location. By default, the project is located in the workspace directory. We recommend you to keep this option enabled while creating new project.

Then select Executable > WiSE Project and the Wise GCC as toolchain. Click on the Next button to go the default configuration page.

New project are created with two default configurations: Debug and Release. The « Debug » configuration provides a preset of settings to build your project with maximum debug level, debug symbols and less optimizations. The « Release » configuration disable the debug extra code and activate a better optimization level.

This page allows to add your own build configuration or to edit your project setting before creating it. Notice that you still can create new configuration after creating your project, in the project properties. If not needed, click on the Next button.

Name Function
Project type Selected project type.
Tool-chains One or more selected tool chains
Configurations List of all build configurations to be created. Check items you want to create. At least one configuration must be checked.
Select all Checks all configurations
Deselect all Unchecks all configurations
Advanced settings ... Displays properties dialog for new project.

On this page, select the board you are working on or create your own board definition. Select a Series to filter the list of boards.

WiSE Studio can populate a default project from ST Development kit (DK). To do it, the user has to indicate SDK sources files location in WiSE Studio preferences. If no SDK is detected, a message with a link to the preferences is displayed.

Check the « Import sources from ST Development Kit » box, to create a base project otherwise, the new project is empty.

Click on the Finish button to confirm the project creation. If the workbench perspective is not on C/C++ development, a message will ask you to switch to the best perspective for the development (specific view, menus and toolbar).

Project Structure

A WiSE Studio project consists on your application code in directories src and inc and some codes. The project can have multi-level folders. Every sources files are built. To exclude source files/folders from build, right-click on the element, Resources Configuration > Exclude from Build, select the configuration you are working on.