How to calculate stack usage in threadx WIN32?

fei 41 Reputation points

In Threadx Win32 environment, tx_thread_stack_ptr and tx_thread_stack_highest_ptr(with TX_ENABLE_STACK_CHECKING enabled) are not updated during task scheduling, so how to calculate the task stack usage?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
252 questions
0 comments No comments
{count} votes

Accepted answer
  1. Scott Azure RTOS 4,046 Reputation points Microsoft Employee

    The stack supplied in the tx_thread_create call is not used in the win32 port. I believe the underlying win32 thread stack is actually used. The win32 port is more for simulating behavior before you have an actual target. Are you intending to deploy applications on win32 or will you be using a microcontroller?

0 additional answers

Sort by: Most helpful