The available stack depends on the environment:
The stack size cannot be changed as it's allocated by the Device OS before the user firmware is loaded.