Keil Logo

µVISION DEBUGGER: Enabling the Stack Usage Watermark Feature


Information in this knowledgebase article applies to:

  • MDK-ARM projects created with ARM::CMSIS Software Pack version V4.3.0 or higher
  • MDK-ARM Version 5.14 or higher

QUESTION

I've heard that there is a Stack usage watermark feature in MDK-ARM V5.14 debugger, but I can't find this option in the Configuration Wizard view of the RTX_Conf_CM.c file in my project.

Where is this feature and how do I enable it?

ANSWER

To use the Stack usage watermark feature, you must install version V4.3.0 (or later) of the ARM::CMSIS Software Pack. V4.3.0 includes a new version of the RTX_Conf_CM.c file which allows you select this new feature.

To update your RTX_Conf_CM.c file, follow these steps:

  1. Install V4.3.0 (or higher) of the ARM::CMSIS Software Pack from the Pack Installer.
  2. Open the file RTX_Conf_CM.c in a µVision text edit window.
  3. Right-click the RTX_Conf_CM.c tab, and select Open Containing Folder.
  4. Rename the file RTX_Conf_CM.c to RTX_Conf_CM.bak.
  5. Select No, when asked if you want to "Keep the file inside the editor".
  6. Select No, when asked if you want to "Save changes to RTX_Conf_CM.c".
    Note that there is now a yellow exclamation mark visible on the RTX_Conf_CM.c icon inside the project window confirming that the file does not exist.
  7. Next, just open the Manage Runtime Environment window and close it by selecting OK. This copies a new version of RTX_Conf_CM.c into your project folder, and removes the exclamation mark.
  8. Open RTX_Conf_CM.c inside the editor.
  9. Select the Configuration Wizard.
  10. Expand the Thread Configuration tab.
  11. The Stack usage watermark checkbox is visible now, as shown below:

With the µVision Debugger activated, the System and Thread Viewer lists the current and maximum Stack Usage

MORE INFORMATION

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, February 24, 2017


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.