How to calculate stack usage in threadx WIN32?

fei 46 Reputation points
2022-04-03T04:07:06.36+00:00

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?
Thanks!

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

Accepted answer
  1. Scott Azure RTOS 4,051 Reputation points
    2022-04-04T19:07:14.97+00:00

    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