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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

4,626 次查看
609510318
Contributor I

How  to  solve this problem?

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

pastedImage_1.png

0 项奖励
回复
5 回复数

3,202 次查看
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 项奖励
回复

3,198 次查看
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 项奖励
回复

3,181 次查看
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 项奖励
回复

4,319 次查看
hiren_virapara
Contributor I

Hi @Alexis_A  
I'm getting the same problem.

Could you please help in this case ?

0 项奖励
回复

4,512 次查看
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 项奖励
回复