Set Worst Stack Size Options in Studio

Execute with Worst Stack Size

  • In Studio, open the settings of the project and go in the menu Configuration Properties > Build > options > Build.
  • Then, in the right panel, click on the Build options line and edit these options by clicking on the … button.
  • Then, a dialog window shows you on the right the different tools that you can select during the build. Check Application profiling to enable the control coupling feature.

Worst Stack Size options

Options for Control Coupling can be updated in the following menu of the settings: Configuration Properties > Runtime analysis > Application profiling > Stack size.

In the setting page, you can change the following options:
  • Trace file name (.tzf): set the name of the trace file dedicated to worst stack size. By default this name is the base name of the test with the extension .tzf.
  • Report Template: change the template of the report generator. By default this template is wssreport.template.
  • External functions stack size: this is a file that contains the stack size of the external functions (generally functions that are in libraries and used by your application). The format of this file should be in Json, with the extension .tzfe, as follows:
    	     {"name":"printf", "stacksize":4},
    	     {"name":"sin", "stacksize":4},
    	     {"name":"cos", "stacksize":4},
    	     {"name":"tan", "stacksize":4}