AnsweredAssumed Answered

how to fix this  compile  error

Question asked by kui wu on Jul 22, 2019
Latest reply on Jul 25, 2019 by Jiri Kral

when I add some code for timer function and the adding code is the following picture ,anther part is  new a isr function ftmTimerISR。

the DS32 compiler report the following errors 

 

Executing target #19 flash_partitioning_s32k116.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "flash_partitioning_s32k116.elf" "@flash_partitioning_s32k116.args"
c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-arm-none-eabi-4_9/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: flash_partitioning_s32k116.elf section `.text' will not fit in region `m_text'
c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-arm-none-eabi-4_9/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: section .data loaded at [200020c0,200025f3] overlaps section .text loaded at [200000c0,20002717]
c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-arm-none-eabi-4_9/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `m_text' overflowed by 1716 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:82: flash_partitioning_s32k116.elf] Error 1

Outcomes