Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added additional information about available IDEs
Table of Contents
stylenone

Introduction

The Project Generator allows the user to create project files for supported IDEs, to simplify the development and make use of external tools provided by the board manufacturers and IDE creators.

...

Code Block
user: ~/GOAL/tools/make/gen_project pip3 install -r requirements.txt

Usage

Generate a Project

The following example describes the generation of a Profinet example application provided by port for an STM32 controller . To generate a project:

  1. Choose an appropriate project at the GOAL directory at commandline

    Code Block
    user: ~ cd GOAL/projects/goal_pnio/01_simple_io/gcc
  2. Select platform

    Code Block
    user: ~/GOAL/projects/goal_pnio/01_simple_io/gcc make select
    
    No platform selected, choose a platform - OR - press <CTRL+c> and set the
    PLATFORM environment variable.
    
    Choose platform:
    ...
    [ 13] stm32_cube_f429_eth_stand_alone (gcc)
    ...
    
    Choice [1-117]: 13
    
    Selected platform: [ 13] stm32_cube_f429_eth_stand_alone
  3. Invoke the project generator and choose IDE and template

    Code Block
    user: ~/GOAL/projects/goal_pnio/01_simple_io/gcc make gen_project
    
    Platform selected by .platform file: stm32_cube_f429_eth_stand_alone
    
    Please select a template - OR - press <CTRL+c> and set the
    GEN_PROJECT_TPL environment variable.
    
    Choose IDE:
      [ 1] ccstudio
      [ 2] e2stu
      [ 3] eclipse
      [ 4] stmcubeide
    
    Choice [1-4]: 4
    
    Choose template:
    ...
      [12] port/stmcubeide_stm32generic_f429_nucleo_eth
      [13] port/stmcubeide_stm32generic_f429_nucleo_eth_stand_alone
      [14] port/stmcubeide_stm32generic_f429_nucleo_eth_stand_alone_freertos
    ...
    
    Choice [1-14]: 12
    
    Selected template: [12] stmcubeide/port/stmcubeide_stm32generic_f429_nucleo_eth
    ...

...

Tip

The created project can now be imported into the choosen IDE.

Import the generated Project

The follwoing Chapter describes the basic handling of the generated project file and how to import it into supported IDEs.

Info

The following Chapters describe the basic steps to import generated or by GOAL provided projects into the choosen IDE. Please refer also to the specific Platforms Pages for additional information regarding the platform setup, debugging et cetera.

STM32CubeIDE

  1. Open the IDE and select “Import projects…” [1]

  2. Select “Existing Projects into Workspace”, [2] and select “Next >” [3]

  3. Browse search-directory by “Browse” [4] and navigate to the extracted GOAL delivery [5]

  4. Choose the appropriate protocol directoy and apply with “Select” [6]

  5. Select the discovered project for your choosen platform and “Finish”

grafik-20241216-123524.pngImage Addedgrafik-20241216-123800.pngImage Added
Tip

The selected project should appear at the “Project Explorer” at the STM32CubeIDE.

Code Composer Studio

  1. Open the ccstudio and select “Import projects…” [1]

  2. Select “CCS Projects” [2] and select “Next >” [3]

  3. Browse search-directory by “Browse” [4] and navigate to the extracted GOAL delivery [5]

  4. Choose the appropriate protocol directoy and apply with “Select” [6]

  5. Select the discovered project and “Finish”

01.pngImage Added02.pngImage Added
Tip

The selected project should appear at the “Project Explorer” at the Code Composer Studio.