What is " `.text' will not fit in region `m_text' " error about ?

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

What is " `.text' will not fit in region `m_text' " error about ?

8,651 次查看
burakduzgun
Contributor I

c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: base.elf section `.text' will not fit in region `m_text'
c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: region `m_text' overflowed by 5732 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [base.elf] Error 1

标签 (1)
0 项奖励
3 回复数

4,209 次查看
bobpaddock
Senior Contributor III

The program is 5K larger than allocated by the linker script for the Flash area.

Trying to put a 21K sized program into a 16K part.

0 项奖励

4,209 次查看
burakduzgun
Contributor I

Thanks for your reply,

I can  handle this error by increasing  m_text length at linker file. 

At linker file.

m_text                (RX)  : ORIGIN = 0x00000410, LENGTH = 0x000FFBF0    --> Original line

m_text                (RX)  : ORIGIN = 0x00000410, LENGTH = 0x00101254      --> Manipulated line ( increased by 5732 )

Is this about your suggestion? 

0 项奖励

4,209 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Burak,

Yes, your code overflowed, you need increase the region of m_text .

You need check the Reference manual check the flash size of your chip .

BR

Alice

0 项奖励