Changing application stack size

To change the application stack size, perform the following steps:

  1. From the Simulink model window for your application model, select the Simulation menu, then click Model Configuration Parameters...

    • On earlier versions of Matlab, this will be Simulation -> Configuration Parameters...

  2. Under the Code Generation tab on the left, select OpenECU code generation...

    • On earlier versions of Matlab, this will be under the Real-Time Workshop tab on the left

  3. Change the stack size by entering a new number in the System stack size edit box, as shown below in the red circle.

    • ChangeStackSize.jpg

How do I confirm my stack size change took effect?

How do I know how much stack my application is using?

How can I tell if stack overflow is the cause of my ECU resetting?

      Copyright © 2016 Pi Innovo, All rights reserved