Generate IDE Projects from DATAFLOW Model
This Guide Article has been written for Version 2.1 of the DATAFLOW Software. For Previous Releases use the version selection in the navigation bar at the top of this page.
In addition to the generation of source code files, the DATAFLOW Designer supports the generation of a project configuration for a development IDE. This way, the generated source code can be opened with the defined development IDE like any manually created IDE project. Additionally, all required settings and files for a successful build of the just generated project are provided.
Define Build Toolchain
To use this feature, one or more Toolchains must be assigned (see chapter Add Toolchain below) to any of the components defined in the system model.
NOTE The Startup and SystemInitialisation Code is only generated if Target Hardware is assigned as well. Otherwise, this code has to be provided by the user. |
Supportes IDEs
- Visual Studio Simulation Template
- 2015
- 2017
- 2019
- 2022
- Visual Studio UnitTest Template
- 2015
- 2017
- 2019
- 2022
- IAR
- 9.10
- 8.40
- 8.22
- 7.80
- Makefile
NOTE Additional IDEs will be added in future versions of DATAFLOW Designer. Please contact the IMT Support if your IDE is missing. |
Add Toolchain
A Toolchain is a set of configuration parameters required for DATAFLOW Designer to generate code for a certain development IDE. A project can have multiple Toolchains. For example, one for the target build and one for a unit test build. It is also possible that there are multiple software modules inside a single project that are deployed on different target processors that require different Toolchains.
To add a Toolchain, right-click the root element of the project to be created and select ‘Add Toolchain’ from the context menu. The selected element can be the System element or any System Component or Active Container. The selected element and all child components will be added to the project configuration.
Add Toolchain
Additional Toolchains can also be added in the Setting Dialog:
In the dialog that appears, the name and template for the Toolchain can be selected. The template defines the type of IDE and whether it is a unit test or target project.
Toolchain Template Dialog
Once the Toolchain has been created, the Toolchain dialog is displayed to edit the configuration (see edit Toolchain chapter below).
A component can hold one or more Toolchains for different purposes. For example, if unit tests are compiled in another IDE than the target, build.
Toolchain assignment in a DATAFLOW Mode
Edit Toolchain
To edit a Toolchain, select ‘Edit Toolchains’ from the context menu. In the Toolchain dialog, several tabs allow you to configure the toolchain in detail.
General Tab
Display Name |
Displayed name for the toolchain. |
Template name (read only) |
The template the toolchain was created from. |
IDE Tab
The path to the generated IDE files (solution, workspace, Makefile, ...) can be configured. A name can be defined for the generated IDE configuration. If empty, the name of the root component is used instead.
Configuration Tab
This tab shows all preprocessor defines for the generated build configurations. Additional definitions can be added (sperated by semicolon).
Packages Tab
This tab shows all deployed packages for the current toolchain. The type and version of the packages depned on the platform configuration of the build configuration this toolchain is part of.
Remove Toolchains
To remove all Toolchains from an element, right-click the element and select ‘Clear Toolchains’ from the context menu.
Alternatively, Toolchains can also be removed in the Settings dialog.
Required Module:
DATAFLOW Code, DATAFLOW Frames
This Article has been written based on V2.1.1 of the DATAFLOW software.
Latest update 2023-05-31 by WUE.
Comments
0 comments
Please sign in to leave a comment.