Creating a project

To create an application project or a library project for S32V2xx:

  1. Run S32 Design Studio 3.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 S32V2xx

  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 S32V2xx

    Note: The boot core is always selected and cannot be skipped.
  7. Under each selected core specify the settings that apply to your project. The availability of properties depends on the selected processor. Most of these settings are available for application projects only.
    Table 2. Special project settings
    Setting Description
    Library The ANSI C/C++ library (GCC compiler) to be linked to the project. Options:
    • EWL: A proprietary library created by NXP.
    • EWL Nano: An EWL version that is targeting memory constrained devices. Has a smaller footprint than NewLib Nano.
    • NewLib: An open-source C/C++ library.
    • NewLib Nano: A Newlib version that is targeting memory constrained devices.

    The toolchain settings specifies the NewLib location using the environment variable: ${S32DS_V2_ARM32_TOOLCHAIN_DIR}/arm-none-eabi/newlib.

    I/O Support Support for input/output during debugging through the debugger console. Options: No I/O, Debugger Console.
    FPU Support

    (All bare-metal projects)

    The ABI for the floating-point operations. Options:
    • Toolchain Default: The generated floating-point instructions are supported by the processor.
    • Toolchain Default (hard): Generation of floating-point instructions is defined by the FPU support in the selected processor. If the FPU is enabled in the core, floating-point instructions are generated by the core and the hard-float calling conventions are used.
    • Software: No FPU ( -mfloat-abi=soft): The generated output contains library calls for floating-point operations.
    • Hardware: -mfloat-abi=hard: The code uses hardware floating-point instructions and FPU specific calling conventions.
    • Hardware: -mfloat-abi=softfp: The code uses hardware floating-point instructions, but still uses the soft-float calling conventions.
    • None: The code uses no FPU instructions.
    The availability of options depends on the ARM core.
    Note: If the S32V23x SDK is attached, the option value is set to hard (-mfpu=fpv4-sp-d16 -mfloat-abi=hard).
    RAM Start Address The start address of RAM allocated to the core. Read-only.

    The value is readjusted automatically if the RAM values of the preceding cores are updated.

    RAM Size, KB The amount of RAM allocated to the core. Range: 0 to 1024 KB. Default: 256 (for S32V234), 1024 (for S32V232).

    The value can be readjusted with the step of 32.

    Note: The minimum RAM size for S32V234 should be 192 KB.
    Unused RAM, KB The amount of RAM that can be added to the core in the RAM Size, KB field. The value is calculated automatically. Default: 0
    Language The programming language. Options: C, C++.

    The availability of options depends on the project.

    SDKs The SDKs to be included in the project. Default: no SDK.
    Note: When you attach an SDK, some project settings can be replaced with the SDK compatible ones.
    Debugger The software debugger. Options:
    • PE Micro GDB server: Select this option to debug a bare-metal project on the target connected to the computer with a P&E probe.
    • Lauterbach TRACE32 Debugger: Select this option to debug a bare-metal project on the target connected to the computer with a Lauterbach probe.
      Note: This option is available for S32V234 only. If this option is not displayed, install the Lauterbach software plug-in on S32 Design Studio.
    • S32 Debugger: Select this option to debug a bare-metal project on the target linked to the computer with S32 Debug Probe.
    • GDB Remote Linux Debugger: The default and read-only option for Linux projects.
    S32 Configuration Tool Support for S32 Configuration Tool. If this option is enabled, the project will include the device configuration files.
    Note: This option requires the C language and the S32V23x SDK to be selected.

  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.