CPU stack and heap reservation

Michael Fowler 131 Reputation points
2022-10-23T21:04:29.457+00:00

I'm using ThreadX on an NXP Cortex M7. It looks like the CPU's heap and stack aren't used much by ThreadX as it has its own. To save memory, I'd like to reduce the size of these. How much should I allocate? Are there scenarios where these are used by ThreadX?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
341 questions
{count} vote

Accepted answer
  1. Scott Azure RTOS 4,051 Reputation points
    2022-10-23T22:11:17.07+00:00

    Hi @Michael Fowler - on the M7, ThreadX does not use the heap nor the system stack. You should be able to reduce these to zero bytes. Let me know if you have any trouble after doing so.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.