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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

3,946件の閲覧回数
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 ?

 

タグ(2)
0 件の賞賛
返信
7 返答(返信)

3,680件の閲覧回数
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 件の賞賛
返信

3,933件の閲覧回数
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,930件の閲覧回数
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

タグ(1)
0 件の賞賛
返信

3,887件の閲覧回数
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,881件の閲覧回数
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 件の賞賛
返信

3,800件の閲覧回数
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 件の賞賛
返信

3,779件の閲覧回数
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 件の賞賛
返信