Skip to main content

Troubleshooting

If the application fails to start, look for problems in the code generation and in the build process.

Generation error

The standalone eTrice generator outputs any errors that were detected during generation, such as model validation errors or missing imports/references. Check the terminal output when running the generator.

Common validation issues are marked directly in the text editor with red underline squiggles and appear in the Problems panel in VSCode.

image

Build error

Check the output of your build tool (e.g. make, cmake, or your C/C++ compiler) for build errors.

Common issues:

  • multiple main functions: More than one executable application was included in the build. Check that your build configuration only targets one application project.

  • compile error in generated user code: Check if the user code that was generated out of the model causes compiler errors (e.g. state/transition action code or operation detail code). The default location for the generated code is the folder src-gen.

Missing MSC

The MSC is created when the application has been shut down properly, i.e. terminated by typing quit in the console of the application.