I used "Call Walker", a tool to estimate the stack in HEW, but I cannot find an equivalent function in CS+.
To use a stack usage tracer in CS+, follow the procedure below.
- In [Others] on the [Link Options] tab in the Property panel for CC-RX (Build Tool), set [Outputs a stack use information file] to "Yes", and then execute a build.
- From the [Tool] menu of CS+, open the [Additional Function] tab in [Plug-in Setting...], and then confirm that [Estimate the Stack Capacity] is checked.
- From the CS+ menu, select [Tool] -> [Startup Stack Usage Tracer] to start Call Walker, and check the stack usage.
- If there is a possibility of stack overflow, confirm whether the maximum value of the stack usage does not exceed the size of the stack area.
- In Call Walker, interrupt functions are not added to the maximum stack usage. The stack usage to be used by each interrupt function is displayed individually. Therefore, when allocating the stack area, you must manually add the stack usage used by each interrupt function to the entire stack usage.
In addition, you can see the added value by selecting the interrupt function on the tool (left window) of Call Walker and moving it by dragging and dropping. However, the value differs depending on when the interrupt function is called. We think that the most reliable method is to add the stack usage of the interrupt function to the maximum value of the displayed stack usage. The value to be added is the maximum usage or the usage with consideration given to multiple interrupts rather than the stack usage of all interrupt functions.
|CS+ (formerly CubeSuite+)|
|C/C++ Compiler Package for RX Family|