Errors during debugging on S32K146 - mdata_2 overflow and Default ISR

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

Errors during debugging on S32K146 - mdata_2 overflow and Default ISR

837 Views
ravitheja_dasik
Contributor I

Errors during debugging on S32K146 - mdata_2 overflow and Default ISR

I have been trying to debug a project in S32DS for Arm. I am using S32K146 MCU. But I keep getting the following error:

arm-none-eabi-gcc -o "meshgw.elf" "@meshgw.args"
c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: meshgw.elf section `.bss' will not fit in region `m_data_2'
c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: region m_data_2 overflowed with stack and heap
c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: section .stack VMA [2000ec00,2000efff] overlaps section .bss VMA [20000000,20043ca3]
c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: region `m_data_2' overflowed by 0 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:36: meshgw.elf] Error 1

I found a way to correct this error by changing m_data_2 length in the linker file. Once I did that, I didn't get the above error and the project was built. But when I start debugging, the control stops at "default ISR". It won't even go into the main program. I am not sure how to fix this.

I tried to find out what was causing this in my project. There is a function call to an algorithm which is uses considerable data as input. If I disable the function call to the algorithm I don't get any of these errors.

Any help to solve this would be appreciated. Thank You :smileyhappy:

0 Replies