how to change stack size or heap size in s32 design studio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to change stack size or heap size in s32 design studio

3,934 Views
s32k146_ige
Contributor IV

Is there a way to increase or change stack size and heap size in design studio? 

i am using s32k146 and i might be facing stack overflow i am not sure is there a way to detect stack overflow for s32k146 mcu ?

 

Tags (2)
0 Kudos
Reply
7 Replies

3,668 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

For FreeRTOS in S32 Design Studio for ARM Version 2018.R1, please refer to the discussion in https://community.nxp.com/t5/S32K/S32K146-FREERTOS-LSPI-but-SPI-dones-t-work/m-p/1032623

0 Kudos
Reply

3,921 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Seems that you are using S32DS for S32 Platform with S32K1 SDK. Please find the .ld in Linker_Files folder.

HEAP_SIZE STACK_SIZE Linker_Files.png

For questions on stack overflow, you can refer to the discussion in this thread: check stack & heap size during debug in S32DS

Hope it helps.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

3,918 Views
s32k146_ige
Contributor IV

where can i find __heap_size__ variable or i have to define it so it doesnt select 0x400 as heap size

following are IDE details:

S32 Design Studio for ARM

Version: 2018.R1
Build id: 180815

Tags (1)
0 Kudos
Reply

3,875 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Maybe you can simply overwrite the 0x00000400 default number.
If you use FREE RTOS, for example, the __stack_size__ is defined in the RTOS.

3,869 Views
s32k146_ige
Contributor IV
i couldnt locate either __stack_size__ or __heap_size__ ? yes i am using freertos

the heap defination for freertos and controller core are different right ?
0 Kudos
Reply

3,788 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry for the delay. I am not familiar with FreeRTOS.
Please refer to the introduction of https://www.freertos.org/a00111.html

0 Kudos
Reply

3,767 Views
s32k146_ige
Contributor IV

Does overwriting 

Maybe you can simply overwrite the 0x00000400 default number.
If you use FREE RTOS, for example, the __stack_size__ is defined in the RTOS.

value in .ld file changes the stack and heap size ?

there is no other definition its that i want to know

0 Kudos
Reply