필터 지우기
필터 지우기

How to generate option file using ST Visual Developer IDE for bug finder analysis

조회 수: 2 (최근 30일)
I am using ST Visual Developer IDE for compiling and building our project, we do have Cosmic STM8 compiler.
I wanted to perform Bug Finder Analysis on my project, for this Input Option File is required which contains the compilation flow of the project, but as we are using ST Visual Developer IDE to compile oor project how we can generate the option file.

답변 (1개)

Anirban
Anirban 2022년 2월 4일
Please contact MathWorks Technical Support for help with setting up your project.
I can give you a general idea of the workflow if you want to get started on your own. When you build your source code in the IDE, you might be using the compilation toolchain as stated directly in the IDE or using a build command. In either case, you might be simply clicking a menu item to build your source code. If you know the underlying command behind the menu item (most IDEs tell you in a console which command is running when you click a menu item for building), you can run polyspace-configure on this command and generate a Polyspace options file. The polyspace-configure workflow is simply this:
  • Build your source code on the command line and make sure it builds without errors. It might be the regular command line or a command line provided by your IDE (For instance, with Visual Studio, you have to use the Visual Studio Developer Prompt to build your source code. The regular command line does not have all the environment variables correctly set up.)
  • Prepend polyspace-configure to this build command and run again. A Polyspace project or options file is generated for you.
Some examples can be found here for other IDEs:
You can always set up your project manually by choosing cosmic for the option Compiler (-compiler). But it is possible you might run into errors when running the Polyspace analysis because other compile options will not be correctly emulated in the Polyspace project. It is best to let Polyspace figure out which options to set, based on your build command. That is the polyspace-configure workflow stated above.

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by