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

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

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

4,624 Views
609510318
Contributor I

How  to  solve this problem?

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

pastedImage_1.png

0 Kudos
Reply
5 Replies

3,200 Views
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 Kudos
Reply

3,196 Views
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 Kudos
Reply

3,179 Views
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 Kudos
Reply

4,317 Views
hiren_virapara
Contributor I

Hi @Alexis_A  
I'm getting the same problem.

Could you please help in this case ?

0 Kudos
Reply

4,510 Views
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 Kudos
Reply