section `.stack' is not within region `m_data_2'

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

section `.stack' is not within region `m_data_2'

Jump to solution
1,251 Views
RGMAL
Contributor II

Hello NXP Community,

I am working with S32K118 and when I build I met the following problem. see the below


Building target: RedW.elf
Executing target #166 RedW.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "RedW.elf" "@RedW.args"
c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: address 0x20005800 of RedW.elf section `.stack' is not within region `m_data_2'
c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: address 0x20005800 of RedW.elf section `.stack' is not within region `m_data_2'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:155: RedW.elf] Error 1

I attach the .ld I am using.
Could you help me please

 

Thank you and Regards.

Labels (1)
0 Kudos
Reply
1 Solution
1,233 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@RGMAL

please have a try the below setting.

Senlent_0-1709014332930.png

 

View solution in original post

0 Kudos
Reply
1 Reply
1,234 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@RGMAL

please have a try the below setting.

Senlent_0-1709014332930.png

 

0 Kudos
Reply