µVISION DEBUGGER: Enabling the Stack Usage Watermark Feature

µ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

 
 

Products

Development Tools

 

Hardware & Collateral

Downloads

Support

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值