S32 Studio:stack VMA [2000e800,2000efff] overlaps section .bss VMA

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

S32 Studio:stack VMA [2000e800,2000efff] overlaps section .bss VMA

5,500件の閲覧回数
609510318
Contributor I

How  to  solve this problem?

tack VMA [2000e800,2000efff] overlaps section .bss VMA

pastedImage_1.png

0 件の賞賛
返信
5 返答(返信)

4,076件の閲覧回数
rachel3
Contributor I

I am using the S32K144 EVB and am seeing this issue when I set a variable to static. How can I configure the linker to fix this:

section .stack VMA [20006c00,20006fff] overlaps section .heap VMA [200068ec,20006cef]

0 件の賞賛
返信

4,072件の閲覧回数
rachel3
Contributor I
For additional info, I am using FreeRTOS. By default the configTOTAL_HEAP_SIZE was set to 8192. When I set it to 1024, the program compiles fine. I wonder if there is a setting I need to do to enable using the larger heap size?
0 件の賞賛
返信

4,055件の閲覧回数
rachel3
Contributor I

Nevermind I figured out my issue. So I was using heap 1 for memory management, but using the static allocation for RTOS queues, task and timers. So there was memory allocated statically by me and some put aside for dynamic allocation by RTOS. Therefore, I was running out of memory. So I just switched to heap 4 strategy and turned off dynamic allocation. Hope this helps someone.

0 件の賞賛
返信

5,193件の閲覧回数
hiren_virapara
Contributor I

Hi @Alexis_A  
I'm getting the same problem.

Could you please help in this case ?

0 件の賞賛
返信

5,386件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello,

I think you modify the linker and in some way the stack/bss section overlap, usually in the SDK examples, if you did not define the customSection in the linker the bss will start in the 0x2000 0000 section.Can you let me know which S32K device are you using to check how much SRAM do you have available?

Best Regards,

Alexis Andalon

0 件の賞賛
返信