Ginu Jacob
Ginu Jacob

Reputation: 1818

How to define the stack address range in C for embedded systems

I am working with a legacy code. So I am not sure about where to define the start and stop address for stack. The environment specifications are.

OS : Free RTOS Compiler : Gcc compiler Processor : STM32

This is to understand the start and stop address of stack to experiment on the maximum stack range used on a particular run.

Upvotes: 3

Views: 396

Answers (1)

Clifford
Clifford

Reputation: 93556

In FreeRTOS, you don't provide the stack explicitly, you merely specify the requred size and xTaskCreate() dynamically allocates the stack for you.

FreeRTOS does have some support for stack usage and overflow checking.

Upvotes: 1

Related Questions