Creating a project

  1. Run S32 Design Studio for Power Architecture 2.1.
  2. On the File menu, click New, then click S32DS Application Project or S32DS Library Project to launch the respective project creation wizard.
  3. Select the required target in the Processors pane:


    Creating a project for S32R264

  4. Specify the general project settings:
    Table 1. General project settings
    Setting Description
    Project name The project name. A valid project name is unique in the current workspace, uses ASCII characters in the range of ‘A-z’, digits, and underscores, and starts with a letter.
    Use default location If this option is enabled, the project files are stored in the default folder specified in the Location field. Disable this option to specify a different path in the Location field.
    Location The full path of the project’s root folder.
  5. Click Next.
  6. On the next wizard page, select the cores. A dedicated project will be created for each selected core.


    Defining settings of a project for S32R264

    Note: The boot core is always selected and cannot be skipped.
  7. Under each selected core specify the settings that apply to your project. Most of these settings are available for application projects only.
    Table 2. Special project settings
    Setting Description
    FLASH Start Address The FLASH Start Address values for each core. The values depend on the selected FLASH Size of previous core.
    FLASH Size, KB Specify the FLASH Size value for each core (KB) with step 32. Default: 512.
    Unused FLASH, KB The Unused FLASH value. The value depends on the selected FLASH Size for all cores.
    RAM Start Address The RAM Start Address values for each core. The values depend on the selected RAM Size of previous core.
    RAM Size, KB Specify the RAM Size value for each core (KB) with step 32. Default: 426.
    Unused RAM, KB The Unused RAM value (KB). The value depends on the selected RAM Size for all cores. Default: 2.
    Language

    This setting sets up the default compiler, linker, and preprocessor options for the toolchain, and configures other project files, such as main, for the target language.

    Note: The selected programming language defines the toolchain settings for the linker and compiler that will be available in the properties for the created project. Selecting C limits the toolchain options to this specific language. If you select C++, you will be able to configure settings for the C and C++ compiler, linker, and preprocessor. The toolchain settings can be further configured after creating the project. For details, see section "C/C++ Build Tool Settings".
    Options:
    • C - sets up your project for the ANSI C-compliant startup code and initializes global variables.
    • C++ - sets up your project for the ANSI C++ startup code and performs the global class object initialization.
    Library The library to be linked to the application:
    • EWL - c99 compliant Embedded Warrior Library,
    • EWL Nano - a lightweight version of Embedded Warrior Library,
    • NewLib - standard C/C++ library that is included with our e200 toolchain,
    • NewLib Nano - a lightweight version of the standard C/C++ library.
    Note: The toolchain supports the NewLib, NewLib Nano and Freescale EWL2 libraries but some of them are not accessible in the wizard.
    SDKs This setting allows you to select an SDK to be added to the project. Click the search button (...) to select an SDK from the list.
    Note: The Select SDK window lists the SDKs available in S32R264 Development Package. If you do not see your SDK, add it on the SDK Management page. Find the details in S32 Design Studio for Power Architecture 2.1 User Guide.
    Debugger The software debugger. Default: PE Micro GDB server.
    SPT2 Co-Processor Graph Enable Select this option to include the SPT source files.
  8. Click Finish.

The wizard creates the new project according to the specified details. The new project is displayed in the Project Explorer view. If you have selected multiple cores, the wizard creates a separate project for each selected core.